diff options
author | Adam Spiers <stow@adamspiers.org> | 2019-06-28 00:53:12 +0100 |
---|---|---|
committer | Adam Spiers <stow@adamspiers.org> | 2019-06-28 00:53:12 +0100 |
commit | ba48fd39089010c6a0a40aecc6a9e8f0a2241e04 (patch) | |
tree | 72732eda3ec0dcf7d83b3194b79e2ad06b31d608 /t/unstow_orig.t | |
parent | 5f875009f80cfd309223378bfcdb1d4d85599079 (diff) | |
download | stow-ba48fd39089010c6a0a40aecc6a9e8f0a2241e04.tar.gz |
Rename $OUT_DIR to $TEST_DIR
This is a more accurate reflection of what it is.
Diffstat (limited to 't/unstow_orig.t')
-rwxr-xr-x | t/unstow_orig.t | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/t/unstow_orig.t b/t/unstow_orig.t index a4e3142..4b62068 100755 --- a/t/unstow_orig.t +++ b/t/unstow_orig.t @@ -30,7 +30,7 @@ use testutil; use Stow::Util qw(canon_path); init_test_dirs(); -cd("$OUT_DIR/target"); +cd("$TEST_DIR/target"); # Note that each of the following tests use a distinct set of files @@ -308,8 +308,8 @@ check_protected_dirs_skipped(); # Unstow a never stowed package # -eval { remove_dir("$OUT_DIR/target"); }; -mkdir("$OUT_DIR/target"); +eval { remove_dir("$TEST_DIR/target"); }; +mkdir("$TEST_DIR/target"); $stow = new_compat_Stow(); capture_stderr(); @@ -343,17 +343,17 @@ check_protected_dirs_skipped(); # unstow a simple tree minimally when cwd isn't target # cd('../..'); -$stow = new_Stow(dir => "$OUT_DIR/stow", target => "$OUT_DIR/target"); +$stow = new_Stow(dir => "$TEST_DIR/stow", target => "$TEST_DIR/target"); -make_dir("$OUT_DIR/stow/pkg13/bin13"); -make_file("$OUT_DIR/stow/pkg13/bin13/file13"); -make_link("$OUT_DIR/target/bin13", '../stow/pkg13/bin13'); +make_dir("$TEST_DIR/stow/pkg13/bin13"); +make_file("$TEST_DIR/stow/pkg13/bin13/file13"); +make_link("$TEST_DIR/target/bin13", '../stow/pkg13/bin13'); $stow->plan_unstow('pkg13'); $stow->process_tasks(); ok( $stow->get_conflict_count == 0 && - -f "$OUT_DIR/stow/pkg13/bin13/file13" && ! -e "$OUT_DIR/target/bin13" + -f "$TEST_DIR/stow/pkg13/bin13/file13" && ! -e "$TEST_DIR/target/bin13" => 'unstow a simple tree' ); @@ -361,18 +361,18 @@ ok( # unstow a simple tree minimally with absolute stow dir when cwd isn't # target # -$stow = new_Stow(dir => canon_path("$OUT_DIR/stow"), - target => "$OUT_DIR/target"); +$stow = new_Stow(dir => canon_path("$TEST_DIR/stow"), + target => "$TEST_DIR/target"); -make_dir("$OUT_DIR/stow/pkg14/bin14"); -make_file("$OUT_DIR/stow/pkg14/bin14/file14"); -make_link("$OUT_DIR/target/bin14", '../stow/pkg14/bin14'); +make_dir("$TEST_DIR/stow/pkg14/bin14"); +make_file("$TEST_DIR/stow/pkg14/bin14/file14"); +make_link("$TEST_DIR/target/bin14", '../stow/pkg14/bin14'); $stow->plan_unstow('pkg14'); $stow->process_tasks(); ok( $stow->get_conflict_count == 0 && - -f "$OUT_DIR/stow/pkg14/bin14/file14" && ! -e "$OUT_DIR/target/bin14" + -f "$TEST_DIR/stow/pkg14/bin14/file14" && ! -e "$TEST_DIR/target/bin14" => 'unstow a simple tree with absolute stow dir' ); @@ -380,18 +380,18 @@ ok( # unstow a simple tree minimally with absolute stow AND target dirs # when cwd isn't target # -$stow = new_Stow(dir => canon_path("$OUT_DIR/stow"), - target => canon_path("$OUT_DIR/target")); +$stow = new_Stow(dir => canon_path("$TEST_DIR/stow"), + target => canon_path("$TEST_DIR/target")); -make_dir("$OUT_DIR/stow/pkg15/bin15"); -make_file("$OUT_DIR/stow/pkg15/bin15/file15"); -make_link("$OUT_DIR/target/bin15", '../stow/pkg15/bin15'); +make_dir("$TEST_DIR/stow/pkg15/bin15"); +make_file("$TEST_DIR/stow/pkg15/bin15/file15"); +make_link("$TEST_DIR/target/bin15", '../stow/pkg15/bin15'); $stow->plan_unstow('pkg15'); $stow->process_tasks(); ok( $stow->get_conflict_count == 0 && - -f "$OUT_DIR/stow/pkg15/bin15/file15" && ! -e "$OUT_DIR/target/bin15" + -f "$TEST_DIR/stow/pkg15/bin15/file15" && ! -e "$TEST_DIR/target/bin15" => 'unstow a simple tree with absolute stow and target dirs' ); |