From ef2d2a38adf6dad166d2167c9ef4a7a674bb8147 Mon Sep 17 00:00:00 2001 From: Dieter Baron Date: Fri, 3 May 2024 08:18:45 +0200 Subject: [PATCH] Simplify tests. --- tests/empty | 0 tests/explicit-filename.test | 4 +--- tests/filelist.test | 8 ++------ tests/implicit-output.test | 4 +--- tests/sub-output.test | 4 +--- tests/subninja.test | 8 ++------ tests/variable-output.test | 4 +--- 7 files changed, 8 insertions(+), 24 deletions(-) create mode 100644 tests/empty diff --git a/tests/empty b/tests/empty new file mode 100644 index 0000000..e69de29 diff --git a/tests/explicit-filename.test b/tests/explicit-filename.test index fb1f1b7..4ee65e8 100644 --- a/tests/explicit-filename.test +++ b/tests/explicit-filename.test @@ -1,7 +1,5 @@ arguments .. -file input <> -input -end-of-inline-data +file input empty file build.fninja <> rule a command = {{input}} $in $out diff --git a/tests/filelist.test b/tests/filelist.test index 1fba939..fdecf9c 100644 --- a/tests/filelist.test +++ b/tests/filelist.test @@ -1,10 +1,6 @@ arguments .. -file input <> -input -end-of-inline-data -file input-2 <> -input 2 -end-of-inline-data +file input empty +file input-2 empty file build.fninja <> version = 2 sources := diff --git a/tests/implicit-output.test b/tests/implicit-output.test index e368214..8afa4e0 100644 --- a/tests/implicit-output.test +++ b/tests/implicit-output.test @@ -1,7 +1,5 @@ arguments .. -file input <> -input -end-of-inline-data +file input empty file build.fninja <> rule a command = a $in $out diff --git a/tests/sub-output.test b/tests/sub-output.test index 8ac890d..071c3d3 100644 --- a/tests/sub-output.test +++ b/tests/sub-output.test @@ -1,7 +1,5 @@ arguments .. -file src/input <> -source input -end-of-inline-data +file src/input empty file build.fninja <> sources := src/sub-output diff --git a/tests/subninja.test b/tests/subninja.test index a952264..608360d 100644 --- a/tests/subninja.test +++ b/tests/subninja.test @@ -1,10 +1,6 @@ arguments .. -file input <> -main input -end-of-inline-data -file src/input <> -source input -end-of-inline-data +file input empty +file src/input empty file build.fninja <> rule a command = a $in $out diff --git a/tests/variable-output.test b/tests/variable-output.test index 39be3fd..738942d 100644 --- a/tests/variable-output.test +++ b/tests/variable-output.test @@ -1,7 +1,5 @@ arguments .. -file input <> -input -end-of-inline-data +file input empty file build.fninja <> version = 2 output := output-$version