[cfe-commits] r66196 - /cfe/tags/Apple/clang/Makefile
Mike Stump
mrs at apple.com
Thu Mar 5 12:50:26 PST 2009
Author: mrs
Date: Thu Mar 5 14:50:23 2009
New Revision: 66196
URL: http://llvm.org/viewvc/llvm-project?rev=66196&view=rev
Log:
Add testing support
Modified:
cfe/tags/Apple/clang/Makefile
Modified: cfe/tags/Apple/clang/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/tags/Apple/clang/Makefile?rev=66196&r1=66195&r2=66196&view=diff
==============================================================================
--- cfe/tags/Apple/clang/Makefile (original)
+++ cfe/tags/Apple/clang/Makefile Thu Mar 5 14:50:23 2009
@@ -84,3 +84,27 @@
else \
echo Usage: make VERSION=25 retag-clang; \
fi
+
+build-and-test: fast-build
+
+fast-build:
+ svn up .
+ cd .. && BUILDIT_DIR=`pwd`/build really /usr/local/bin/buildit -arch i386 -arch x86_64 -noinstallsrc -noinstallhdrs -nosum -noverify `pwd`/clang -noclean
+
+check: llvm-binaries-i386 llvm-binaries-x86_64 check-i386 check-x86_64 unittests-i386 unittests-x86_64 clang-i386 clang-x86_64
+llvm-binaries-i386:
+ cd ../build/clang.roots/clang~obj/i386 && really make DESTDIR=`pwd`/../../../llvm-i386 install
+llvm-binaries-x86_64:
+ cd ../build/clang.roots/clang~obj/x86_64 && really make DESTDIR=`pwd`/../../../llvm-x86_64 install
+check-i386: llvm-binaries-i386
+ cd ../build/clang.roots/clang~obj/i386 && PATH=`pwd`/../../../llvm-i386/Developer/usr/bin:$(PATH) really make check && echo PASS: check-i386
+check-x86_64: llvm-binaries-x86_64
+ cd ../build/clang.roots/clang~obj/x86_64 && PATH=`pwd`/../../../llvm-x86_64/Developer/usr/bin:$(PATH) really make check && echo PASS: check-x86_64
+unittests-i386:
+ cd ../build/clang.roots/clang~obj/i386 && really make unittests && echo PASS: unittests-i386
+unittests-x86_64:
+ cd ../build/clang.roots/clang~obj/x86_64 && really make unittests && echo PASS: unittests-x86_64
+clang-i386:
+ cd ../build/clang.roots/clang~obj/i386/tools/clang && { really make test && echo PASS: clang-i386 || make report; }
+clang-x86_64:
+ cd ../build/clang.roots/clang~obj/x86_64/tools/clang && { really make test && echo PASS: clang-x86_64 || make report; }
More information about the cfe-commits
mailing list