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:
piegames
2025-11-17 22:10:11 +00:00
parent b912f91f62
commit 5f7e032d28
13 changed files with 17 additions and 13 deletions
@@ -1 +0,0 @@
--extra-deprecated-features cr-line-endings
@@ -1 +0,0 @@
--extra-deprecated-features cr-line-endings
@@ -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,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,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"]