From 7e97d8a41f9d7b0fb82742cdd871a18804267c72 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Nov 2016 16:55:57 +0200 Subject: Restructure testscript parser slightly --- build2/test/script/script | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build2/test/script/script') diff --git a/build2/test/script/script b/build2/test/script/script index 5f6b861..aff5a59 100644 --- a/build2/test/script/script +++ b/build2/test/script/script @@ -5,6 +5,8 @@ #ifndef BUILD2_TEST_SCRIPT_SCRIPT #define BUILD2_TEST_SCRIPT_SCRIPT +#include + #include #include @@ -293,6 +295,11 @@ namespace build2 location start_loc_; location end_loc_; + + // Set of testscript files already included in this scope. Paths must + // be absolute and normalized. + // + std::set testscripts_; }; // group @@ -364,6 +371,11 @@ namespace build2 testscript& script_target, const dir_path& root_wd); + script (script&&) = default; + script (const script&) = delete; + script& operator= (script&&) = delete; + script& operator= (const script&) = delete; + public: target& test_target; // Target we are testing. testscript& script_target; // Target of the testscript file. -- cgit v1.1