-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1024 from ipfs/run_tests_with_race_flag2
Run tests with race flag using checkflags script
- Loading branch information
Showing
4 changed files
with
57 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
bin/ipfs | ||
bin/random | ||
IPFS-BUILD-OPTIONS |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
# Author: Christian Couder <chriscool@tuxfamily.org> | ||
# MIT LICENSED | ||
|
||
if test "$#" -lt 3 | ||
then | ||
echo >&2 "usage $0 FILE VALUES MSG..." | ||
exit 1 | ||
fi | ||
|
||
FLAG_FILE="$1" | ||
FLAG_VALS="$2" | ||
shift | ||
shift | ||
FLAG_MSGS="$@" | ||
|
||
# Use x in front of tested values as flags could be | ||
# interpreted by "test" to be for itself. | ||
if test x"$FLAG_VALS" != x"$(cat "$FLAG_FILE" 2>/dev/null)" | ||
then | ||
echo "$FLAG_MSGS" | ||
echo "$FLAG_VALS" >"$FLAG_FILE" | ||
fi |
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