From d1d9fbc899be37bba7b05f31ac5c7a4d15d64811 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 4 Sep 2018 14:32:11 +0300 Subject: Rename .test/test{} to .testscript/testscript{} --- tests/fetch.testscript | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 tests/fetch.testscript (limited to 'tests/fetch.testscript') diff --git a/tests/fetch.testscript b/tests/fetch.testscript new file mode 100644 index 0000000..2564470 --- /dev/null +++ b/tests/fetch.testscript @@ -0,0 +1,54 @@ +# file : tests/fetch.testscript +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +.include common.testscript project.testscript + +cxx = cc config.cxx="$recall($cxx.path)" + +new += 2>! +init += $cxx -d prj 2>! +status += --all -d prj +deinit += -d prj + +: dependency +: +{ + $clone_prj; + $init -C @cfg &prj-cfg/***; + + $new -t lib libbar &libbar/*** 2>!; + $new -t lib libfoo &libfoo/*** 2>!; + + cat <+prj/repositories.manifest; + : + role: prerequisite + location: ../libfoo + type: dir + : + role: complement + location: ../libbar + type: dir + EOI + + cat <+prj/manifest; + depends: libfoo + depends: libbar + EOI + + $* 2>>/"EOE"; + fetching dir:$~/libbar \(complements dir:$~/prj\) + fetching dir:$~/libfoo \(prerequisite of dir:$~/prj\) + EOE + + $status libfoo libbar >>~%EOO%; + %libfoo available \[.+\]% + %libbar available .+% + EOO + + $deinit 2>>/"EOE" + deinitializing in project $~/prj/ + synchronizing: + drop prj + EOE +} -- cgit v1.1