X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/17906b2786e4c5e57a66874fd78c9cf70e074677..eb0c6f1b9ad97954d3ee229428ac84d8f33be546:/tests/alias.sh?ds=sidebyside diff --git a/tests/alias.sh b/tests/alias.sh index 5bc611b..368fc1e 100755 --- a/tests/alias.sh +++ b/tests/alias.sh @@ -1,21 +1,10 @@ #!/bin/sh -repo_dir="`mktemp -d`" -repo="$repo_dir/repo" -git init "$repo" -( - cd "$repo" - echo Contents > test-file - git add test-file - git commit -m 'Commit message' -) +. ./tests/lib/test-setup.sh -conf="`mktemp`" -cat > "$conf" <> "$conf" <'\'' --install --from-expression '\''f: f \{ name = "(repo-[0-9]{10}-[0-9a-f]{11})"; channelName = "bar"; src = builtins.storePath "/nix/store/.{32}-\1.tar.xz"; \}'\'' '\''f: f \{ name = "\1"; channelName = "foo"; src = builtins.storePath "/nix/store/.{32}-\1.tar.xz"; \}'\''$' if echo "$actual_env_command" | egrep "$expected_env_command_RE" > /dev/null;then