From 4f8ad41d4eb2012f01cd09ad745e78c5b8d8bee6 Mon Sep 17 00:00:00 2001 From: Artturin Date: Wed, 16 Mar 2022 20:57:18 +0200 Subject: [PATCH] add tests for nix eval and nix-instantiate --- tests/eval.nix | 5 +++++ tests/eval.sh | 29 +++++++++++++++++++++++++++++ tests/local.mk | 1 + 3 files changed, 35 insertions(+) create mode 100644 tests/eval.nix create mode 100644 tests/eval.sh diff --git a/tests/eval.nix b/tests/eval.nix new file mode 100644 index 000000000..befbd17a9 --- /dev/null +++ b/tests/eval.nix @@ -0,0 +1,5 @@ +{ + int = 123; + str = "foo"; + attr.foo = "bar"; +} diff --git a/tests/eval.sh b/tests/eval.sh new file mode 100644 index 000000000..2e5ceb969 --- /dev/null +++ b/tests/eval.sh @@ -0,0 +1,29 @@ +source common.sh + +clearStore + +testStdinHeredoc=$(nix eval -f - <