diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-15 22:32:38 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-16 11:46:31 +0300 |
commit | e771c6b80168de37b74cc57dec502dfa418a19a6 (patch) | |
tree | 1d2c8ba68cd1e1331d45cde2fc76d25eee007c08 /tests/status.test | |
parent | 1ffe9fa27ee9829c16446a09aa5bd94bcc60ab68 (diff) |
Add some more tests
Diffstat (limited to 'tests/status.test')
-rw-r--r-- | tests/status.test | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/tests/status.test b/tests/status.test index 99fe360..9871898 100644 --- a/tests/status.test +++ b/tests/status.test @@ -4,12 +4,14 @@ .include common.test project.test +cxx = cc "config.cxx=$config.cxx" + new += 2>! -init += cc "config.cxx=$config.cxx" -d prj 2>! +init += $cxx -d prj 2>! sync += -d prj 2>! deinit += -d prj -: no-config +: no-cfg : { $clone_prj; @@ -20,11 +22,12 @@ deinit += -d prj EOE } -: one-config +: single-cfg : { $clone_prj; - $init -C prj-cfg @cfg &prj-cfg/***; + + $init -C @cfg &prj-cfg/***; $* >'prj configured 0.1.0-a.0.19700101000000'; @@ -35,12 +38,13 @@ deinit += -d prj EOE } -: two-configs +: multi-cfg : { $clone_prj; - $init -C prj-cfg1 @cfg1 &prj-cfg1/***; - $init -C prj-cfg2 @cfg2 &prj-cfg2/***; + + $init -C @cfg1 &prj-cfg1/***; + $init -C @cfg2 &prj-cfg2/***; $* @cfg2 >'prj configured 0.1.0-a.0.19700101000000'; @@ -63,9 +67,10 @@ deinit += -d prj : { $clone_prj; - $init -C prj-cfg @cfg &prj-cfg/***; - $new -t lib --vcs none libprj &libprj/***; + $init -C @cfg &prj-cfg/***; + + $new -t lib libprj &libprj/***; cat <<EOI >+prj/repositories.manifest; : @@ -78,7 +83,7 @@ deinit += -d prj depends: libprj EOI - $* --recursive >>EOO 2>>/"EOE"; + $* --recursive >>EOO 2>>/"EOE"; # Note: implicitly fetches in cfg. prj configured 0.1.0-a.0.19700101000000 available 0.1.0-a.0.19700101000000#1 EOO fetching dir:$~/libprj \(prerequisite of dir:$~/prj\) @@ -88,7 +93,7 @@ deinit += -d prj $* --recursive >>~%EOO%; prj configured 0.1.0-a.0.19700101000000#1 - % libprj configured 0\.1\.0-a\.0\..+% + % libprj configured 0.+% EOO $deinit 2>>/"EOE" |