brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · cb5e52c Raw
65 lines · plain
1## Different "echo" commands on Windows interpret quoted strings and2## wildcards in similar but different way (On Windows, ARGV tokenization3## and wildcard expansion are not done by the shell but by each command.)4## Because of that reason, this test fails on some Windows environment.5## We can't write quoted strings that are interpreted the same way6## by all echo commands. So, we don't want to run this on Windows.7 8# UNSUPPORTED: system-windows9 10# RUN: mkdir -p %t.dir11 12## Note that we are using "cannot open no-such-file: " as a marker that the13## linker keep going when it found an error. That specific error message is not14## related to the linker script tests.15 16# RUN: echo foobar > %t117# RUN: not ld.lld %t1 no-such-file 2>&1 | FileCheck -check-prefix=ERR1 %s18# ERR1: error: {{.*}}1:1: unknown directive: foobar19# ERR1: cannot open no-such-file:20 21# RUN: echo "foo \"bar" > %t222# RUN: not ld.lld %t2 no-such-file 2>&1 | FileCheck -check-prefix=ERR2 %s23# ERR2: unclosed quote24# ERR2: cannot open no-such-file:25 26# RUN: echo "/*" > %t327# RUN: not ld.lld %t3 no-such-file 2>&1 | FileCheck -check-prefix=ERR3 %s28# ERR3: unclosed comment29# ERR3: cannot open no-such-file:30 31# RUN: echo "EXTERN (" > %t432# RUN: not ld.lld %t4 no-such-file 2>&1 | FileCheck -check-prefix=ERR4 %s33# ERR4: unexpected EOF34# ERR4: cannot open no-such-file:35 36# RUN: echo "EXTERN (" > %t537# RUN: not ld.lld %t5 no-such-file 2>&1 | FileCheck -check-prefix=ERR5 %s38# ERR5: unexpected EOF39# ERR5: cannot open no-such-file:40 41# RUN: echo "EXTERN xyz" > %t642# RUN: not ld.lld %t6 no-such-file 2>&1 | FileCheck -check-prefix=ERR6 %s43# ERR6: ( expected, but got xyz44# ERR6: cannot open no-such-file:45 46# RUN: echo "INCLUDE /no/such/file" > %t747# RUN: not ld.lld %t7 no-such-file 2>&1 | FileCheck -check-prefix=ERR7 %s48# ERR7: cannot find linker script /no/such/file49# ERR7: cannot open no-such-file:50 51# RUN: echo "OUTPUT_FORMAT(x y z)" > %t852# RUN: not ld.lld %t8 no-such-file 2>&1 | FileCheck -check-prefix=ERR8 %s53# RUN: not ld.lld -m elf_amd64 %t8 no-such-file 2>&1 | FileCheck -check-prefix=ERR8 %s54# ERR8: , expected, but got y55# ERR8: cannot open no-such-file:56 57# RUN: echo "OUTPUT_FORMAT(elf64-x86-64 y z)" > %t958# RUN: not ld.lld %t9 no-such-file 2>&1 | FileCheck -check-prefix=ERR9 %s59# ERR9: , expected, but got y60# ERR9: cannot open no-such-file:61 62# RUN: echo 'OUTPUT_FORMAT("")' > %t1063# RUN: not ld.lld %t10 2>&1 | FileCheck -check-prefix=ERR10 %s64# ERR10: error: {{.*}}:1: unknown output format name:65