aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-purge.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-20 18:25:25 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-20 18:25:25 +0300
commitdb6dda6cc3a3856844d40946ffe4eed6d3096ef9 (patch)
tree0d8a22aaeadf03fa7a0c3785ca9b593cc6d684fe /tests/pkg-purge.test
parent36ebc1cd634dbd8d114a8b3f11b6935ac268526f (diff)
Make use of --no-cleanup testscript builtin option
Diffstat (limited to 'tests/pkg-purge.test')
-rw-r--r--tests/pkg-purge.test13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/pkg-purge.test b/tests/pkg-purge.test
index 1c2bff6..6185665 100644
--- a/tests/pkg-purge.test
+++ b/tests/pkg-purge.test
@@ -56,7 +56,7 @@ $* libfoo 2>>/EOE != 0
:
{
$clone_cfg;
- cp $src/libfoo-1.0.0.tar.gz cfg/ &!cfg/libfoo-1.0.0.tar.gz;
+ cp --no-cleanup $src/libfoo-1.0.0.tar.gz cfg/;
$pkg_fetch -e -p cfg/libfoo-1.0.0.tar.gz;
$* libfoo 2>'purged libfoo/1.0.0';
@@ -114,12 +114,7 @@ $* libfoo 2>>/EOE != 0
:
{
$clone_cfg;
-
- # @@ Use --no-cleanup for cp builtin when implemented.
- #
- d = &!cfg/libfoo-1.1.0/;
- c = $d/ $d/build/ $d/build/bootstrap.build $d/buildfile $d/manifest;
- cp -r $src/libfoo-1.1.0 cfg/ $c;
+ cp --no-cleanup -r $src/libfoo-1.1.0 cfg/;
$pkg_unpack -e -p cfg/libfoo-1.1.0;
@@ -132,7 +127,7 @@ $* libfoo 2>>/EOE != 0
:
{
$clone_cfg;
- cp $src/libfoo-1.0.0.tar.gz cfg/ &!cfg/libfoo-1.0.0.tar.gz;
+ cp --no-cleanup $src/libfoo-1.0.0.tar.gz cfg/;
$pkg_fetch -e -p cfg/libfoo-1.0.0.tar.gz && $pkg_unpack libfoo;
$* libfoo 2>'purged libfoo/1.0.0';
@@ -146,7 +141,7 @@ $* libfoo 2>>/EOE != 0
if ($cxx.target.class != 'windows')
{
$clone_cfg;
- cp $src/libfoo-1.0.0.tar.gz cfg/ &!cfg/libfoo-1.0.0.tar.gz;
+ cp --no-cleanup $src/libfoo-1.0.0.tar.gz cfg/;
$pkg_fetch -e -p cfg/libfoo-1.0.0.tar.gz;
$pkg_unpack libfoo;
chmod 000 cfg/libfoo-1.0.0;