Add libcxx and clang-tools-extra to the testing thing.
[oota-llvm.git] / utils / release / test-release.sh
index 7aafc6d680fd243ed31eb3e3523f10da5dad5e37..104945b0eb1907840544884e796974834b2e812a 100755 (executable)
@@ -18,7 +18,7 @@ else
     MAKE=make
 fi
 
-projects="llvm cfe dragonegg test-suite"
+projects="llvm cfe dragonegg compiler-rt libcxx test-suite clang-tools-extra"
 
 # Base SVN URL for the sources.
 Base_url="http://llvm.org/svn/llvm-project"
@@ -193,7 +193,7 @@ function check_valid_urls() {
     done
 }
 
-# Export sources to the the build directory.
+# Export sources to the build directory.
 function export_sources() {
     check_valid_urls
 
@@ -210,9 +210,19 @@ function export_sources() {
     if [ ! -h clang ]; then
         ln -s ../../cfe.src clang
     fi
+    cd $BuildDir/llvm.src/tools/clang/tools
+    if [ ! -h clang-tools-extra ]; then
+        ln -s ../../../../clang-tools-extra.src extra
+    fi
     cd $BuildDir/llvm.src/projects
-    if [ ! -h llvm-test ]; then
-        ln -s ../../test-suite.src llvm-test
+    if [ ! -h test-suite ]; then
+        ln -s ../../test-suite.src test-suite
+    fi
+    if [ ! -h compiler-rt ]; then
+        ln -s ../../compiler-rt.src compiler-rt
+    fi
+    if [ ! -h libcxx ]; then
+        ln -s ../../libcxx.src libcxx
     fi
     cd $BuildDir
 }
@@ -437,16 +447,14 @@ for Flavor in $Flavors ; do
         # Compare .o files between Phase2 and Phase3 and report which ones
         # differ.
         if [ "$do_compare" = "yes" ]; then
-            if [ "$Flavor" = "Release" -o "$Flavor" = "Release-64" ]; then
-                echo
-                echo "# Comparing Phase 2 and Phase 3 files"
-                for o in `find $llvmCore_phase2_objdir -name '*.o'` ; do
-                    p3=`echo $o | sed -e 's,Phase2,Phase3,'`
-                    if ! cmp --ignore-initial=16 $o $p3 > /dev/null 2>&1 ; then
-                        echo "file `basename $o` differs between phase 2 and phase 3"
-                    fi
-                done
-            fi
+            echo
+            echo "# Comparing Phase 2 and Phase 3 files"
+            for o in `find $llvmCore_phase2_objdir -name '*.o'` ; do
+                p3=`echo $o | sed -e 's,Phase2,Phase3,'`
+                if ! cmp --ignore-initial=16 $o $p3 > /dev/null 2>&1 ; then
+                    echo "file `basename $o` differs between phase 2 and phase 3"
+                fi
+            done
         fi
     fi