aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-28 14:32:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-28 14:32:38 +0200
commit9693eae0d4fddb148bd5fd663a7a2e802d3e4666 (patch)
treec4aecfd4518dca552ea424e4d84fd75412edc6c1 /unit-tests/test
parent1c7cbb302b1c6e41eb0c5cecfc655532f1919cba (diff)
Use utility library to arrange unit testing
Diffstat (limited to 'unit-tests/test')
-rw-r--r--unit-tests/test/script/lexer/buildfile14
-rw-r--r--unit-tests/test/script/parser/buildfile15
-rw-r--r--unit-tests/test/script/regex/buildfile9
3 files changed, 3 insertions, 35 deletions
diff --git a/unit-tests/test/script/lexer/buildfile b/unit-tests/test/script/lexer/buildfile
index 365b092..8cb284c 100644
--- a/unit-tests/test/script/lexer/buildfile
+++ b/unit-tests/test/script/lexer/buildfile
@@ -2,17 +2,5 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-#@@ Temporary until we get utility library support.
-#
-import libs = libbutl%lib{butl}
-src = token lexer diagnostics utility variable name b-options types-parsers \
-context scope parser target operation rule prerequisite file module function \
-functions-builtin functions-filesystem functions-path functions-process-path \
-functions-regex functions-string functions-target-triplet algorithm search \
-dump filesystem scheduler config/{utility init operation module} \
-test/script/{token lexer} spec
-
-exe{driver}: {hxx cxx}{*} ../../../../build2/cxx{$src} \
- ../../../../build2/liba{b} $libs test{*}
-
include ../../../../build2/
+exe{driver}: {hxx cxx}{*} ../../../../build2/libu{b} test{*}
diff --git a/unit-tests/test/script/parser/buildfile b/unit-tests/test/script/parser/buildfile
index 3f62835..ea76bcd 100644
--- a/unit-tests/test/script/parser/buildfile
+++ b/unit-tests/test/script/parser/buildfile
@@ -2,18 +2,5 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-#@@ Temporary until we get utility library support.
-#
-import libs = libbutl%lib{butl}
-src = token lexer parser diagnostics utility variable name context target \
-scope prerequisite file module operation rule b-options algorithm search \
-filesystem function functions-builtin functions-filesystem functions-path \
-functions-process-path functions-regex functions-string \
-functions-target-triplet config/{utility init operation module} dump \
-types-parsers test/{target script/{token lexer parser regex script}} \
-scheduler spec
-
-exe{driver}: {hxx cxx}{*} ../../../../build2/cxx{$src} \
- ../../../../build2/liba{b} $libs test{*}
-
include ../../../../build2/
+exe{driver}: {hxx cxx}{*} ../../../../build2/libu{b} test{*}
diff --git a/unit-tests/test/script/regex/buildfile b/unit-tests/test/script/regex/buildfile
index 1230338..217ff70 100644
--- a/unit-tests/test/script/regex/buildfile
+++ b/unit-tests/test/script/regex/buildfile
@@ -2,12 +2,5 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-#@@ Temporary until we get utility library support.
-#
-import libs = libbutl%lib{butl}
-src = test/script/regex
-
-exe{driver}: {hxx cxx}{*} ../../../../build2/cxx{$src} \
- ../../../../build2/liba{b} $libs
-
include ../../../../build2/
+exe{driver}: {hxx cxx}{*} ../../../../build2/libu{b}