about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-11-21T13·49+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-11-21T13·49+0000
commit06f95dd07ce691a1f12c8ec7fa5ad84858d81cd0 (patch)
treebca2f5bb29b4a6844eb8f35c04d4e9bda7025128 /tests
parentc370755583d7350f4b96136eb0a6a8a7b08551b1 (diff)
* New primop `readFile' to get the contents of a file as a string.
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/eval-okay-readfile.exp1
-rw-r--r--tests/lang/eval-okay-readfile.nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-readfile.exp b/tests/lang/eval-okay-readfile.exp
new file mode 100644
index 000000000000..979771c7a320
--- /dev/null
+++ b/tests/lang/eval-okay-readfile.exp
@@ -0,0 +1 @@
+Str("builtins.readFile ./eval-okay-readfile.nix\n",[])
diff --git a/tests/lang/eval-okay-readfile.nix b/tests/lang/eval-okay-readfile.nix
new file mode 100644
index 000000000000..82f7cb17435a
--- /dev/null
+++ b/tests/lang/eval-okay-readfile.nix
@@ -0,0 +1 @@
+builtins.readFile ./eval-okay-readfile.nix