aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-10-01 09:40:45 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-03 22:32:11 +0200
commit3fd2d2187efcb0d7c7fe7ebdc2baa14edfac6d0c (patch)
tree40130627ac7ff4fa55f8a358bcedd7797c37b889 /tests
parent3b5fa8d50cd7e4db0691884effcbdc7809ad9ed9 (diff)
Add test for readDir primop
Diffstat (limited to 'tests')
-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 000000000..bf8d2c14e
--- /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 000000000..a7ec9292a
--- /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 000000000..e69de29bb
--- /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 000000000..e69de29bb
--- /dev/null
+++ b/tests/lang/readDir/foo/git-hates-directories