xref: /llvm-project/lld/test/ELF/error-handling-script-windows.bat (revision 12d4c89e88bf9349a063fdd992233b29adeb8241)
1:: REQUIRES: x86, system-windows
2:: RUN: echo | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t0.o
3:: RUN: not ld.lld -o /dev/null -lidontexist --error-handling-script=%s %t0.o 2>&1 |\
4:: RUN:   FileCheck --check-prefix=CHECK-LIB %s
5:: RUN: not ld.lld -o /dev/null -lidontexist --error-handling-script=%s.nope %t0.o 2>&1 |\
6:: RUN:   FileCheck --check-prefix=CHECK-SCRIPT-DOES-NOT-EXIST -DFILE=%s.nope %s
7::
8:: CHECK-LIB:      script: info: called with missing-lib idontexist
9:: CHECK-LIB-NEXT: error: unable to find library -lidontexist
10
11:: CHECK-SCRIPT-DOES-NOT-EXIST:      error: unable to find library -lidontexist
12:: CHECK-SCRIPT-DOES-NOT-EXIST-NEXT: error: error handling script '[[FILE]]' failed to execute
13
14@echo off
15echo "script: info: called with %*"
16