aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-checkout.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-02-22 00:32:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-22 12:33:41 +0300
commitb3ca587b6c7c6f3f3c2bfa63629878c090f4a5a2 (patch)
treea9b85b1f3d88eca9a71db0d2a28ffe263e1a4623 /tests/pkg-checkout.test
parent89dd478de7cf075beac69d0145df46f914cf35cf (diff)
Add support for version control-based repos to pkg-build
Diffstat (limited to 'tests/pkg-checkout.test')
-rw-r--r--tests/pkg-checkout.test17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/pkg-checkout.test b/tests/pkg-checkout.test
index 663a900..a50c0f7 100644
--- a/tests/pkg-checkout.test
+++ b/tests/pkg-checkout.test
@@ -35,6 +35,8 @@ else
rep_add += -d cfg 2>!
rep_fetch += -d cfg 2>!
pkg_configure += -d cfg 2>!
+ pkg_disfigure += -d cfg 2>!
+ pkg_purge += -d cfg 2>!
pkg_status += -d cfg
test.cleanups += &cfg/.bpkg/repositories/*/***
@@ -57,18 +59,23 @@ else
$pkg_status style-basic | sed -n -e 's/available ([^ ]+).+/\1/p' | set v;
- $* "style-basic/$v" 2>>"EOE" &cfg/style-basic-$v/***;
+ $* "style-basic/$v" 2>>"EOE";
dist style-basic-$v
checked out style-basic/$v
EOE
$pkg_configure style-basic;
- $* libmbar/1.0.0 2>>EOE &cfg/libmbar-1.0.0/***
+ $* libmbar/1.0.0 2>>EOE;
dist libmbar-1.0.0
checked out libmbar/1.0.0
EOE
+ $pkg_disfigure style-basic;
+
+ $pkg_purge libmbar;
+ $pkg_purge style-basic
+
: replacement
:
# @@ Reduce to a single repository when multiple revisions can be specified
@@ -91,6 +98,8 @@ else
$* "style-basic/$v0" 2>!;
$pkg_status style-basic >~"/unpacked $v0;.+/";
- $* --replace "style-basic/$v1" 2>! &cfg/style-basic-$v1/***;
- $pkg_status style-basic >~"/unpacked $v1;.+/"
+ $* --replace "style-basic/$v1" 2>!;
+ $pkg_status style-basic >~"/unpacked $v1;.+/";
+
+ $pkg_purge style-basic
}