Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
clj-util-message-server/bin/test
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
23 lines (19 sloc)
502 Bytes
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
#!/usr/bin/env bash | |
numArgs=$# | |
if [[ $numArgs -gt 0 ]]; then | |
test_name=$1 | |
shift | |
case "$test_name" in | |
server) | |
exec lein with-profiles production,shhdocker trampoline run -m clojure.main script/test.clj | |
;; | |
dispatcher) | |
exec lein with-profiles production,shhdocker,test trampoline run -m clojure.main script/test_dispatcher.clj | |
;; | |
*) | |
echo "Test '$test_name' not found" | |
exit 1 | |
esac | |
else | |
echo "Please supply the name of the test you would like to run. e.g. server,dispatcher" | |
fi | |