X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/75e95e09d162331bfa20e8eeca5c5695d295d6c2..0afcdb2a33c630ba4b2f882c4fad670e06ee3d98:/tests/symlink.sh?ds=inline diff --git a/tests/symlink.sh b/tests/symlink.sh new file mode 100755 index 0000000..7f4c354 --- /dev/null +++ b/tests/symlink.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +. ./tests/lib/test-setup.sh + +foo_setup + +cat >> "$conf" <'\'' --install --from-expression '\''f: f \{ name = "link"; channelName = "bar"; src = builtins.storePath "'"$NIX_STORE_DIR"'/.{32}-link.tar.gz"; \}'\'' '\''f: f \{ name = "(repo-[0-9]{10}-[0-9a-f]{11})"; channelName = "foo"; src = builtins.storePath "'"$NIX_STORE_DIR"'/.{32}-\1.tar.xz"; \}'\''$' + +if echo "$actual_env_command" | egrep "$expected_env_command_RE" > /dev/null;then + echo PASS +else + echo "Output: $actual_env_command" + echo "does not match RE: $expected_env_command_RE" + exit 1 +fi