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/update.test | |
parent | 602b71ed970b8ca9fea19c0103be7a977179d50d (diff) |
Add update, clean, and test commands tests
Diffstat (limited to 'tests/update.test')
-rw-r--r-- | tests/update.test | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/update.test b/tests/update.test new file mode 100644 index 0000000..23055c6 --- /dev/null +++ b/tests/update.test @@ -0,0 +1,38 @@ +# file : tests/update.test +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +# Here we test both update and clean commands. +# + +.include common.test project.test + +init += cc "config.cxx=$config.cxx" -d prj 2>! +deinit += -d prj +clean += -d prj + +: project +: +{ + $clone_prj; + + $init -C @cfg &prj-cfg/***; + + $* 2>>/EOE; + mkdir prj-cfg/prj/fsdir{prj/} + c++ prj/prj/cxx{prj}@prj-cfg/prj/prj/ + ld prj-cfg/prj/prj/exe{prj} + EOE + + $clean 2>>/EOE; + rm prj-cfg/prj/prj/exe{prj} + rm prj-cfg/prj/prj/obje{prj} + rm prj-cfg/prj/fsdir{prj/} + EOE + + $deinit 2>>/"EOE" + deinitializing in project $~/prj/ + synchronizing: + drop prj + EOE +} |