llvm.org GIT mirror llvm / b3dab90
Greatly expand documentation comment at head of file... I had to try to understand it; maybe this will help someone else do so too. Default CVSRootDir to $CVSROOT first, then the path in ~vadve only if $CVSROOT was not set. Checkout with -z3 if we might be checking out over ssh/rsh. Check the filename of gnuplot to see if it is executable; if not, as a last resort, try just plain "gnuplot", hoping it is in the path somewhere. Remove a little extra whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9046 91177308-0d34-0410-b5e6-96231b3b80d8 Brian Gaeke 17 years ago
1 changed file(s) with 33 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
66 # regressions and performance changes. This generates one web page a
77 # day which can be used to access this information.
88 #
9 # Syntax: NightlyTest.pl
9 # Syntax: NightlyTest.pl [OPTIONS] [CVSROOT BUILDDIR WEBDIR]
10 # where
11 # OPTIONS may include one or more of the following:
12 # -nocheckout Do not create, checkout, update, or configure
13 # the source tree.
14 # -noremove Do not remove the BUILDDIR after it has been built.
15 # -notest Do not even attempt to run the test programs. Implies
16 # -norunningtests.
17 # -norunningtests Do not run the Olden benchmark suite with
18 # LARGE_PROBLEM_SIZE enabled.
19 # -parallel Run two parallel jobs with GNU Make.
20 # CVSROOT is the CVS repository from which the tree will be checked out,
21 # specified either in the full :method:user@host:/dir syntax, or
22 # just /dir if using a local repo.
23 # BUILDDIR is the directory where sources for this test run will be checked out
24 # AND objects for this test run will be built. This directory MUST NOT
25 # exist before the script is run; it will be created by the cvs checkout
26 # process and erased (unless -noremove is specified; see above.)
27 # WEBDIR is the directory into which the test results web page will be written,
28 # AND in which the "index.html" is assumed to be a symlink to the most recent
29 # copy of the results. This directory MUST exist before the script is run.
1030 #
1131 use POSIX qw(strftime);
1232
13 my $HOME = $ENV{HOME};
14 my $CVSRootDir = "/home/vadve/vadve/Research/DynOpt/CVSRepository";
33 my $HOME = $ENV{'HOME'};
34 my $CVSRootDir = $ENV{'CVSROOT'};
35 my $CVSRootDir = "/home/vadve/vadve/Research/DynOpt/CVSRepository"
36 unless $CVSRootDir;
1537 my $BuildDir = "$HOME/buildtest";
1638 my $WebDir = "$HOME/cvs/testresults-X86";
1739
95117 my $NORUNNINGTESTS = 0;
96118 my $MAKEOPTS = "";
97119
120
98121 # Parse arguments...
99122 while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
100123 shift;
141164 #
142165 # Check out the llvm tree, saving CVS messages to the cvs log...
143166 #
144 system "(time -p cvs -d $CVSRootDir co llvm) > $Prefix-CVS-Log.txt 2>&1"
167 $CVSOPT = "";
168 $CVSOPT = "-z3" if $CVSRootDir =~ /^:ext:/; # Use compression if going over ssh.
169 system "(time -p cvs $CVSOPT -d $CVSRootDir co llvm) > $Prefix-CVS-Log.txt 2>&1"
145170 if (!$NOCHECKOUT);
146171
147172 chdir "llvm" or die "Could not change into llvm directory!";
454479 #
455480 # Rebuild the graphs now...
456481 #
457 system "/usr/dcs/software/supported/bin/gnuplot " .
458 "$BuildDir/llvm/utils/NightlyTest.gnuplot";
482 $GNUPLOT = "/usr/dcs/software/supported/bin/gnuplot";
483 $GNUPLOT = "gnuplot" if ! -x $GNUPLOT;
484 $PlotScriptFilename = "$BuildDir/llvm/utils/NightlyTest.gnuplot";
485 system ($GNUPLOT, $PlotScriptFilename);
459486
460487 #
461488 # Remove the cvs tree...
462489 #
463490 system "rm -rf $BuildDir" if (!$NOCHECKOUT and !$NOREMOVE);
464
465
466491
467492 #
468493 # Print out information...
476501 print "Libraries/Executables/Objects built: $NumLibraries/$NumExecutables/$NumObjects\n";
477502
478503 print "WARNINGS:\n $WarningsList\n";
479
480504
481505 print "Users committed: $UserCommitList\n";
482506 print "Added Files: \n $AddedFilesList\n";