diff --git a/tests/nested-file-variable.test-not b/tests/nested-file-variable.test-not new file mode 100644 index 0000000..d62be3b --- /dev/null +++ b/tests/nested-file-variable.test-not @@ -0,0 +1,45 @@ +arguments .. +file input-1 empty +file input-2 empty +file input-3 empty +file input-4 empty +file build.fninja <> +common_sources := + input-2 + input-3 +sources := + input-1 + $common_sources + input-4 + +rule a + command = a $in $out + flags = --verbose + +build output: a $sources +end-of-inline-data +file build/build.ninja {} <> +# This file is automatically created by fast-ninja from ../build.fninja +# Do not edit. + +build_directory = . +source_directory = .. +sources = ../input ../input-2 output +top_build_directory = . +top_source_directory = .. +version = 2 + +rule a + command = a $in $out + flags = --verbose + +rule fast-ninja + command = fast-ninja .. + generator = 1 + +build output : a ../input + +build final : a ../input ../input-2 output + +build build.ninja : fast-ninja ../build.fninja +end-of-inline-data diff --git a/tests/variable-default.test b/tests/variable-default.test new file mode 100644 index 0000000..9a6cb70 --- /dev/null +++ b/tests/variable-default.test @@ -0,0 +1,55 @@ +arguments .. +file input empty +file build.fninja <> +built_files := + output + sub/output + +rule a + command = a $in $out + flags = --verbose + +build output: a input + +default $built_files + +subninja sub/build.fninja +end-of-inline-data +file sub/build.fninja <> +build output: a ../input +end-of-inline-data +file build/build.ninja {} <> +# This file is automatically created by fast-ninja from ../build.fninja +# Do not edit. + +build_directory = . +built_files = output sub/output +source_directory = .. +top_build_directory = . +top_source_directory = .. + +rule a + command = a $in $out + flags = --verbose + +rule fast-ninja + command = fast-ninja .. + generator = 1 + +build output : a ../input + +build build.ninja sub/build.ninja : fast-ninja ../build.fninja ../sub/build.fninja + +default output sub/output + +subninja sub/build.ninja +end-of-inline-data +file build/sub/build.ninja {} <> +# This file is automatically created by fast-ninja from ../sub/build.fninja +# Do not edit. + +build_directory = sub +source_directory = ../sub + +build sub/output : a ../input +end-of-inline-data