aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-14 19:28:50 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-14 19:28:50 +0300
commit85d0c04498aaee039a6771721ef78fdfde83c66b (patch)
tree27af92395bf4e25f470e04fbf39cbcdebec5ec66 /tests
parent3564bb3da390f2ba5ca85e8fa8a507b26afcf2ae (diff)
Make use of testscript mv builtin
Diffstat (limited to 'tests')
-rw-r--r--tests/pkg-build.test17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/pkg-build.test b/tests/pkg-build.test
index 9da1281..7cf0375 100644
--- a/tests/pkg-build.test
+++ b/tests/pkg-build.test
@@ -1136,13 +1136,18 @@ rep_fetch += -d cfg --auth all --trust-yes 2>!
# temporary configuration.
#
$clone_root_cfg;
- $pkg_fetch -e $src/t4b/libbar-1.1.0.tar.gz && $pkg_unpack libbar;
- cp -r cfg/libbar-1.1.0 libbar;
- $pkg_fetch -e $src/t4c/libbaz-1.1.0.tar.gz && $pkg_unpack libbaz;
- cp -r cfg/libbaz-1.1.0 libbaz;
- rm -r cfg;
- $clone_root_cfg && $rep_add $rep/t4a && $rep_fetch;
+ $pkg_fetch -e $src/t4b/libbar-1.1.0.tar.gz;
+ $pkg_unpack libbar &cfg/libbar-1.1.0/***;
+
+ $pkg_fetch -e $src/t4c/libbaz-1.1.0.tar.gz;
+ $pkg_unpack libbaz &cfg/libbaz-1.1.0/***;
+
+ mv cfg/libbar-1.1.0 libbar;
+ mv cfg/libbaz-1.1.0 libbaz;
+
+ rm -r cfg && $clone_root_cfg; # Re-clone.
+ $rep_add $rep/t4a && $rep_fetch;
$* ./libbar/ 2>>~%EOE%;
%.*