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/update.test | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/update.test (limited to 'tests/update.test') 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 +} -- cgit v1.1