Граф коммитов

86 Коммитов

Автор SHA1 Сообщение Дата
Matthias Braun c7b415f905 lit: Add module to produce and merge profile data for benchmarks compiled with -fprofile-instr-generate
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@260357 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-10 03:56:41 +00:00
Matthias Braun 791aef40a1 RunSafely: Base the XXX.command filename on OUTFILE not on the programname
Otherwise they will overwrite each other when we invoke the same
executable mutliple files. This was producing race conditions for a
device connected through NFS for me.

Note: This does not affect the Makefile based test-suite as it never
runs an executable more than once.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@259907 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-05 19:30:04 +00:00
Matthias Braun 17890090e8 RunSafely: Place .command file into directory of OUTFILE even if -d is specified
Note: This does not affect the Makefile based test-suite in any way as
the RunSafely -d option is only used by the
External/SPEC/**/CMakeLists.txt files.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@259906 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-05 19:30:02 +00:00
Matthias Braun b215f11137 RunSafely: Fix temporary .time.remote file not getting deleted
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@259752 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-04 05:14:32 +00:00
Matthias Braun b714ab108d RunSafely/lit: Allow separate stdout/stderr redirection.
This will be necessary for the upcoming SPEC support for cmake/lit which will
use the reference data coming with SPEC instead of the custom one in
the Externals directory.

This commit also reverses the setting for the RunSafely output format to
produce the traditional output format by default because that is still
used by most benchmarks. That way fewer lit.local.cfg files are
necessary.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@255874 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-17 04:33:50 +00:00
Matthias Braun 7432bd7ba3 RunSafely: Share remote and local timeit flag construction; NFC
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@255873 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-17 04:19:30 +00:00
Matthias Braun a8164c67ac Revert "(HEAD -> master, origin/master, origin/HEAD) EXPRIMENTAL: Support separate stdout/stderr redirect"
Revert accidental commit.

This reverts commit r255609.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@255610 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-15 02:51:57 +00:00
Matthias Braun 28e3f2db7a EXPRIMENTAL: Support separate stdout/stderr redirect
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@255609 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-15 02:51:19 +00:00
Matthias Braun 52637488cf RunSafely.sh: Allow the specification of a working directory
As discussed in D14678 I am going for post-commit review as cmake/lit
test-suite support is still in early development.

Differential Revision: http://reviews.llvm.org/D14680

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@254836 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 04:39:36 +00:00
Matthias Braun 620e52e674 RunSafely: Add option to omit exit status from output.
This is useful for external benchmark suites which bring reference files
for stdout without the llvm-test-suite convention of having an exit code
behind the stdout output.

As discussed in D14678 I am going for post-commit review as cmake/lit
test-suite support is still in early development.

Differential Revision: http://reviews.llvm.org/D14679

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@254835 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 04:36:12 +00:00
Matthias Braun 6741af332d RunSafely: Do not fail when running remotely and OUTFILE is an absolute path
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@254374 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-01 04:42:13 +00:00
Matthias Braun ef54f3a2c6 RunSafely: Do not fail remote runs if PROG is an absolute path
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@254373 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-01 04:42:09 +00:00
Matthias Braun 67dc1b33f0 RunSafely: If no -l flag is given do not pass in a default username
Simply leaving out -l let's ssh and rsh pick a sensible default user
(and allows to specify them in .ssh/config for example).

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@254131 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-26 03:42:38 +00:00
Daniel Dunbar dec7600678 RunSafely: If --show-errors is given, treat non-zero exit as failure.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@166955 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-29 18:25:07 +00:00
Daniel Dunbar afcd5e45bd test-suite: Simplify some unnecessary logic in RunSafely.
- We don't need to special case based on the system now that we always use timeit.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@166906 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-29 00:17:21 +00:00
Daniel Dunbar 8a8a55a480 test-suite: Eliminate the EXIT_OK RunSafely parameter.
- Exit codes already get compared for tests, and only a few tests actually
   bother to set this.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@166905 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-29 00:17:18 +00:00
Daniel Dunbar 93eb208c93 test-suite: Update TEST=simple to show compile errors in log.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@166845 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-27 00:28:04 +00:00
David Blaikie 94ae8bb33d Update usage comment to mention timeit parameter.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@154855 91177308-0d34-0410-b5e6-96231b3b80d8
2012-04-16 20:29:52 +00:00
Daniel Dunbar fc8c7862e8 [test-suite] Simplify RunSafely.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153144 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 22:17:52 +00:00
Daniel Dunbar fc5f2c0827 [test-suite] RunSafely: Fix test for '/' in path.
- I hate shell programming.


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153094 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 17:17:00 +00:00
Daniel Dunbar 6d22a12d9a [test-suite] RunSafely: Make sure to pass the absolute path to the input file
when running on remotely.


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153056 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-19 22:00:15 +00:00
Daniel Dunbar 26bd34b55d [test-suite] RunSafely: Adjust the limit for file sizes. The comment lied,
bash's ulimit -f is in multiples of 1024 so previous the limit was 10GB not
10MB. Turns out when I made it actually be 10MB, that is too small for two
current tests.
 - Set the limit to be 100MB instead.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153025 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-18 19:38:05 +00:00
Daniel Dunbar e9e32172c7 [test-suite] RunSafely: The -t argument is required now.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153023 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-18 19:37:58 +00:00
Daniel Dunbar a891d5f12c [test-suite] Update RunSafely to use the --limit arguments to timeit.
- Simplifies a bunch more goop, we now are down to basically executing only two
   main commands to run tests (the monitor process and the actual target process).
 - Also kill off the random core file handling stuff, this isn't particularly useful.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153022 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-18 19:12:04 +00:00
