[test-suite] r268584 - lit: Use a custom error code in case the executable is missing
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed May 4 17:56:08 PDT 2016
Author: matze
Date: Wed May 4 19:56:08 2016
New Revision: 268584
URL: http://llvm.org/viewvc/llvm-project?rev=268584&view=rev
Log:
lit: Use a custom error code in case the executable is missing
Modified:
test-suite/trunk/litsupport-tests/run/check/lit.out
test-suite/trunk/litsupport/test.py
Modified: test-suite/trunk/litsupport-tests/run/check/lit.out
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport-tests/run/check/lit.out?rev=268584&r1=268583&r2=268584&view=diff
==============================================================================
--- test-suite/trunk/litsupport-tests/run/check/lit.out (original)
+++ test-suite/trunk/litsupport-tests/run/check/lit.out Wed May 4 19:56:08 2016
@@ -1,5 +1,5 @@
CHECK-DAG: PASS: test-suite :: tests/a.test
-CHECK-DAG: FAIL: test-suite :: tests/noexe.test
+CHECK-DAG: NOEXE: test-suite :: tests/noexe.test
CHECK-DAG: FAIL: test-suite :: tests/noverify.test
CHECK-DAG: FAIL: test-suite :: tests/run_fail.test
CHECK-DAG: FAIL: test-suite :: tests/verify_fail.test
Modified: test-suite/trunk/litsupport/test.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/test.py?rev=268584&r1=268583&r2=268584&view=diff
==============================================================================
--- test-suite/trunk/litsupport/test.py (original)
+++ test-suite/trunk/litsupport/test.py Wed May 4 19:56:08 2016
@@ -22,6 +22,7 @@ from litsupport import timeit
SKIPPED = lit.Test.ResultCode('SKIPPED', False)
+NOEXE = lit.Test.ResultCode('NOEXE', True)
modules = []
@@ -72,6 +73,11 @@ class TestSuiteTest(FileBasedTest):
testfile.parse(context, test.getSourcePath())
plan = testplan.TestPlan()
+ # Report missing test executables.
+ if not os.path.exists(context.executable):
+ return lit.Test.Result(NOEXE, "Executable '%s' is missing" %
+ context.executable)
+
# Skip unchanged tests
if config.previous_results:
hash.compute(context)
More information about the llvm-commits
mailing list