Re: llvm34 testsuite
David Fang <[email protected]>
| Newsgroups | gmane.os.apple.fink.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jack, The TestDepends on fink-bash is only exposed to 10.4-EOL, where it is needed for the pipefail shell feature. I intentionally didn't expose that dependency to newer dists. In the TestScript, I actually test for the pipefail feature before patching their Lit (test infrastructure) files to use fink-bash. If that test fails, and fink-bash is not found, it should have immediately errored out with a message. Can you show me why fink-bash worked on 10.9? I'm not fully convinced yet. Odd that your 10.8 build didn't have this problem, nor did 10.7. If you launch '/bin/sh' what version do you see in the prompt? Fang > David, > It appears that the problem is that the python test harness requires > fink bash to be installed. > > % bin/llvm-lit -vvv test/Analysis/BasicAA/2003-09-19-LocalArgument.ll > -- Testing: 1 tests, 1 threads -- > UNRESOLVED: LLVM :: Analysis/BasicAA/2003-09-19-LocalArgument.ll (1 of 1) > ******************** TEST 'LLVM :: > Analysis/BasicAA/2003-09-19-LocalArgument.ll' FAILED ******************** > Exception during script execution: > Traceback (most recent call last): > File > "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/run.py", > line 166, in execute_test > result = test.config.test_format.execute(test, self.lit_config) > File > "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/formats/shtest.py", > line 12, in execute > self.execute_external) > File > "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/TestRunner.py", > line 491, in executeShTest > res = executeScript(test, litConfig, tmpBase, script, execdir) > File > "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/TestRunner.py", > line 300, in executeScript > env=test.config.environment) > File > "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/util.py", > line 151, in executeCommand > env=env, close_fds=kUseCloseFDs) > File "/sw/lib/python2.7/subprocess.py", line 709, in __init__ > errread, errwrite) > File "/sw/lib/python2.7/subprocess.py", line 1326, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > > ******************** > Testing Time: 0.01s > ******************** > Unresolved Tests (1): > LLVM :: Analysis/BasicAA/2003-09-19-LocalArgument.ll > > Unresolved Tests : 1 > > % fink install bash > Information about 9662 packages read in 1 seconds. > The following package will be installed or updated: > bash > Reading buildlock packages... > /sw/bin/dpkg-lockwait -i > /sw/fink/dists/stable/main/binary-darwin-x86_64/shells/bash_4.2-1_darwin-x86_64.deb > Selecting previously deselected package bash. > (Reading database ... 29633 files and directories currently installed.) > Unpacking bash (from .../bash_4.2-1_darwin-x86_64.deb) ... > Setting up bash (4.2-1) ÿÿ > > % bin/llvm-lit -vvv test/Analysis/BasicAA/2003-09-19-LocalArgument.ll > -- Testing: 1 tests, 1 threads -- > PASS: LLVM :: Analysis/BasicAA/2003-09-19-LocalArgument.ll (1 of 1) > Testing Time: 0.05s > Expected Passes : 1 > > Interestingly, you already had that dependency but had disabled itÿÿ > > # need bash because /bin/sh 2.0 on darwin8 is missing support for pipefail > # coreutils for gtimeout for tests, see %N.patch:utils/lit/lit/TestRunner.py > TestDepends: << > # only darwin8 needs fink's bash > # bash (>= 3.0), > coreutils > > > > On Thu, May 22, 2014 at 8:01 AM, Jack Howarth <[email protected]>wrote: > >> David, >> I won't have time to look at the failing test suite of llvm34 on 10.9 >> until tonight. However I took a quick look through the sources in the build >> and they are filled with python scripts usingÿÿ >> >> #!/usr/bin/env python >> >> So the python used will vary depending on whether the fink python package >> is installed. >> Hardcoding build/last/bin/llvm-lit to #!/usr/bin/python2.7 produces the >> same same failure as >> when it is #!/sw/bin/python2.7ÿÿ >> >> % bin/llvm-lit -vvv test/Analysis/BasicAA/2003-09-19-LocalArgument.ll >> -- Testing: 1 tests, 1 threads -- >> UNRESOLVED: LLVM :: Analysis/BasicAA/2003-09-19-LocalArgument.ll (1 of 1) >> ******************** TEST 'LLVM :: >> Analysis/BasicAA/2003-09-19-LocalArgument.ll' FAILED ******************** >> Exception during script execution: >> Traceback (most recent call last): >> File >> "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/run.py", >> line 166, in execute_test >> result = test.config.test_format.execute(test, self.lit_config) >> File >> "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/formats/shtest.py", >> line 12, in execute >> self.execute_external) >> File >> "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/TestRunner.py", >> line 491, in executeShTest >> res = executeScript(test, litConfig, tmpBase, script, execdir) >> File >> "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/TestRunner.py", >> line 300, in executeScript >> env=test.config.environment) >> File >> "/sw/src/fink.build/llvm34-3.4.1-0c/llvm-3.4.1.src/utils/lit/lit/util.py", >> line 151, in executeCommand >> env=env, close_fds=kUseCloseFDs) >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", >> line 711, in __init__ >> errread, errwrite) >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", >> line 1308, in _execute_child >> raise child_exception >> OSError: [Errno 2] No such file or directory >> >> >> ******************** >> Testing Time: 0.01s >> ******************** >> Unresolved Tests (1): >> LLVM :: Analysis/BasicAA/2003-09-19-LocalArgument.ll >> >> Unresolved Tests : 1 >> >> So if subprocesses are broken, they are broken on both the system python >> and the fink python. >> Jack >> > -- David Fang http://www.csl.cornell.edu/~fang/ ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Fink-devel mailing list [email protected] List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel