Skip to content

Commit

Permalink
Partially revert commit 127155: I think it is much more convenient
Browse files Browse the repository at this point in the history
to have structured log files rather than one big file produced by
piping output.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128378 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
CunningBaldrick committed Mar 27, 2011
1 parent 98cd750 commit f0bf9df
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions utils/release/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ fi
llvmCore_srcdir=$BuildDir/llvmCore-$Release-rc$RC.src
llvmgcc42_srcdir=$BuildDir/llvmgcc42-$Release-rc$RC.src

# Location of log files.
LogDirName="$Release-rc$RC.logs"
LogDir=$BuildDir/$LogDirName
mkdir -p $LogDir

# SVN URLs for the sources.
Base_url="http://llvm.org/svn/llvm-project"
llvmCore_RC_url="$Base_url/llvm/tags/RELEASE_$Release_no_dot/rc$RC"
Expand Down Expand Up @@ -196,7 +201,8 @@ function configure_llvmCore() {
$llvmCore_srcdir/configure --prefix=$InstallDir \
--enable-optimized=$Optimized \
--enable-assertions=$Assertions \
--with-llvmgccdir=$llvmgccDir
--with-llvmgccdir=$llvmgccDir \
> $LogDir/llvm.configure.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1
cd -
}

Expand All @@ -217,11 +223,13 @@ function build_llvmCore() {
cd $ObjDir
echo "# Compiling llvm $Release-rc$RC $Flavor"
echo "# make -j $NumJobs VERBOSE=1 $ExtraOpts"
make -j $NumJobs VERBOSE=1 $ExtraOpts $CompilerFlags
make -j $NumJobs VERBOSE=1 $ExtraOpts $CompilerFlags \
> $LogDir/llvm.make.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1

echo "# Installing llvm $Release-rc$RC $Flavor"
echo "# make install"
make install
make install \
> $LogDir/llvm.install.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1
cd -
}

Expand All @@ -231,9 +239,12 @@ function test_llvmCore() {
ObjDir="$3"

cd $ObjDir
make check
make -C tools/clang test
make unittests
make check \
> $LogDir/llvm.check.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1
make -C tools/clang test \
> $LogDir/clang.check.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1
make unittests \
> $LogDir/llvm.unittests.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1
cd -
}

Expand Down Expand Up @@ -262,7 +273,8 @@ function configure_llvm_gcc() {
--enable-languages=$languages"
$llvmgcc42_srcdir/configure --prefix=$InstallDir \
--program-prefix=llvm- --enable-llvm=$llvmObjDir \
--enable-languages=$languages
--enable-languages=$languages \
> $LogDir/llvm-gcc.configure.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1
cd -
}

Expand All @@ -280,18 +292,21 @@ function build_llvm_gcc() {
cd $ObjDir
echo "# Compiling llvm-gcc $Release-rc$RC $Flavor"
echo "# make -j $NumJobs bootstrap LLVM_VERSION_INFO=$Release"
make -j $NumJobs bootstrap LLVM_VERSION_INFO=$Release $CompilerFlags
make -j $NumJobs bootstrap LLVM_VERSION_INFO=$Release $CompilerFlags \
> $LogDir/llvm-gcc.make.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1

echo "# Installing llvm-gcc $Release-rc$RC $Flavor"
echo "# make install"
make install
make install \
> $LogDir/llvm-gcc.install.$Release-rc$RC-Phase$Phase-$Flavor.log 2>&1
cd -
}

if [ "$do_checkout" = "yes" ]; then
export_sources
fi

(
Flavors="Debug Release Release+Asserts"
if [ "$do_64bit" = "yes" ]; then
Flavors="$Flavors Release-64"
Expand Down Expand Up @@ -375,7 +390,9 @@ for Flavor in $Flavors ; do
echo "# Testing - built with llvmgcc42"
test_llvmCore 2 $Flavor $llvmCore_phase2_objdir
done
) 2>&1 | tee $LogDir/testing.$Release-rc$RC.log

# Woo hoo!
echo "### Testing Finished ###"
echo "### Logs: $LogDir"
exit 0

0 comments on commit f0bf9df

Please sign in to comment.