-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
58 additions
and
171 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
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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
set -o pipefail | ||
|
||
set -x | ||
|
||
echo "Running for OS: ${OSTYPE}" | ||
|
||
case "$OSTYPE" in | ||
darwin*) OS="darwin"; EXT="" ;; | ||
linux*) OS="linux"; EXT="" ;; | ||
msys*) OS="windows"; EXT=".exe" ;; | ||
*) exit 2 ;; | ||
esac | ||
|
||
(cd benchmark && cargo build --bins) | ||
|
||
WORKER_PORT=50056 | ||
|
||
# run the worker. | ||
./target/debug/worker --driver_port="${WORKER_PORT}" & | ||
WORKER_PID=$! | ||
echo ":; started worker on port ${WORKER_PORT}." | ||
|
||
# trap exits to make sure we kill the worker process when the script exits, | ||
# regardless of why (errors, SIGTERM, etc). | ||
trap 'echo ":; killing worker"; kill ${WORKER_PID};' EXIT | ||
|
||
sleep 1 | ||
|
||
# run the tester. | ||
echo ":; starting tester." | ||
./target/debug/tester --worker_port="${WORKER_PORT}" |