Roxen.git / server / etc / test / tests / patcher / RoxenTest_patcher.pike

version» Context lines:

Roxen.git/server/etc/test/tests/patcher/RoxenTest_patcher.pike:46:    }       // Place all temporary files in the same directory    test(po->set_temp_dir, temp_path);       // Add temp path to environment (to be passed on to external processes)    mapping env = getenv() || ([ ]);    env->TEMP = temp_path;       // Try importing and installing a patch directly through the lib. -  string patch_id = test_true(po->import_file, +  array(int|string) patch_ids = test_true(po->import_file,    combine_path(test_path, "2009-02-25T1124.rxp"),    0); -  +  string patch_id = patch_ids[0];    test_true(po->install_patch, patch_id, "self_test@localhost");       // Create a patch using the lib.       test_true(po->create_patch,    ([ "id" : "2009-02-25T1628",    "name" : "Test Patch 2: replace",    "description" : "This is test 2.",    "originator" : "self_test@localhost",    "rxp_version" : RoxenPatch.rxp_version, -  "version" : po->parse_version(roxen_dist_version), +  "version" : po->parse_version(po->get_server_version()),    "depends" : ({ "2009-02-25T1124" }),    "replace" : ({    ([ "source" : combine_path(test_path,    "testfile.txt"),    "destination" : "test/testfile.txt" ])    }),    ]),    temp_path);       // Install it using the command line tool
Roxen.git/server/etc/test/tests/patcher/RoxenTest_patcher.pike:105:    "--patch=" + combine_path(test_path, "testfile.patch"),    "-t", temp_path });    Stdio.File desc = Stdio.File();    p = test(Process.Process, clt_args, ([ "stdin" : desc.pipe(),    "env" : env ]) );       test(desc.write, "Created by self_test.");    test(desc.close);    test_false(p && p->wait);    -  patch_id = test_true(po->import_file, +  patch_ids = test_true(po->import_file,    combine_path(temp_path, "2009-02-25T1728.rxp"),    0); -  +  patch_id = patch_ids[0];       test_true(po->install_patch, patch_id, "self_test@localhost");       test_false(po->uninstall_patch, "2009-02-25T1124", "self_test@localhost");       // Uninstall all patches    test_true(po->uninstall_patch, "2009-02-25T1728", "self_test@localhost");    test_true(po->uninstall_patch, "2009-02-25T1628", "self_test@localhost");    test_true(po->uninstall_patch, "2009-02-25T1124", "self_test@localhost");