mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
33 lines
412 B
Bash
Executable file
33 lines
412 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
git_sha=""
|
|
|
|
usage() {
|
|
echo "Run ASAN tests."
|
|
}
|
|
|
|
for i in "$@"
|
|
do
|
|
case "$i" in
|
|
--git-sha=*)
|
|
git_sha="${i#*=}"
|
|
;;
|
|
--help)
|
|
usage
|
|
exit
|
|
;;
|
|
*)
|
|
echo "unknown arg, $2"
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
echo "git-sha: $git_sha"
|
|
|
|
./run_asan_tests.sh setup
|
|
if [ -n "${git_sha}" ]
|
|
then
|
|
GIT_SHA="${git_sha}" ./run_asan_tests.sh recompile
|
|
fi
|
|
./run_asan_tests.sh run
|