Daniel Dunbar a8cdf1d750 [test-suite] Update RunSafely to use the --redirect-{input,output} options for
timeit; this fixes a bogoism where we were timing the command-to-test + the
shell.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153018 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-18 19:11:54 +00:00
Daniel Dunbar d1c2305bb9 [test-suite] RunSafely: Switch to using timeit --summary option instead of awk
horribleness.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153004 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-17 23:28:28 +00:00
Daniel Dunbar abc6074c36 [test-suite] Change RunSafely to use the timeit --timeout option, instead of
TimedExec.sh.
 - Also eliminate NO_WATCHDOG option, and TimedExec.sh script itself.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@152995 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-17 17:59:53 +00:00
Daniel Dunbar f16e4dd57b [test-suite] Rename $ULIMIT to $TIMELIMIT for clarity.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@152994 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-17 17:59:50 +00:00
Andrew Trick a721283dac Add a *temporary* NO_WATCHDOG option to disable TimedExec.sh.
This is not the right fix. TimedExec.sh needs to be replaced by adding
a timeout option to the timeit tool. But, this has been sitting in my
copy of the test-suite for months and I would like to be able to tell
others to use the option. Disabling TimedExec.sh is the only way to get
meaningful run times for short benchmarks.


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@151237 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-23 05:03:03 +00:00
Daniel Dunbar 5d928707f5 RunSafely: Change to use 'sh -c' when running remotely (like we do on the
host). This is necessary if TIMEIT isn't a shell builtin.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@130140 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-25 20:05:02 +00:00
Daniel Dunbar 1b8560ce0f RunSafely: Add support for a -t argument to change the time command to use.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@125143 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-09 00:37:50 +00:00
Daniel Dunbar d3a54cd1be RunSafely: Bump memory limit slightly, Clang++ needs this to build tramp3d-v4 on my Ubuntu box.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@111462 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-18 23:43:56 +00:00
Daniel Dunbar 3a5bca6beb Teach RunSafely to rescape quotes in the command, so that they get passed through properly. This is important for arguments like -DFOO=\"BAR\", and fixes some problems with TEST=simple.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@105146 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-30 04:38:47 +00:00
Daniel Dunbar 1f02ee2f3b RunSafely: Only report user time, not user + sys.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@101768 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-19 04:01:03 +00:00
Daniel Dunbar 971ecbc5ac RunSafely: Add RUNSAFELY_UTIME_ONLY variable, which stops RunSafely from adding
in the system time to the values it reports.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@99672 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-26 23:42:12 +00:00
Rafael Espindola c33d6e6ed3 Make TimedExec.sh work on Linux.
Use TimedExec.sh in every system.


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@93613 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-16 01:27:36 +00:00
Jakob Stoklund Olesen 9eb7aaf5a1 Properly transfer the exit code when running tests remotely.
The $? exit code was getting expanded on the local host.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@93517 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-15 18:07:31 +00:00
Rafael Espindola e564c0af23 Add the -u (run under) option to RunSafely.sh
Update Makefile to pass RUNUNDER to RunSafely.sh


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@93407 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-14 02:10:24 +00:00
Daniel Dunbar 21118603ce 250 MB wasn't enough for me (or rather, it wasn't enough for
MultiSource/Benchmarks/NPB-serial/is).


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@63818 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-05 03:12:33 +00:00
Dan Gohman ef2c7152c4 Fix a bashism.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@59873 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-22 17:03:09 +00:00
Evan Cheng eb27491b22 Allow remote JIT testing.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@59215 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-13 03:24:49 +00:00
Dan Gohman 9be6224eb6 Treat exit statuses that indicate failure to execute the test program
and exit statuses that indicate that the test program was terminated
by a signal as failures.

Also, report failures by writing a string to the output file which
will trigger a diff when it is compared with output files from other
runs of the test.

And, having reported any detected errors in a way that will be
visible to the test system, always exit "successfully". RunSafely.sh's
own exit status is not used to determine if a test has passed or failed.


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@58154 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-25 21:45:37 +00:00
Evan Cheng 0f590c430b Fix ssh remote execution problems.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@56058 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-10 17:11:20 +00:00
Evan Cheng 350616d13d Allow use of ssh to perform remote execution.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@55980 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-09 06:12:33 +00:00
Nick Lewycky 90f7464bde Raise the virtual memory limit by 50MB to 250MB. This allows Obsequi to pass
on my Linux box. (225MB is not enough for JIT, 200MB fails both JIT and LLC).


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@53847 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-21 07:10:53 +00:00
Matthijs Kooijman d34df08cfe Run test-suite commands in (another) subshell. This ensures that the output of
the program and the time command is properly separated. This used to work only
on shells that have a builtin "time" command (such as bash). This change makes
things work consistently among different shells (tested on bash, dash and
FreeBSD sh) and should be POSIX compatible.

A similar change is probably needed for the remote execution part, but someone
who is using that should have a look at it.



git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@51369 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-21 10:47:32 +00:00
John Criswell 54ae5e41c4 Wrap text to 80 columns.
No functionality changes.


git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@50438 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-29 20:45:32 +00:00
Evan Cheng 6273a322cd My bad. Unbreak RunSafely.sh.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@47997 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-06 17:41:04 +00:00
Evan Cheng eb93a787d6 Re-apply fix for PR1437 that I accidentially removed.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@47983 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-06 02:11:43 +00:00
Lauro Ramos Venancio a1f4433efa Fix JIT tests.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@47885 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-04 14:38:01 +00:00