Skip to content

Commit

Permalink
Simplify tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed May 3, 2024
1 parent bd6cb2c commit ef2d2a3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 24 deletions.
Empty file added tests/empty
Empty file.
4 changes: 1 addition & 3 deletions tests/explicit-filename.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
arguments ..
file input <>
input
end-of-inline-data
file input empty
file build.fninja <>
rule a
command = {{input}} $in $out
Expand Down
8 changes: 2 additions & 6 deletions tests/filelist.test
Original file line number Diff line number Diff line change
@@ -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 :=
Expand Down
4 changes: 1 addition & 3 deletions tests/implicit-output.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
arguments ..
file input <>
input
end-of-inline-data
file input empty
file build.fninja <>
rule a
command = a $in $out
Expand Down
4 changes: 1 addition & 3 deletions tests/sub-output.test
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 2 additions & 6 deletions tests/subninja.test
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions tests/variable-output.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
arguments ..
file input <>
input
end-of-inline-data
file input empty
file build.fninja <>
version = 2
output := output-$version
Expand Down

0 comments on commit ef2d2a3

Please sign in to comment.