[llvm-commits] CVS: llvm/utils/NewNightlyTest.pl
Changes in directory llvm/utils: NewNightlyTest.pl updated: 1.48 -> 1.49 --- Log message: Changes for LLVM coding standard compliance: 1. Remove tabs 2. Wrap to 80 columns 3. Put spaces between "if" or "elsif" and expression 4. Put { on same line as if statement. 5. Make indentation be 2 spaces. Functionality change: Run utils/countloc.sh after the build is done. This is necessary because that script now uses llvm-config to find the top src directory. --- Diffs of the changes: (+491 -508) NewNightlyTest.pl | 999 ++ 1 files changed, 491 insertions(+), 508 deletions(-) Index: llvm/utils/NewNightlyTest.pl diff -u llvm/utils/NewNightlyTest.pl:1.48 llvm/utils/NewNightlyTest.pl:1.49 --- llvm/utils/NewNightlyTest.pl:1.48 Fri Aug 11 18:02:09 2006 +++ llvm/utils/NewNightlyTest.plSun Aug 13 04:53:02 2006 @@ -9,7 +9,7 @@ # Synopsis: Perform a series of tests which are designed to be run nightly. # This is used to keep track of the status of the LLVM tree, tracking # regressions and performance changes. Submits this information -# to llvm.org where it is placed into the nightlytestresults database. +# to llvm.org where it is placed into the nightlytestresults database. # # Modified heavily by Patrick Jenkins, July 2006 # @@ -88,16 +88,13 @@ # Getting environment variables # ## -my $HOME = $ENV{'HOME'}; +my $HOME = $ENV{'HOME'}; my $CVSRootDir = $ENV{'CVSROOT'}; - $CVSRootDir = "/home/vadve/shared/PublicCVS" -unless $CVSRootDir; +$CVSRootDir= "/home/vadve/shared/PublicCVS" unless $CVSRootDir; my $BuildDir = $ENV{'BUILDDIR'}; - $BuildDir = "$HOME/buildtest" -unless $BuildDir; +$BuildDir = "$HOME/buildtest" unless $BuildDir; my $WebDir = $ENV{'WEBDIR'}; - $WebDir = "$HOME/cvs/testresults-X86" -unless $WebDir; +$WebDir= "$HOME/cvs/testresults-X86" unless $WebDir; ## # @@ -123,114 +120,94 @@ $SUBMITSCRIPT = "/nightlytest/NightlyTestAccept.cgi"; while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { -shift; -last if /^--$/; # Stop processing arguments on -- + shift; + last if /^--$/; # Stop processing arguments on -- # List command line options here... -if (/^-nocheckout$/) { $NOCHECKOUT = 1; next; } -if (/^-nocvsstats$/) { $NOCVSSTATS = 1; next; } -if (/^-noremove$/) { $NOREMOVE = 1; next; } -if (/^-noremoveresults$/) { $NOREMOVERESULTS = 1; next; } -if (/^-notest$/) { $NOTEST = 1; $NORUNNINGTESTS = 1; next; } -if (/^-norunningtests$/) { $NORUNNINGTESTS = 1; next; } -if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j2 -l3.0"; next; } -if (/^-release$/){ $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1 ". - "OPTIMIZE_OPTION=-O2"; - $BUILDTYPE="release"; next; } -if (/^-enable-llcbeta$/) { $PROGTESTOPTS .= " ENABLE_LLCBETA=1"; next; } -if (/^-disable-llc$/){ $PROGTESTOPTS .= " DISABLE_LLC=1"; - $CONFIGUREARGS .= " --disable-llc_diffs"; next; } -if (/^-disable-jit$/){ $PROGTESTOPTS .= " DISABLE_JIT=1"; - $CONFIGUREARGS .= " --disable-jit"; next; } -if (/^-disable-cbe$/){ $PROGTESTOPTS .= " DISABLE_CBE=1"; next; } -if (/^-verbose$/){ $VERBOSE = 1; next; } -if (/^-debug$/) { $DEBUG = 1; next; } -if (/^-nice$/) { $NICE = "nice "; next; } -if (/^-f2c$/){ - $CONFIGUREARGS .= " --with-f2c=$ARGV[0]"; shift; next; -} -if (/^-with-externals$/) { - $CONFIGUREARGS .= " --with-externals=$ARGV[0]"; shift; next; -} -if (/^-submit-server/) { - $SUBMITSERVER = "$ARGV[0]"; shift; next; -} -if (/^-submit-script/) { - $SUBMITSCRIPT = "$ARGV[0]"; shift; next; -} -if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; } -if (/^-gccpath/) { $CONFIGUREARGS .= - " CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++"; - $GCCPATH=$ARGV[0]; - shift; - next;} -else{ $GCCPATH=""; } -if (/^-cvstag/) { $CVSCOOPT .= " -r $ARGV[0]"; shift; next; } -else{ $CVSCOOPT="";} -if (/^-target/) { - $CONFIGUREARGS .= " --target=$ARGV[0]"; shift; next; -} -if (/^-cflags/) { - $MAKEOPTS = "$MAKEOPTS C.Flags=\'$ARGV[0]\'"; shift; next; -} -if (/^-cxxflags/){ - $MAKEOPTS = "$MAKEOPTS CXX.Flags=\'$ARGV[0]\'"; shift; next; -} -
[llvm-commits] CVS: llvm/utils/llvmdo
Changes in directory llvm/utils: llvmdo updated: 1.16 -> 1.17 --- Log message: Add a -code-only option which restricts llvmdo to visiting just those files that are considered to be code. Documentation is excluded. --- Diffs of the changes: (+116 -80) llvmdo | 196 ++--- 1 files changed, 116 insertions(+), 80 deletions(-) Index: llvm/utils/llvmdo diff -u llvm/utils/llvmdo:1.16 llvm/utils/llvmdo:1.17 --- llvm/utils/llvmdo:1.16 Fri Aug 11 18:58:58 2006 +++ llvm/utils/llvmdo Sun Aug 13 13:28:27 2006 @@ -27,7 +27,7 @@ ##===--===## if test $# -lt 1 ; then - echo "Usage: llvmdo [-dirs "DIRNAMES..."] PROGRAM ARGS..." + echo "Usage: llvmdo [-dirs "DIRNAMES..."] [-code-only] PROGRAM ARGS..." exit 1 fi @@ -37,6 +37,14 @@ elif test -z "$LLVMDO_DIRS" ; then LLVMDO_DIRS="include lib tools utils runtime autoconf docs test examples projects" fi + +if test "$1" = "-code-only" ; then + CODE_ONLY="set" + shift +else + CODE_ONLY="" +fi + if test "$1" = "" ; then echo "Missing program name to run" exit 1 @@ -57,86 +65,114 @@ SunOS) find_prog=gfind ;; *) find_prog=find ;; esac + paths_to_ignore="\ +-path */CVS -o \ +-path */CVS/* -o \ +-path docs/doxygen/* -o \ +-path docs/CommandGuide/html/* -o \ +-path docs/CommandGuide/man/* -o \ +-path docs/CommandGuide/ps/* -o \ +-path docs/CommandGuide/man/* -o \ +-path docs/HistoricalNotes/* -o \ +-path docs/img/* -o \ +-path */.libs/* -o \ +-path lib/Support/bzip2/* -o \ +-path projects/llvm-test/* \ + " + files_to_match="\ + -name *.ac \ +-o -name *.b \ +-o -name *.c \ +-o -name *.cc \ +-o -name *.cfg \ +-o -name *.cpp \ +-o -name *.css \ +-o -name *.def \ +-o -name *.el \ +-o -name *.exp \ +-o -name *.gnuplot' \ +-o -name *.h \ +-o -name *.in \ +-o -name *.inc \ +-o -name *.l \ +-o -name *.ll \ +-o -name *.llx \ +-o -name *.lst \ +-o -name *.m4 \ +-o -name *.pl \ +-o -name *.py \ +-o -name *.sh \ +-o -name *.schema \ +-o -name *.st \ +-o -name *.tcl \ +-o -name *.td \ +-o -name *.tr \ +-o -name *.y \ +-o -name Make* \ +-o -name llvmdo \ +-o -name llvmgrep \ +-o -name check-each-file \ +-o -name codgen-diff \ +-o -name cvsupdate \ +-o -name llvm-native-gcc \ +-o -name llvm-native-gxx \ +-o -name makellvm \ +-o -path include/llvm/ADT/ilist \ +-o -path test/\*.ll \ +-o -path test/Scripts/not \ +-o -path runtime/\*.ll \ + " + if test -z "$CODE_ONLY" ; then +files_to_match="$files_to_match \ + -o -name *.footer \ + -o -name *.header \ + -o -name *.html \ + -o -name *.intro \ + -o -name *.pod \ + -o -name *.txt \ + -o -name *.TXT \ + -o -name *.vim \ + -o -name vimrc \ + -o -name README \ + -o -name COPYING.LIB \ + -o -name LICENSE* " + fi + files_to_ignore="\ + -name \.* \ +-o -name *~ \ +-o -name #* \ +-o -name *.cvs \ +-o -name configure \ +-o -name slow.ll \ +-o -name *libtool* \ +-o -name ltdl* \ +-o -name ltdl.m4 \ +-o -name ltmain.m4 \ +-o -name ltmain.sh \ +-o -name aclocal.m4 \ +-o -name acinclude.m4 \ +-o -name *VerifierIsReallySlow.llx \ +-o -name *LoopSimplifyCrash.ll \ +-o -name *AST-Remove.ll \ +-o -name llvmAsmParser.cpp \ +-o -name llvmAsmParser.h \ +-o -name Lexer.cpp \ +-o -name FileLexer.cpp \ +-o -name FileParser.cpp \ +-o -name FileParser.h \ +-o -name StackerParser.h \ +-o -name StackerParser.cpp \ +-o -name ConfigLexer.cpp \ +-o -name PPCPerfectShuffle.h \ + " + + # Turn off file name generation (globbing) so that substitution of the + # variables doesn't cause the shell to create lists of file names + set -f $find_prog $LLVMDO_DIRS -type f \ -\( \ - -path 'docs/doxygen/*' -o \ - -path 'docs/CommandGuide/html/*' -o \ - -path 'docs/CommandGuide/man/*' -o \ - -path 'docs/CommandGuide/ps/*' -o \ - -path 'docs/CommandGuide/man/*' -o \ - -path 'docs/HistoricalNotes/*' -o \ - -path 'docs/img/*' -o \ - -path '*/.libs/*' \ -\) -prune -o \( \ - \( \ - -name '*.ac' -o \ - -name '*.b' -o \ - -name '*.c' -o \ - -name '*.cc' -o \ - -name '*.cfg' -o \ - -name '*.cpp' -o \ - -name '*.css' -o \ - -name '*.def' -o \ - -name '*.el' -o \ - -name '*.exp' -o \ - -name '*.footer' -o \ - -name '*.gnuplot' -o \ - -name '*.h' -o \ - -name '*.header' -o \ - -name '*.html' -o \ - -name '*.in' -o \ - -name '*.inc' -o \ - -name '*.intro' -o \ - -name '*.l' -o \ - -name '*.ll' -o \ - -name '*.llx' -o \
[llvm-commits] CVS: llvm/utils/countloc.sh
Changes in directory llvm/utils: countloc.sh updated: 1.5 -> 1.6 --- Log message: Use the new -code-only option to llvmdo so that we only count things that are considered to be code. This will give a drop in the LOC count on the nightly testers, but it is more accurate than previous estimates. --- Diffs of the changes: (+1 -1) countloc.sh |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/utils/countloc.sh diff -u llvm/utils/countloc.sh:1.5 llvm/utils/countloc.sh:1.6 --- llvm/utils/countloc.sh:1.5 Fri Aug 11 16:55:31 2006 +++ llvm/utils/countloc.sh Sun Aug 13 13:29:21 2006 @@ -22,7 +22,7 @@ TOPDIR=`llvm-config --src-root` if test -d "$TOPDIR" ; then cd $TOPDIR - ./utils/llvmdo -dirs "include lib tools test utils examples" wc -l | awk '\ + ./utils/llvmdo -dirs "include lib tools test utils examples" -code-only wc -l | awk '\ BEGIN { loc=0; } \ { loc += $1; } \ END { print loc; }' ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/utils/llvmdo
Changes in directory llvm/utils: llvmdo updated: 1.17 -> 1.18 --- Log message: Count the documentation. Otherwise we take a 30,000 hit in the LOC on the nightly test graph. And, documentation is important. --- Diffs of the changes: (+5 -5) llvmdo | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) Index: llvm/utils/llvmdo diff -u llvm/utils/llvmdo:1.17 llvm/utils/llvmdo:1.18 --- llvm/utils/llvmdo:1.17 Sun Aug 13 13:28:27 2006 +++ llvm/utils/llvmdo Sun Aug 13 13:59:40 2006 @@ -90,15 +90,20 @@ -o -name *.def \ -o -name *.el \ -o -name *.exp \ +-o -name *.footer \ -o -name *.gnuplot' \ -o -name *.h \ +-o -name *.header \ +-o -name *.html \ -o -name *.in \ -o -name *.inc \ +-o -name *.intro \ -o -name *.l \ -o -name *.ll \ -o -name *.llx \ -o -name *.lst \ -o -name *.m4 \ +-o -name *.pod \ -o -name *.pl \ -o -name *.py \ -o -name *.sh \ @@ -124,11 +129,6 @@ " if test -z "$CODE_ONLY" ; then files_to_match="$files_to_match \ - -o -name *.footer \ - -o -name *.header \ - -o -name *.html \ - -o -name *.intro \ - -o -name *.pod \ -o -name *.txt \ -o -name *.TXT \ -o -name *.vim \ ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/utils/userloc.pl
Changes in directory llvm/utils: userloc.pl updated: 1.7 -> 1.8 --- Log message: 1. fix bug by ensuring we start at the llvm source root. 2. make use of the -code-only option on llvmdo 3. Add some debug print statements to find #1 --- Diffs of the changes: (+6 -1) userloc.pl |7 ++- 1 files changed, 6 insertions(+), 1 deletion(-) Index: llvm/utils/userloc.pl diff -u llvm/utils/userloc.pl:1.7 llvm/utils/userloc.pl:1.8 --- llvm/utils/userloc.pl:1.7 Fri Aug 11 18:50:27 2006 +++ llvm/utils/userloc.pl Sun Aug 13 14:03:06 2006 @@ -47,6 +47,7 @@ } chomp(my $srcroot = `llvm-config --src-root`); +chdir($srcroot); my $llvmdo = "$srcroot/utils/llvmdo"; my %Stats; my %FileStats; @@ -62,9 +63,10 @@ my $d = $_[0]; my $files =""; open FILELIST, -"$llvmdo -dirs \"$d\" echo |" || die "Can't get list of files with llvmdo"; +"$llvmdo -dirs \"$d\" -code-only echo |" || die "Can't get list of files with llvmdo"; while ( defined($line = ) ) { chomp($file = $line); +print "File: $file\n" if ($debug); $files = "$files $file"; } return $files; @@ -85,6 +87,7 @@ if ($line =~ '^Annotations for.*') { $curfile = $line; $curfile =~ s#^Annotations for ([[:print:]]*)#$1#; + print "Scanning: $curfile\n" if ($debug); } elsif ($line =~ /^[0-9.]*[ \t]*\([^)]*\):/) { $uname = $line; $uname =~ s#^[0-9.]*[ \t]*\(([a-zA-Z0-9_.-]*) [^)]*\):.*#$1#; @@ -108,6 +111,7 @@ foreach $user (keys %Stats) { $total += $Stats{$user}; } if ($html) { +print "Total Source Lines: $total\n"; print ""; print " LOC\n"; print " \%LOC\n"; @@ -192,6 +196,7 @@ } for $Index ( 0 .. $#DIRS) { + print "Scanning Dir: $DIRS[$Index]\n" if ($debug); ScanDir($DIRS[$Index]); } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/CREDITS.TXT
Changes in directory llvm: CREDITS.TXT updated: 1.62 -> 1.63 --- Log message: Add llvm2cpp. --- Diffs of the changes: (+4 -3) CREDITS.TXT |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) Index: llvm/CREDITS.TXT diff -u llvm/CREDITS.TXT:1.62 llvm/CREDITS.TXT:1.63 --- llvm/CREDITS.TXT:1.62 Tue Aug 8 23:18:09 2006 +++ llvm/CREDITS.TXTSun Aug 13 14:04:57 2006 @@ -163,9 +163,10 @@ N: Reid Spencer E: [EMAIL PROTECTED] W: http://reidspencer.com/ -D: Stacker, llvmc, llvm-ld, llvm-ar, lib/Archive, lib/Linker, lib/System, -D: bytecode enhancements, symtab hacking, unoverloading of intrinsics, makefile -D: and configuration system, documentation, various bug fixing. +D: Stacker, llvmc, llvm-ld, llvm-ar, llvm2cpp, lib/Archive, lib/Linker, +D: lib/System, bytecode enhancements, symtab hacking, unoverloading of +D: intrinsics, makefile and configuration system, documentation, various bug +D: fixing. N: Adam Treat E: [EMAIL PROTECTED] ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.cgi
Changes in directory nightlytest-serverside: NightlyTestAccept.cgi updated: 1.44 -> 1.45 --- Log message: When a test program changes status from pass to fail or vice versa it will no longer incorreclty be adeded to the list of new tests and removed tests --- Diffs of the changes: (+19 -5) NightlyTestAccept.cgi | 24 +++- 1 files changed, 19 insertions(+), 5 deletions(-) Index: nightlytest-serverside/NightlyTestAccept.cgi diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.44 nightlytest-serverside/NightlyTestAccept.cgi:1.45 --- nightlytest-serverside/NightlyTestAccept.cgi:1.44 Fri Aug 11 12:13:35 2006 +++ nightlytest-serverside/NightlyTestAccept.cgiMon Aug 14 01:56:59 2006 @@ -597,20 +597,34 @@ $yesterdays_fails = $row->{'unexpfail_tests'}; $yesterdays_xfails = $row->{'expfail_tests'}; if($yesterdays_passes ne ""){ - $newly_passing_tests = Difference $passing_tests, $yesterdays_passes; + $newly_passing_tests = Difference $passing_tests, $yesterdays_passes; } else{ $newly_passing_tests=""; } if($yesterdays_xfails ne "" and $yesterdays_fails ne ""){ - $newly_failing_tests = Difference $expfail_tests."\n".$unexpfail_tests, - $yesterdays_xfails."\n".$yesterdays_fails; + $newly_failing_tests = Difference $expfail_tests."\n".$unexpfail_tests, +$yesterdays_xfails."\n".$yesterdays_fails; } else{ $newly_failing_tests=""; } +# The tests are stored in the database as a string with each test being +# seperated by a newline. Each test is prefixed with either "PASS", +# "FAIL", and "XFAIL". If a test changes from pass to fail, this will +# cause us to think its a new test because its entry no longer matches +# the corresponding entry from the previous day. Therefore, we create a +# different list that does not contain these words. +$temp_test_list_today = $all_tests; +$temp_test_list_today =~ s/PASS//g; +$temp_test_list_today =~ s/FAIL//g; +$temp_test_list_today =~ s/XFAIL//g; +$temp_test_list_yesterday = $yesterdays_tests; +$temp_test_list_yesterday = s/PASS//g; +$temp_test_list_yesterday = s/FAIL//g; +$temp_test_list_yesterday = s/XFAIL//g; if($yesterdays_tests ne ""){ - $new_tests = Difference $all_tests, $yesterdays_tests; + $new_tests = Difference $temp_test_list_today, $temp_test_list_yesterday; } else{ $new_tests=""; } if($all_tests ne ""){ - $removed_tests = Difference $yesterdays_tests, $all_tests; + $removed_tests = Difference $temp_test_list_yesterday, $temp_test_list_today; } else{ $removed_tests=""; } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits