Skip to content

Instantly share code, notes, and snippets.

@modocache
Created July 27, 2017 15:20
Show Gist options
  • Save modocache/759cf2509f5519e8d5ce36792d3d99c1 to your computer and use it in GitHub Desktop.
Save modocache/759cf2509f5519e8d5ce36792d3d99c1 to your computer and use it in GitHub Desktop.
C:\Users\modocache\Source\fb\llvm\llvm>python utils\lit\lit.py -v --path C:\Users\modocache\Source\fb\llvm\build\Debug\bin utils\lit\tests\shtest-format.py
lit.py: C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\lit.cfg:50: note: Found python psutil module
-- Testing: 1 tests, 1 threads --
FAIL: lit :: shtest-format.py (1 of 1)
******************** TEST 'lit :: shtest-format.py' FAILED ********************
Script:
--
not C:\Python27\python.exe C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\..\lit.py -j 1 -v C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\..\tests\Inputs/shtest-format > C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Output\shtest-format.py.tmp.out
FileCheck < C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Output\shtest-format.py.tmp.out C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\shtest-format.py
--
Exit Code: 1
Command Output (stdout):
--
$ "not" "C:\Python27\python.exe" "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\..\lit.py" "-j" "1" "-v" "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\..\tests\Inputs/shtest-format"
$ "FileCheck" "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\shtest-format.py"
# command stderr:
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\shtest-format.py:13:10: error: expected string not found in input
# CHECK: PASS: shtest-format :: argv0.txt
^
<stdin>:1:13: note: scanning from here
-- Testing: 23 tests, 1 threads --
^
<stdin>:2:1: note: possible intended match here
FAIL: shtest-format :: argv0.txt (1 of 23)
^
error: command failed with exit status: 1
--
********************
Testing Time: 1.12s
********************
Failing Tests (1):
lit :: shtest-format.py
Unexpected Failures: 1
-- Testing: 23 tests, 1 threads --
FAIL: shtest-format :: argv0.txt (1 of 23)
******************** TEST 'shtest-format :: argv0.txt' FAILED ********************
Script:
--
[ "A" = "A" ]
--
Exit Code: 127
Command Output (stdout):
--
$ "[" "A" "=" "A" "]"
# command stderr:
'[': command not found
error: command failed with exit status: 127
--
********************
FAIL: shtest-format :: external_shell/fail.txt (2 of 23)
******************** TEST 'shtest-format :: external_shell/fail.txt' FAILED ********************
Script:
--
echo "line 1: failed test output on stdout"
echo "line 2: failed test output on stdout"
cat "does-not-exist"
--
Exit Code: 1
Command Output (stdout):
--
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>echo "line 1: failed test output on stdout"
"line 1: failed test output on stdout"
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>if 0 NEQ 0 EXIT
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>echo "line 2: failed test output on stdout"
"line 2: failed test output on stdout"
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>if 0 NEQ 0 EXIT
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>cat "does-not-exist"
--
Command Output (stderr):
--
'cat' is not recognized as an internal or external command,
operable program or batch file.
--
********************
FAIL: shtest-format :: external_shell/fail_with_bad_encoding.txt (3 of 23)
******************** TEST 'shtest-format :: external_shell/fail_with_bad_encoding.txt' FAILED ********************
Script:
--
C:/Users/modocache/Source/fb/llvm/llvm/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.sh
false
--
Exit Code: 1
Command Output (stdout):
--
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>C:/Users/modocache/Source/fb/llvm/llvm/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.sh
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>if 0 NEQ 0 EXIT
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>false
--
Command Output (stderr):
--
'false' is not recognized as an internal or external command,
operable program or batch file.
--
********************
FAIL: shtest-format :: external_shell/pass.txt (4 of 23)
******************** TEST 'shtest-format :: external_shell/pass.txt' FAILED ********************
Script:
--
true
--
Exit Code: 1
Command Output (stdout):
--
C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\tests\Inputs\shtest-format\external_shell>true
--
Command Output (stderr):
--
'true' is not recognized as an internal or external command,
operable program or batch file.
--
********************
FAIL: shtest-format :: fail.txt (5 of 23)
******************** TEST 'shtest-format :: fail.txt' FAILED ********************
Script:
--
printf "line 1: failed test output on stdout\nline 2: failed test output on stdout"
false
--
Exit Code: 127
Command Output (stdout):
--
$ "printf" "line 1: failed test output on stdout\nline 2: failed test output on stdout"
# command stderr:
'printf': command not found
error: command failed with exit status: 127
--
********************
UNRESOLVED: shtest-format :: no-test-line.txt (6 of 23)
******************** TEST 'shtest-format :: no-test-line.txt' FAILED ********************
Test has no run line!
********************
FAIL: shtest-format :: pass.txt (7 of 23)
******************** TEST 'shtest-format :: pass.txt' FAILED ********************
Script:
--
true
--
Exit Code: 127
Command Output (stdout):
--
$ "true"
# command stderr:
'true': command not found
error: command failed with exit status: 127
--
********************
UNSUPPORTED: shtest-format :: requires-any-missing.txt (8 of 23)
FAIL: shtest-format :: requires-any-present.txt (9 of 23)
******************** TEST 'shtest-format :: requires-any-present.txt' FAILED ********************
Script:
--
true
--
Exit Code: 127
Command Output (stdout):
--
$ "true"
# command stderr:
'true': command not found
error: command failed with exit status: 127
--
********************
UNSUPPORTED: shtest-format :: requires-missing.txt (10 of 23)
FAIL: shtest-format :: requires-present.txt (11 of 23)
******************** TEST 'shtest-format :: requires-present.txt' FAILED ********************
Script:
--
true
--
Exit Code: 127
Command Output (stdout):
--
$ "true"
# command stderr:
'true': command not found
error: command failed with exit status: 127
--
********************
UNRESOLVED: shtest-format :: requires-star.txt (12 of 23)
******************** TEST 'shtest-format :: requires-star.txt' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\run.py", line 192, in _execute_test_impl
result = test.config.test_format.execute(test, lit_config)
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\formats\shtest.py", line 25, in execute
self.execute_external)
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\TestRunner.py", line 1164, in executeShTest
script = parseIntegratedTestScript(test)
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\TestRunner.py", line 1095, in parseIntegratedTestScript
missing_required_features = test.getMissingRequiredFeatures()
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\Test.py", line 313, in getMissingRequiredFeatures
return self.getMissingRequiredFeaturesFromList(features)
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\Test.py", line 302, in getMissingRequiredFeaturesFromList
raise ValueError('Error in REQUIRES list:\n%s' % str(e))
ValueError: Error in REQUIRES list:
couldn't parse text: '*'
in expression: '*'
********************
UNSUPPORTED: shtest-format :: requires-triple.txt (13 of 23)
FAIL: shtest-format :: unsupported-expr-false.txt (14 of 23)
******************** TEST 'shtest-format :: unsupported-expr-false.txt' FAILED ********************
Script:
--
true
--
Exit Code: 127
Command Output (stdout):
--
$ "true"
# command stderr:
'true': command not found
error: command failed with exit status: 127
--
********************
UNSUPPORTED: shtest-format :: unsupported-expr-true.txt (15 of 23)
UNRESOLVED: shtest-format :: unsupported-star.txt (16 of 23)
******************** TEST 'shtest-format :: unsupported-star.txt' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\run.py", line 192, in _execute_test_impl
result = test.config.test_format.execute(test, lit_config)
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\formats\shtest.py", line 25, in execute
self.execute_external)
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\TestRunner.py", line 1164, in executeShTest
script = parseIntegratedTestScript(test)
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\TestRunner.py", line 1103, in parseIntegratedTestScript
unsupported_features = test.getUnsupportedFeatures()
File "C:\Users\modocache\Source\fb\llvm\llvm\utils\lit\lit\Test.py", line 331, in getUnsupportedFeatures
raise ValueError('Error in UNSUPPORTED list:\n%s' % str(e))
ValueError: Error in UNSUPPORTED list:
couldn't parse text: '*'
in expression: '*'
********************
UNSUPPORTED: shtest-format :: unsupported_dir/some-test.txt (17 of 23)
FAIL: shtest-format :: xfail-expr-false.txt (18 of 23)
******************** TEST 'shtest-format :: xfail-expr-false.txt' FAILED ********************
Script:
--
true
--
Exit Code: 127
Command Output (stdout):
--
$ "true"
# command stderr:
'true': command not found
error: command failed with exit status: 127
--
********************
XFAIL: shtest-format :: xfail-expr-true.txt (19 of 23)
XFAIL: shtest-format :: xfail-feature.txt (20 of 23)
XFAIL: shtest-format :: xfail-target.txt (21 of 23)
XFAIL: shtest-format :: xfail.txt (22 of 23)
XFAIL: shtest-format :: xpass.txt (23 of 23)
Testing Time: 0.57s
********************
Failing Tests (10):
shtest-format :: argv0.txt
shtest-format :: external_shell/fail.txt
shtest-format :: external_shell/fail_with_bad_encoding.txt
shtest-format :: external_shell/pass.txt
shtest-format :: fail.txt
shtest-format :: pass.txt
shtest-format :: requires-any-present.txt
shtest-format :: requires-present.txt
shtest-format :: unsupported-expr-false.txt
shtest-format :: xfail-expr-false.txt
********************
Unresolved Tests (3):
shtest-format :: no-test-line.txt
shtest-format :: requires-star.txt
shtest-format :: unsupported-star.txt
Expected Failures : 5
Unsupported Tests : 5
Unresolved Tests : 3
Unexpected Failures: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment