brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · a6980f2 Raw
42 lines · plain
1## Test different MRI comment formats and whitespace.2 3# RUN: rm -rf %t && mkdir -p %t4 5# RUN: echo "create %t/mri.ar" > %t/script1.mri6# RUN: echo "addlib %t/missing.a" >> %t/script1.mri7 8# RUN: not llvm-ar -M < %t/script1.mri 2>&1 | FileCheck --check-prefix=SCRIPT1 %s9# SCRIPT1: error: script line 2: could not open library10 11# RUN: echo "create %t/mri.ar" > %t/script2.mri12# RUN: echo "addlib %t/bad.a" >> %t/script2.mri13 14# RUN: echo "bad archive" > %t/bad.a15 16# RUN: not llvm-ar -M < %t/script2.mri 2>&1 | FileCheck --check-prefix=SCRIPT2 %s17# SCRIPT2: error: script line 2: could not parse library18 19# RUN: echo "create %t/mri.ar" > %t/script3.mri20# RUN: echo "create %t/second.ar" >> %t/script3.mri21 22# RUN: not llvm-ar -M < %t/script3.mri 2>&1 | FileCheck --check-prefix=SCRIPT3 %s23# SCRIPT3: error: script line 2: editing multiple archives not supported24 25# RUN: echo "save" > %t/script4.mri26# RUN: echo "create %t/mri.ar" >> %t/script4.mri27 28# RUN: not llvm-ar -M < %t/script4.mri 2>&1 | FileCheck --check-prefix=SCRIPT4 %s29# SCRIPT4: error: script line 2: file already saved30 31# RUN: echo "create %t/mri.ar" > %t/script5.mri32# RUN: echo "bad command" >> %t/script5.mri33 34# RUN: not llvm-ar -M < %t/script5.mri 2>&1 | FileCheck --check-prefix=SCRIPT5 %s35# SCRIPT5: error: script line 2: unknown command: bad36 37# RUN: echo "bad command" | not llvm-ar -M 2>&1 | FileCheck --check-prefix=SCRIPT6 %s38# SCRIPT6: error: script line 1: unknown command: bad39 40# RUN: not llvm-ar -M rc %t/mri.ar 2>&1 | FileCheck --check-prefix=SCRIPT7 %s41# SCRIPT7: error: cannot mix -M and other options42