From 1ffe9fa27ee9829c16446a09aa5bd94bcc60ab68 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 14 May 2018 21:03:01 +0300 Subject: Add update, clean, and test commands tests --- tests/test.test | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/test.test (limited to 'tests/test.test') diff --git a/tests/test.test b/tests/test.test new file mode 100644 index 0000000..673927b --- /dev/null +++ b/tests/test.test @@ -0,0 +1,29 @@ +# file : tests/test.test +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +.include common.test project.test + +init += cc "config.cxx=$config.cxx" -d prj 2>! +deinit += -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} + test prj/prj/test{testscript}@prj-cfg/prj/prj/ prj-cfg/prj/prj/exe{prj} + EOE + + $deinit 2>>/"EOE" + deinitializing in project $~/prj/ + synchronizing: + drop prj + EOE +} -- cgit v1.1