From d2cc0c0218ab1b6247877a34f3fea504e7865d6f Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 3 Mar 2022 11:26:30 +0100 Subject: Add end-to-end test executing compiled binaries Add a test that compiles many C binaries and runs them. The main purpose of the test is to detect any race conditions in this scenario. --- test/end-to-end/generated-binary/TARGETS | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'test/end-to-end/generated-binary/TARGETS') diff --git a/test/end-to-end/generated-binary/TARGETS b/test/end-to-end/generated-binary/TARGETS index 2f9164e9..e19f97f3 100644 --- a/test/end-to-end/generated-binary/TARGETS +++ b/test/end-to-end/generated-binary/TARGETS @@ -5,5 +5,15 @@ , "keep": ["out/out.txt"] , "deps": [["test/end-to-end", "tool-under-test"]] } -, "TESTS": {"type": "install", "tainted": ["test"], "deps": ["shell"]} +, "compile rules": + {"type": "install", "files": {"RULES": "data/RULES.compiled"}} +, "compiled": + { "type": ["@", "rules", "shell/test", "script"] + , "name": ["compiled"] + , "test": ["compiled.sh"] + , "keep": ["graph.json", "out/out.txt"] + , "deps": [["test/end-to-end", "tool-under-test"], "compile rules"] + } +, "TESTS": + {"type": "install", "tainted": ["test"], "deps": ["shell", "compiled"]} } -- cgit v1.2.3