aboutsummaryrefslogtreecommitdiff
path: root/tests/fetch.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-15 22:32:38 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-16 11:46:31 +0300
commite771c6b80168de37b74cc57dec502dfa418a19a6 (patch)
tree1d2c8ba68cd1e1331d45cde2fc76d25eee007c08 /tests/fetch.test
parent1ffe9fa27ee9829c16446a09aa5bd94bcc60ab68 (diff)
Add some more tests
Diffstat (limited to 'tests/fetch.test')
-rw-r--r--tests/fetch.test28
1 files changed, 16 insertions, 12 deletions
diff --git a/tests/fetch.test b/tests/fetch.test
index 7fec857..e7fd54e 100644
--- a/tests/fetch.test
+++ b/tests/fetch.test
@@ -4,19 +4,21 @@
.include common.test project.test
+cxx = cc "config.cxx=$config.cxx"
+
new += 2>!
-init += cc "config.cxx=$config.cxx" -d prj 2>!
-status += --all
+init += $cxx -d prj 2>!
+status += --all -d prj
deinit += -d prj
-: add-dependency
+: dependency
:
{
$clone_prj;
- $init -C prj-cfg @cfg &prj-cfg/***;
+ $init -C @cfg &prj-cfg/***;
- $new -t lib --vcs none libfoo &libfoo/*** 2>!;
- $new -t lib --vcs none libbar &libbar/*** 2>!;
+ $new -t lib libbar &libbar/*** 2>!;
+ $new -t lib libfoo &libfoo/*** 2>!;
cat <<EOI >+prj/repositories.manifest;
:
@@ -29,17 +31,19 @@ deinit += -d prj
type: dir
EOI
+ cat <<EOI >+prj/manifest;
+ depends: libfoo
+ depends: libbar
+ EOI
+
$* 2>>/"EOE";
fetching dir:$~/libbar \(complements dir:$~/prj\)
fetching dir:$~/libfoo \(prerequisite of dir:$~/prj\)
EOE
- $status -d prj >'prj configured 0.1.0-a.0.19700101000000';
-
- $bpkg list --complements --prerequisites -d prj-cfg >>/"EOO";
- dir:$~/prj $~/prj
- complement dir:$~/libbar $~/libbar
- prerequisite dir:$~/libfoo $~/libfoo
+ $status libfoo libbar >>~%EOO%;
+ %libfoo available \[.+\]%
+ %libbar available .+%
EOO
$deinit 2>>/"EOE"