[LLVMbugs] [Bug 9703] New: MC/COFF and MC/ELF tests fail because Windows MKS runs elf-dump instead of elf-dump.bat (etc.)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 13 11:13:06 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9703

           Summary: MC/COFF and MC/ELF tests fail because Windows MKS runs
                    elf-dump instead of elf-dump.bat (etc.)
           Product: Test Suite
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: lit
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dneto.llvm at gmail.com
                CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org


My environment is Windows + MSVC 9 + Cmake + NMake files + MKS.

MKS provides posix-like command line utilities, but behaves differently from
MSYS in important ways.

The tests under MC/COFF and MC/ELF run python scripts under test/Scripts.
On Windows there are .bat versions that should be run instead to invoke the
python scripts with an explicit python executable.  (We need this because
Windows does not have #! support.)

In my environment, the Python scripts are run directly as if there were .bat
scripts themselves.  This leads to many errors like these:



FAIL: LLVM :: MC/COFF/align-nops.s (4013 of 5920)
******************** TEST 'LLVM :: MC/COFF/align-nops.s' FAILED
********************
Script:
--
D:/llvmtrunk/llvm-nmake-dbg64/bin/./llvm-mc.EXE -filetype=obj -triple
i686-pc-win32 D:/llvmtrunk/llvm/test/MC/COFF/align
-nops.s -o - | coff-dump.py | D:/llvmtrunk/llvm-nmake-dbg64/bin/./FileCheck.EXE
D:/llvmtrunk/llvm/test/MC/COFF/align-nop
s.s
--
Exit Code: 1
Command Output (stderr):
--
D:/llvmtrunk/llvm/test/Scripts/coff-dump.py 15: syntax error: got (, expecting
Newline^M
FileCheck error: '-' is empty.
--



FAIL: LLVM :: MC/ELF/abs.s (4068 of 5920)
******************** TEST 'LLVM :: MC/ELF/abs.s' FAILED ********************
Script:
--
D:/llvmtrunk/llvm-nmake-dbg64/bin/./llvm-mc.EXE -filetype=obj -triple
x86_64-pc-linux-gnu D:/llvmtrunk/llvm/test/MC/ELF/
abs.s -o - | elf-dump  | D:/llvmtrunk/llvm-nmake-dbg64/bin/./FileCheck.EXE
D:/llvmtrunk/llvm/test/MC/ELF/abs.s
--
Exit Code: 1
Command Output (stderr):
--
import: D:/llvmtrunk/llvm/test/Scripts/elf-dump 3: not found^M
import: D:/llvmtrunk/llvm/test/Scripts/elf-dump 4: not found^M
import: D:/llvmtrunk/llvm/test/Scripts/elf-dump 5: not found^M
import: D:/llvmtrunk/llvm/test/Scripts/elf-dump 7: not found^M
class: D:/llvmtrunk/llvm/test/Scripts/elf-dump 9: not found^M
D:/llvmtrunk/llvm/test/Scripts/elf-dump 10: syntax error: got (, expecting
Newline^M
FileCheck error: '-' is empty.
--

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list