diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-11 10:14:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-12 10:58:19 +0200 |
commit | 9bf93c1ab73ee3cd2b763285fc5fc5456e972854 (patch) | |
tree | 0357c36e12fe2137ef6c9bd228e9d69bb2489a02 /unit-tests/test/script | |
parent | 33ed305eac57bff406fa3f672ba8acc4941e8f13 (diff) |
Implement support for narrowing down tests (config.test)
Diffstat (limited to 'unit-tests/test/script')
-rw-r--r-- | unit-tests/test/script/parser/driver.cxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx index 0fc0585..e167505 100644 --- a/unit-tests/test/script/parser/driver.cxx +++ b/unit-tests/test/script/parser/driver.cxx @@ -34,6 +34,12 @@ namespace build2 print_runner (bool scope, bool id, bool line) : scope_ (scope), id_ (id), line_ (line) {} + virtual bool + test (scope&) const override + { + return true; + } + virtual void enter (scope& s, const location&) override { @@ -184,11 +190,12 @@ namespace build2 trace)); testscript& st ( - targets.insert<testscript> (work, - dir_path (), - "testscript", - &extension_pool.find (""), - trace)); + targets.insert<testscript> ( + work, + dir_path (), + name.leaf ().base ().string (), + &extension_pool.find (name.leaf ().extension ()), + trace)); tt.path (path ("driver")); st.path (name); |