diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-14 21:03:01 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-15 18:12:12 +0300 |
commit | 1ffe9fa27ee9829c16446a09aa5bd94bcc60ab68 (patch) | |
tree | fef5df69e64ab0c64dc299e864e04185b7d022e0 /tests/status.test | |
parent | 602b71ed970b8ca9fea19c0103be7a977179d50d (diff) |
Add update, clean, and test commands tests
Diffstat (limited to 'tests/status.test')
-rw-r--r-- | tests/status.test | 58 |
1 files changed, 39 insertions, 19 deletions
diff --git a/tests/status.test b/tests/status.test index bdf3434..99fe360 100644 --- a/tests/status.test +++ b/tests/status.test @@ -4,27 +4,34 @@ .include common.test project.test -new += 2>! -init += cc "config.cxx=$config.cxx" -d prj 2>! -sync += -d prj 2>! +new += 2>! +init += cc "config.cxx=$config.cxx" -d prj 2>! +sync += -d prj 2>! +deinit += -d prj -: basic +: no-config : { $clone_prj; - $init -C prj-cfg @cfg &prj/build/bootstrap/*** &prj-cfg/***; - $* >'prj configured 0.1.0-a.0.19700101000000' + $* 2>>/"EOE" != 0 + error: no default configuration in project $~/prj/ + info: use \(@<cfg-name> | --config|-c <cfg-dir> | --all|-a\) to specify configuration explicitly + EOE } -: no-config +: one-config : { $clone_prj; + $init -C prj-cfg @cfg &prj-cfg/***; - $* 2>>/"EOE" != 0 - error: no default configuration in project $~/prj/ - info: use \(@<cfg-name> | --config|-c <cfg-dir> | --all|-a\) to specify configuration explicitly + $* >'prj configured 0.1.0-a.0.19700101000000'; + + $deinit 2>>/"EOE" + deinitializing in project $~/prj/ + synchronizing: + drop prj EOE } @@ -32,49 +39,62 @@ sync += -d prj 2>! : { $clone_prj; - $init -C prj-cfg1 @cfg1 &prj-cfg1/*** &prj/build/bootstrap/***; + $init -C prj-cfg1 @cfg1 &prj-cfg1/***; $init -C prj-cfg2 @cfg2 &prj-cfg2/***; $* @cfg2 >'prj configured 0.1.0-a.0.19700101000000'; - $* --all >>EOO + $* --all >>EOO; in configuration @cfg1: prj configured 0.1.0-a.0.19700101000000 in configuration @cfg2: prj configured 0.1.0-a.0.19700101000000 EOO + + $deinit 2>>/"EOE" + deinitializing in project $~/prj/ + synchronizing: + drop prj + EOE } : dependency : { $clone_prj; - $init -C prj-cfg @cfg &prj/build/bootstrap/*** &prj-cfg/***; + $init -C prj-cfg @cfg &prj-cfg/***; - $new -t lib --vcs none libhello &libhello/***; + $new -t lib --vcs none libprj &libprj/***; cat <<EOI >+prj/repositories.manifest; : role: prerequisite - location: ../libhello + location: ../libprj type: dir EOI cat <<EOI >+prj/manifest; - depends: libhello + depends: libprj EOI $* --recursive >>EOO 2>>/"EOE"; prj configured 0.1.0-a.0.19700101000000 available 0.1.0-a.0.19700101000000#1 EOO - fetching dir:$~/libhello \(prerequisite of dir:$~/prj\) + fetching dir:$~/libprj \(prerequisite of dir:$~/prj\) EOE $sync; - $* --recursive >>~%EOO% + $* --recursive >>~%EOO%; prj configured 0.1.0-a.0.19700101000000#1 - % libhello configured 0\.1\.0-a\.0\..+% + % libprj configured 0\.1\.0-a\.0\..+% EOO + + $deinit 2>>/"EOE" + deinitializing in project $~/prj/ + synchronizing: + drop prj + drop libprj + EOE } |