about summary refs log tree commit diff
path: root/tests/lang
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-10-01T13·40-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-03T20·32+0200
commit3fd2d2187efcb0d7c7fe7ebdc2baa14edfac6d0c (patch)
tree40130627ac7ff4fa55f8a358bcedd7797c37b889 /tests/lang
parent3b5fa8d50cd7e4db0691884effcbdc7809ad9ed9 (diff)
Add test for readDir primop
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/eval-okay-readDir.exp1
-rw-r--r--tests/lang/eval-okay-readDir.nix1
-rw-r--r--tests/lang/readDir/bar0
-rw-r--r--tests/lang/readDir/foo/git-hates-directories0
4 files changed, 2 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-readDir.exp b/tests/lang/eval-okay-readDir.exp
new file mode 100644
index 000000000000..bf8d2c14ea4f
--- /dev/null
+++ b/tests/lang/eval-okay-readDir.exp
@@ -0,0 +1 @@
+{ bar = "regular"; foo = "directory"; }
diff --git a/tests/lang/eval-okay-readDir.nix b/tests/lang/eval-okay-readDir.nix
new file mode 100644
index 000000000000..a7ec9292aae2
--- /dev/null
+++ b/tests/lang/eval-okay-readDir.nix
@@ -0,0 +1 @@
+builtins.readDir ./readDir
diff --git a/tests/lang/readDir/bar b/tests/lang/readDir/bar
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/tests/lang/readDir/bar
diff --git a/tests/lang/readDir/foo/git-hates-directories b/tests/lang/readDir/foo/git-hates-directories
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/tests/lang/readDir/foo/git-hates-directories