Minor build system changes to make ABITest work correctly on Linux.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72405 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/ABITest/Makefile.test.common b/utils/ABITest/Makefile.test.common
index 0094a2c..3c208ad 100644
--- a/utils/ABITest/Makefile.test.common
+++ b/utils/ABITest/Makefile.test.common
@@ -36,7 +36,7 @@
 			ok=0;\
 		fi; \
 	done; \
-	if [ $$ok == 1 ]; then \
+	if [ $$ok -eq 1 ]; then \
 		true; \
 	else \
 		false; \
diff --git a/utils/ABITest/build.sh b/utils/ABITest/build.sh
index 1f50464..a50d14a 100755
--- a/utils/ABITest/build.sh
+++ b/utils/ABITest/build.sh
@@ -7,6 +7,6 @@
     exit 1
 fi
 
-CPUS=$(sysctl -n hw.ncpu)
+CPUS=2
 make -j $CPUS \
-  $(for i in $(zseq 0 $1); do echo test.$i.report; done) -k
+  $(for i in $(seq 0 $1); do echo test.$i.report; done) -k
diff --git a/utils/ABITest/layout/Makefile b/utils/ABITest/layout/Makefile
index fa76f18..0520625 100644
--- a/utils/ABITest/layout/Makefile
+++ b/utils/ABITest/layout/Makefile
@@ -12,7 +12,7 @@
 CFLAGS := -std=gnu99
 
 X_COMPILER := llvm-gcc
-Y_COMPILER := xcc -ccc-clang
+Y_COMPILER := clang
 CC := gcc
 
 ifeq (0, 0)
diff --git a/utils/ABITest/summarize.sh b/utils/ABITest/summarize.sh
index 6dba415..3efb52b 100755
--- a/utils/ABITest/summarize.sh
+++ b/utils/ABITest/summarize.sh
@@ -7,7 +7,7 @@
     exit 1
 fi
 
-for i in $(zseq 0 $1); do 
+for i in $(seq 0 $1); do 
     if (! make test.$i.report &> /dev/null); then 
         echo "FAIL: $i";
     fi;