tests/functional2/lang: Migrate eol tests
Also slightly refactor the existing crlf test to better fit in Change-Id: Ib4dfa4b3318b3dd55a12d99a9f4908cdf1bce08b
This commit is contained in:
@@ -1 +0,0 @@
|
||||
--extra-deprecated-features cr-line-endings
|
||||
@@ -1 +0,0 @@
|
||||
--extra-deprecated-features cr-line-endings
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
error: undefined variable 'invalid'
|
||||
at /pwd/parse-fail-eol-1.nix:2:1:
|
||||
at /pwd/in.nix:2:1:
|
||||
1| # foo
|
||||
2| invalid
|
||||
| ^
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
error: undefined variable 'invalid'
|
||||
at /pwd/parse-fail-eol-2.nix:2:1:
|
||||
at /pwd/in.nix:2:1:
|
||||
1| # foo
|
||||
2| invalid
|
||||
| ^
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
error: undefined variable 'invalid'
|
||||
at /pwd/parse-fail-eol-3.nix:2:1:
|
||||
at /pwd/in.nix:2:1:
|
||||
1| # foo
|
||||
2| invalid
|
||||
| ^
|
||||
@@ -0,0 +1,14 @@
|
||||
[[test]]
|
||||
name = "parse-fail-crlf"
|
||||
runner = "parse-fail"
|
||||
|
||||
[[test]]
|
||||
name = "parse-okay-with-warning"
|
||||
runner = "parse-okay"
|
||||
flags = ["--extra-deprecated-features", "cr-line-endings"]
|
||||
|
||||
[[test]]
|
||||
runner = "parse-fail"
|
||||
in = [ "in-eol-1.nix", "in-eol-2.nix", "in-eol-3.nix" ]
|
||||
matrix = true
|
||||
flags = ["--extra-deprecated-features", "cr-line-endings"]
|
||||
@@ -1,8 +0,0 @@
|
||||
[[test]]
|
||||
name = "depr"
|
||||
runner = "parse-fail"
|
||||
|
||||
[[test]]
|
||||
name = "allow-depr"
|
||||
runner = "parse-okay"
|
||||
flags = ["--extra-deprecated-features", "cr-line-endings"]
|
||||
Reference in New Issue
Block a user