aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-build.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pkg-build.test')
-rw-r--r--tests/pkg-build.test46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/pkg-build.test b/tests/pkg-build.test
index 17a529c..005aea0 100644
--- a/tests/pkg-build.test
+++ b/tests/pkg-build.test
@@ -1029,6 +1029,52 @@ rep_fetch += -d cfg --auth all --trust-yes 2>!
$pkg_disfigure libfoo 2>'disfigured libfoo/1.0.0';
$pkg_purge libfoo 2>'purged libfoo/1.0.0'
}
+
+ : local-prerequisite
+ :
+ : Test that the local package can be built against the local prerequisite
+ : package.
+ :
+ {
+ # Prepare libbar and libbaz (libbaz->libbar) local packages using the
+ # 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;
+
+ $* ./libbar/ 2>>~%EOE%;
+ %.*
+ %.*fetched libfoo/1.1.0%
+ unpacked libfoo/1.1.0
+ unpacked libbar/1.1.0
+ configured libfoo/1.1.0
+ configured libbar/1.1.0
+ info: cfg/dir{libbar-1.1.0/} is up to date
+ updated libbar/1.1.0
+ EOE
+
+ $* ./libbaz/ 2>>EOE;
+ unpacked libbaz/1.1.0
+ configured libbaz/1.1.0
+ info: cfg/dir{libbaz-1.1.0/} is up to date
+ updated libbaz/1.1.0
+ EOE
+
+ $pkg_disfigure libbaz 2>'disfigured libbaz/1.1.0';
+ $pkg_purge libbaz 2>'purged libbaz/1.1.0';
+
+ $pkg_disfigure libbar 2>'disfigured libbar/1.1.0';
+ $pkg_purge libbar 2>'purged libbar/1.1.0';
+
+ $pkg_disfigure libfoo 2>'disfigured libfoo/1.1.0';
+ $pkg_purge libfoo 2>'purged libfoo/1.1.0'
+ }
}
: prerequisite