aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/script
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/script/script')
-rw-r--r--build2/test/script/script18
1 files changed, 18 insertions, 0 deletions
diff --git a/build2/test/script/script b/build2/test/script/script
index e3afbca..04b964f 100644
--- a/build2/test/script/script
+++ b/build2/test/script/script
@@ -59,6 +59,19 @@ namespace build2
redirect err;
};
+ enum class command_to_stream: uint16_t
+ {
+ header = 0x01,
+ here_doc = 0x02, // Note: printed on a new line.
+ all = header | here_doc
+ };
+
+ void
+ to_stream (ostream&, const command&, command_to_stream);
+
+ ostream&
+ operator<< (ostream&, const command&);
+
enum class exit_comparison {eq, ne};
struct command_exit
@@ -91,6 +104,9 @@ namespace build2
command_exit exit;
};
+ ostream&
+ operator<< (ostream&, const test&);
+
class scope
{
public:
@@ -162,4 +178,6 @@ namespace build2
}
}
+#include <build2/test/script/script.ixx>
+
#endif // BUILD2_TEST_SCRIPT_SCRIPT