diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2018-02-07T12·32+0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07T12·32+0100 |
commit | abe6be578b501e265a3c4a0c33995c4848f28f56 (patch) | |
tree | 7882f63a1dcfa25b6504fb229541b11b751c5709 /tests | |
parent | 6f6bfc820544c3fe9cc35ec67ed3f9d4c6a293a3 (diff) | |
parent | 69d82e5c58bf6d7e16fc296f598c352da2a618d0 (diff) |
Merge pull request #1816 from shlevy/add-path
Add path primop.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/data | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-path.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-path.nix | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/lang/data b/tests/lang/data new file mode 100644 index 000000000000..257cc5642cb1 --- /dev/null +++ b/tests/lang/data @@ -0,0 +1 @@ +foo diff --git a/tests/lang/eval-okay-path.exp b/tests/lang/eval-okay-path.exp new file mode 100644 index 000000000000..6827d49ffa11 --- /dev/null +++ b/tests/lang/eval-okay-path.exp @@ -0,0 +1 @@ +"/run/user/1000/nix-test/store/wjagrv37lfvfx92g2gf3yqflwypj0q1y-output" diff --git a/tests/lang/eval-okay-path.nix b/tests/lang/eval-okay-path.nix new file mode 100644 index 000000000000..e67168cf3edf --- /dev/null +++ b/tests/lang/eval-okay-path.nix @@ -0,0 +1,7 @@ +builtins.path + { path = ./.; + filter = path: _: baseNameOf path == "data"; + recursive = true; + sha256 = "1yhm3gwvg5a41yylymgblsclk95fs6jy72w0wv925mmidlhcq4sw"; + name = "output"; + } |