Fix tests script to add multiple targets

master
martinoluca 10 years ago
parent 0fc2f28cba
commit c3a1e501bc

@ -14,8 +14,6 @@ if [ "$1" == "--xml" ]; then
XML="--xml test.xml" XML="--xml test.xml"
fi fi
platform=`uname`
TARGETS_TO_COMPILE=() TARGETS_TO_COMPILE=()
TARGETS_TO_TEST=() TARGETS_TO_TEST=()
if [ -e "$INFER_BIN/InferJava" ]; then if [ -e "$INFER_BIN/InferJava" ]; then
@ -23,8 +21,9 @@ if [ -e "$INFER_BIN/InferJava" ]; then
TARGETS_TO_TEST+=('java') TARGETS_TO_TEST+=('java')
fi fi
platform=`uname`
if [ -e "$INFER_BIN/InferClang" ]; then if [ -e "$INFER_BIN/InferClang" ]; then
TARGETS_TO_COMPILE=('clang') TARGETS_TO_COMPILE+=('clang')
TARGETS_TO_TEST+=('c' 'cpp') TARGETS_TO_TEST+=('c' 'cpp')
if [ $platform == 'Darwin' ]; then if [ $platform == 'Darwin' ]; then
TARGETS_TO_TEST+=('objc') TARGETS_TO_TEST+=('objc')

Loading…
Cancel
Save