From 08eea971d2d3170ca357935644483dc520f46173 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Dec 2016 13:19:49 +0200 Subject: Organize tests/, factor common testscript fragments --- tests/directive/assert.test | 2 +- tests/directive/buildfile | 4 +--- tests/directive/common.test | 11 ----------- 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 tests/directive/common.test (limited to 'tests/directive') diff --git a/tests/directive/assert.test b/tests/directive/assert.test index ca1b035..80e28ba 100644 --- a/tests/directive/assert.test +++ b/tests/directive/assert.test @@ -2,7 +2,7 @@ # copyright : Copyright (c) 2014-2016 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file -.include common.test +.include ../common.test $* <'assert true' : true $* <'assert! false foo' : not-false diff --git a/tests/directive/buildfile b/tests/directive/buildfile index e9e946e..583b149 100644 --- a/tests/directive/buildfile +++ b/tests/directive/buildfile @@ -2,6 +2,4 @@ # copyright : Copyright (c) 2014-2016 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file -./: test{assert} file{common.test} - -test{*}: test = $effect($build.path) +./: test{assert} diff --git a/tests/directive/common.test b/tests/directive/common.test deleted file mode 100644 index 351c133..0000000 --- a/tests/directive/common.test +++ /dev/null @@ -1,11 +0,0 @@ -# file : tests/directive/assert.test -# copyright : Copyright (c) 2014-2016 Code Synthesis Ltd -# license : MIT; see accompanying LICENSE file - -+mkdir build -+cat <>>build/bootstrap.build -project = test -amalgamation = -EOI - -test.options += -q --buildfile - noop -- cgit v1.1