-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Create missing tmp dirs for test artifacts and cleanup before/af…
…ter (#301) fix: Only run cache tests once This fix ensures the test script only runs the cache tests once, as intended. Prior, the cache test binary would get picked up by the `find` in test.sh and execute. Because we don't explicitly run `make clean` here, subsequent test runs always fail.
- Loading branch information
1 parent
2c8ea52
commit 0aadc1d
Showing
9 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
#!/bin/sh | ||
|
||
mkdir -p tmp/bin | ||
trap 'rm -rf tmp' EXIT | ||
|
||
clib install -c -N stephenmathieson/[email protected] -P tmp > /dev/null || { | ||
echo >&2 "Failed to install stephenmathieson/tabs-to-spaces" | ||
exit 1 | ||
} | ||
|
||
command -v tmp/bin/t2s >/dev/null 2>&1 || { | ||
echo >&2 "Failed to put t2s on path" | ||
exit 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/sh | ||
mkdir -p tmp/test-save | ||
mkdir -p tmp/test-save/bin | ||
RUNDIR="$PWD" | ||
trap 'rm -rf "$RUNDIR/tmp"' EXIT | ||
|
||
cp test/data/test-save-package.json tmp/test-save/package.json | ||
|
||
cd tmp/test-save || exit | ||
../../clib-install -c --no-save stephenmathieson/[email protected] >/dev/null | ||
../../clib-install -c --no-save stephenmathieson/[email protected] -P . >/dev/null | ||
../../clib-install -c -N darthtrevino/[email protected] >/dev/null | ||
../../clib-install -c --dev --no-save jwerle/[email protected] >/dev/null | ||
../../clib-install -c -d --no-save clibs/[email protected] >/dev/null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/sh | ||
mkdir -p tmp/test-save | ||
mkdir -p tmp/test-save/bin | ||
RUNDIR="$PWD" | ||
trap 'rm -rf "$RUNDIR/tmp"' EXIT | ||
|
||
cp test/data/test-save-package.json tmp/test-save/package.json | ||
|
||
cd tmp/test-save || exit | ||
../../clib-install -c stephenmathieson/[email protected] >/dev/null | ||
../../clib-install -c stephenmathieson/[email protected] -P . >/dev/null | ||
../../clib-install -c darthtrevino/[email protected] >/dev/null | ||
../../clib-install -c --dev jwerle/[email protected] >/dev/null | ||
../../clib-install -c -D clibs/[email protected] >/dev/null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p tmp/bin | ||
trap 'rm -rf tmp' EXIT | ||
|
||
clib install -c -N stephenmathieson/[email protected] -P tmp > /dev/null || { | ||
echo >&2 "Failed to install stephenmathieson/tabs-to-spaces" | ||
|