diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-01-23 17:37:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 17:37:22 +0100 |
commit | 9b56683398de777219627c96be75c0195e630cb7 (patch) | |
tree | 47cbaaa0727137626a113d8bda144d4760064649 /tests | |
parent | 0a9acefeb5ca7c800054f328d6da24e3a333cbbd (diff) | |
parent | 37c533ed2730b26207434ffbc972cc4555820037 (diff) |
Merge pull request #7447 from aakropotkin/read-file-type
Read file type
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/eval-okay-readDir.exp | 2 | ||||
-rw-r--r-- | tests/lang/eval-okay-readFileType.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-readFileType.nix | 6 | ||||
l--------- | tests/lang/readDir/ldir | 1 | ||||
l--------- | tests/lang/readDir/linked | 1 |
5 files changed, 10 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-readDir.exp b/tests/lang/eval-okay-readDir.exp index bf8d2c14e..6413f6d4f 100644 --- a/tests/lang/eval-okay-readDir.exp +++ b/tests/lang/eval-okay-readDir.exp @@ -1 +1 @@ -{ bar = "regular"; foo = "directory"; } +{ bar = "regular"; foo = "directory"; ldir = "symlink"; linked = "symlink"; } diff --git a/tests/lang/eval-okay-readFileType.exp b/tests/lang/eval-okay-readFileType.exp new file mode 100644 index 000000000..6413f6d4f --- /dev/null +++ b/tests/lang/eval-okay-readFileType.exp @@ -0,0 +1 @@ +{ bar = "regular"; foo = "directory"; ldir = "symlink"; linked = "symlink"; } diff --git a/tests/lang/eval-okay-readFileType.nix b/tests/lang/eval-okay-readFileType.nix new file mode 100644 index 000000000..174fb6c3a --- /dev/null +++ b/tests/lang/eval-okay-readFileType.nix @@ -0,0 +1,6 @@ +{ + bar = builtins.readFileType ./readDir/bar; + foo = builtins.readFileType ./readDir/foo; + linked = builtins.readFileType ./readDir/linked; + ldir = builtins.readFileType ./readDir/ldir; +} diff --git a/tests/lang/readDir/ldir b/tests/lang/readDir/ldir new file mode 120000 index 000000000..191028156 --- /dev/null +++ b/tests/lang/readDir/ldir @@ -0,0 +1 @@ +foo
\ No newline at end of file diff --git a/tests/lang/readDir/linked b/tests/lang/readDir/linked new file mode 120000 index 000000000..c503f86a0 --- /dev/null +++ b/tests/lang/readDir/linked @@ -0,0 +1 @@ +foo/git-hates-directories
\ No newline at end of file |