aboutsummaryrefslogtreecommitdiff
path: root/unit-tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-21 17:41:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:34 +0200
commit64cbe53f7361075f841572854f1065a6f7c6507c (patch)
tree6f37bf0fed1303f1cda337296d35b3dfc8a60a35 /unit-tests
parenta199a557c732af8ec52f52b35d4b81673d607791 (diff)
Add testscript runner scope enter/leave callbacks
Diffstat (limited to 'unit-tests')
-rw-r--r--unit-tests/test/script/parser/driver.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx
index db253eb..4d71082 100644
--- a/unit-tests/test/script/parser/driver.cxx
+++ b/unit-tests/test/script/parser/driver.cxx
@@ -29,12 +29,18 @@ namespace build2
{
public:
virtual void
- run (const scope&, const command& t, size_t, const location&) override
+ enter (scope&, const location&) override {}
+
+ virtual void
+ run (scope&, const command& t, size_t, const location&) override
{
// Here we assume we are running serially.
//
cout << t << endl;
}
+
+ virtual void
+ leave (scope&, const location&) override {}
};
// Usage: argv[0] [<testscript-name>]