diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/build-sample.sh | 4 | ||||
-rwxr-xr-x | tests/integration.sh | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/build-sample.sh b/tests/build-sample.sh index e7057e0..bc544b8 100755 --- a/tests/build-sample.sh +++ b/tests/build-sample.sh @@ -1,9 +1,9 @@ #!/bin/sh set -eu -./src/gistatic -i -o tmp/ tests/resources/repositories/* +./gistatic -i -o tmp/ tests/resources/repositories/* for r in tests/resources/repositories/* $PWD; do NAME="$(basename "$r")" mkdir -p "tmp/$NAME" - ./src/gistatic -u "https://example.com/$NAME" -o "tmp/$NAME" "$r" + ./gistatic -u "https://example.com/$NAME" -o "tmp/$NAME" "$r" done diff --git a/tests/integration.sh b/tests/integration.sh index 58dde94..8fa13e9 100755 --- a/tests/integration.sh +++ b/tests/integration.sh @@ -20,8 +20,7 @@ test_index_generation() { OUT="$(mkstemp)" ERR="$(mkstemp)" DIR="$(mkdtemp)" - ./src/gistatic -i -o "$DIR" tests/resources/repositories/* \ - 1>"$OUT" 2>"$ERR" + ./gistatic -i -o "$DIR" tests/resources/repositories/* 1>"$OUT" 2>"$ERR" STATUS=$? assert_empty_stdout assert_empty_stderr @@ -40,7 +39,7 @@ test_repo_generation() { OUT="$(mkstemp)" ERR="$(mkstemp)" DIR="$(mkdtemp)" - ./src/gistatic -o "$DIR" -u https://example.com/ \ + ./gistatic -o "$DIR" -u https://example.com/ \ tests/resources/repositories/repo-1 1>"$OUT" 2>"$ERR" STATUS=$? assert_empty_stdout |