[test-suite] r187691 - Allow for test suite to be run under Qemu and other host emulators.

Reed Kotler rkotler at mips.com
Fri Aug 2 16:58:19 PDT 2013


Author: rkotler
Date: Fri Aug  2 18:58:19 2013
New Revision: 187691

URL: http://llvm.org/viewvc/llvm-project?rev=187691&view=rev
Log:
Allow for test suite to be run under Qemu and other host emulators.

Patch by Doug Gilmore of Imagination technologies.


Modified:
    test-suite/trunk/Makefile.programs

Modified: test-suite/trunk/Makefile.programs
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.programs?rev=187691&r1=187690&r2=187691&view=diff
==============================================================================
--- test-suite/trunk/Makefile.programs (original)
+++ test-suite/trunk/Makefile.programs Fri Aug  2 18:58:19 2013
@@ -121,7 +121,13 @@ RUNSAFELY := $(RUNSAFELY) -u 'env $(EXEC
 endif
 endif
 
+# USER_MODE_EMULATION should be defined if tests are being run via user-mode
+# emulation (eq QEMU) and thus the host version of timeit should be used.
+ifdef USER_MODE_EMULATION
+RUNSAFELY := $(RUNSAFELY) -t "$(TIMEIT)"
+else
 RUNSAFELY := $(RUNSAFELY) -t "$(TIMEIT_TARGET)"
+endif
 RUNSAFELYLOCAL := $(RUNSAFELYLOCAL) --show-errors -t "$(TIMEIT)"
 
 ifdef NO_WATCHDOG





More information about the llvm-commits mailing list