From c3a1e501bc7b3567e731612dc77a985b2f8e43d9 Mon Sep 17 00:00:00 2001 From: martinoluca Date: Thu, 11 Jun 2015 09:00:52 -0100 Subject: [PATCH] Fix tests script to add multiple targets --- scripts/test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index d4211f3e1..25e65e8bb 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -14,8 +14,6 @@ if [ "$1" == "--xml" ]; then XML="--xml test.xml" fi -platform=`uname` - TARGETS_TO_COMPILE=() TARGETS_TO_TEST=() if [ -e "$INFER_BIN/InferJava" ]; then @@ -23,8 +21,9 @@ if [ -e "$INFER_BIN/InferJava" ]; then TARGETS_TO_TEST+=('java') fi +platform=`uname` if [ -e "$INFER_BIN/InferClang" ]; then - TARGETS_TO_COMPILE=('clang') + TARGETS_TO_COMPILE+=('clang') TARGETS_TO_TEST+=('c' 'cpp') if [ $platform == 'Darwin' ]; then TARGETS_TO_TEST+=('objc')