From ea22643b2217921df74ea14df47d7c83987d5761 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Dec 2016 17:29:27 +0200 Subject: Initial parallel scheduler implementation, use to run testscrips --- build2/test/script/script | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'build2/test/script/script') diff --git a/build2/test/script/script b/build2/test/script/script index 1be33bb..4f39c58 100644 --- a/build2/test/script/script +++ b/build2/test/script/script @@ -48,6 +48,11 @@ namespace build2 { line_type type; replay_tokens tokens; + + union + { + const variable* var; // Pre-entered for line_type::var. + }; }; // Most of the time we will have just one line (test command). @@ -296,6 +301,11 @@ namespace build2 value& append (const variable&); + // Reset special $*, $N variables based on the test.* values. + // + void + reset_special (); + // Cleanup. // public: @@ -400,9 +410,10 @@ namespace build2 const variable& opts_var; // test.options const variable& args_var; // test.arguments - const variable& cmd_var; // $* - const variable& wd_var; // $~ - const variable& id_var; // $@ + const variable& wd_var; // $~ + const variable& id_var; // $@ + const variable& cmd_var; // $* + const variable* cmdN_var[10]; // $N }; class script: public script_base, public group -- cgit v1.1