aboutsummaryrefslogtreecommitdiff
path: root/tests/directive
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-01 13:19:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-01 13:19:49 +0200
commit08eea971d2d3170ca357935644483dc520f46173 (patch)
tree871df5e71e364d4620db74298b7f88f9466d1473 /tests/directive
parent0ed86c76239d4f2904ea4ae1a77902a9e0db2a6d (diff)
Organize tests/, factor common testscript fragments
Diffstat (limited to 'tests/directive')
-rw-r--r--tests/directive/assert.test2
-rw-r--r--tests/directive/buildfile4
-rw-r--r--tests/directive/common.test11
3 files changed, 2 insertions, 15 deletions
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 <<EOI >>>build/bootstrap.build
-project = test
-amalgamation =
-EOI
-
-test.options += -q --buildfile - noop