aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-purge.test
diff options
context:
space:
mode:
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;