Skip to content

Commit

Permalink
Add two new tests, one currently hangs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed May 3, 2024
1 parent ef2d2a3 commit a8c4367
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
45 changes: 45 additions & 0 deletions tests/nested-file-variable.test-not
Original file line number Diff line number Diff line change
@@ -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
55 changes: 55 additions & 0 deletions tests/variable-default.test
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a8c4367

Please sign in to comment.