This change adds tests to cover existing MRI script functionality.
Details
Details
- Reviewers
rupprecht - Commits
- rG971ac4ca2cb8: Reapply [llvm-ar][test] Add to MRI test coverage
rL366201: Reapply [llvm-ar][test] Add to MRI test coverage
rL365039: [llvm-ar][test] Add to MRI test coverage
rG250015bacf7f: [llvm-ar][test] Add to MRI test coverage
rG8d59f5370d46: Revert [llvm-ar][test] Add to MRI test coverage
rL363239: Revert [llvm-ar][test] Add to MRI test coverage
rG02eac87ba3e6: [llvm-ar][test] Add to MRI test coverage
rL363232: [llvm-ar][test] Add to MRI test coverage
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I reverted in 365084 because it failed greendragon. Please fix.
Script: -- : 'RUN: at line 3'; rm -rf /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp && mkdir -p /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/extracted : 'RUN: at line 5'; echo "contents" > /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/£.txt : 'RUN: at line 7'; echo "CREATE /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/mri.ar" > /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/script.mri : 'RUN: at line 8'; echo "ADDMOD /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/£.txt" >> /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/script.mri : 'RUN: at line 9'; echo "SAVE" >> /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/script.mri : 'RUN: at line 11'; /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/bin/llvm-ar -M < /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/script.mri : 'RUN: at line 12'; cd /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/extracted && /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/bin/llvm-ar x /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/clang-build/test/tools/llvm-ar/Output/mri-utf8.test.tmp/mri.ar : 'RUN: at line 18'; env LANG=en_US.UTF-8 "/usr/local/opt/python@2/bin/python2.7" -c "assert open(u'\U000000A3.txt', 'rb').read() == b'contents\n'" -- Exit Code: 1 Command Output (stderr): -- Traceback (most recent call last): File "<string>", line 1, in <module> AssertionError --
Comment Actions
I believe the test failure is based on an issue with output, specific to the darwin format:
https://bugs.llvm.org/show_bug.cgi?id=42562
Simmilar to D63935, I could make this test XFAIL: darwin or explicitly call llvm-ar with --format=gnu. I'm not sure what which would be preferable.