From a852ceb0c8a3d4b134a009a1ab4a0d53241ebb87 Mon Sep 17 00:00:00 2001 From: piegames Date: Tue, 14 Oct 2025 12:20:38 +0200 Subject: [PATCH] tests/functional2/lang: Migrate autoargs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit autoargs get their own folder and are not allowed with the other function args tests, just like they deserve their own ring of hell It shall be noted though that this test is particularly pointless, as it merely tests the normal argument passing (which is fine), and not the ✨magic✨ autoargs actually provide Change-Id: Ia2dc00754a13c02e4926200141f90bc797820a15 --- tests/functional/lang/eval-okay-autoargs.flags | 1 - .../lang/function-autoargs/eval-okay.out.exp} | 0 .../lang/function-autoargs/in.nix} | 0 tests/functional2/lang/function-autoargs/test.toml | 3 +++ 4 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 tests/functional/lang/eval-okay-autoargs.flags rename tests/{functional/lang/eval-okay-autoargs.exp => functional2/lang/function-autoargs/eval-okay.out.exp} (100%) rename tests/{functional/lang/eval-okay-autoargs.nix => functional2/lang/function-autoargs/in.nix} (100%) create mode 100644 tests/functional2/lang/function-autoargs/test.toml diff --git a/tests/functional/lang/eval-okay-autoargs.flags b/tests/functional/lang/eval-okay-autoargs.flags deleted file mode 100644 index 7163ac42f..000000000 --- a/tests/functional/lang/eval-okay-autoargs.flags +++ /dev/null @@ -1 +0,0 @@ ---arg lib import(./lib.nix) --argstr xyzzy xyzzy! -A result diff --git a/tests/functional/lang/eval-okay-autoargs.exp b/tests/functional2/lang/function-autoargs/eval-okay.out.exp similarity index 100% rename from tests/functional/lang/eval-okay-autoargs.exp rename to tests/functional2/lang/function-autoargs/eval-okay.out.exp diff --git a/tests/functional/lang/eval-okay-autoargs.nix b/tests/functional2/lang/function-autoargs/in.nix similarity index 100% rename from tests/functional/lang/eval-okay-autoargs.nix rename to tests/functional2/lang/function-autoargs/in.nix diff --git a/tests/functional2/lang/function-autoargs/test.toml b/tests/functional2/lang/function-autoargs/test.toml new file mode 100644 index 000000000..5099a98ad --- /dev/null +++ b/tests/functional2/lang/function-autoargs/test.toml @@ -0,0 +1,3 @@ +[[test]] +runner = "eval-okay" +flags = [ "--arg", "lib", "import(./lib.nix)", "--argstr", "xyzzy", "xyzzy!", "-A", "result" ]