aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang.sh
diff options
context:
space:
mode:
authorpiegames <git@piegames.de>2024-07-13 07:55:17 +0200
committerpiegames <git@piegames.de>2024-08-17 20:31:57 +0200
commit278fddc317cf0cf4d3602d0ec0f24d1dd281fadb (patch)
tree002c63288018f70755e2a60f9af554fe5cbca85b /tests/functional/lang.sh
parent49d61b2e4bf338042364c85d3c2ead0b33963e65 (diff)
libexpr: Deprecate URL literals
Closes #437. Change-Id: I9f67fc965bb4a7e7fd849e5067ac1cb3bab064cd
Diffstat (limited to 'tests/functional/lang.sh')
-rwxr-xr-xtests/functional/lang.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/functional/lang.sh b/tests/functional/lang.sh
index 94c00bad0..aa41b41d8 100755
--- a/tests/functional/lang.sh
+++ b/tests/functional/lang.sh
@@ -53,8 +53,13 @@ done
for i in lang/parse-okay-*.nix; do
echo "parsing $i (should succeed)";
i=$(basename "$i" .nix)
+ # Hard-code that these two files are allowed to use url literals (because they test them)
+ if [[ "$i" == "parse-okay-url" || "$i" == "parse-okay-regression-20041027" ]]
+ then
+ extraArgs="--extra-deprecated-features url-literals"
+ fi
if
- expect 0 nix-instantiate --parse - < "lang/$i.nix" \
+ expect 0 nix-instantiate --parse ${extraArgs-} - < "lang/$i.nix" \
1> "lang/$i.out" \
2> "lang/$i.err"
then