It's a lot faster than bash. Also use FileCheck instead of grep to search through a binary file. Cygwin's grep isn't working here for unknown reasons that probably aren't worth investigating. llvm-svn: 237834
19 lines
603 B
Plaintext
19 lines
603 B
Plaintext
# REQUIRES: winres
|
|
|
|
# RUN: yaml2obj %p/Inputs/nop.obj.yaml > %t.obj
|
|
|
|
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:start /opt:noref \
|
|
# RUN: -- %t.obj %p/Inputs/resource.res
|
|
|
|
# Check if the binary contains UTF-16LE string "Hello" copied from resource.res.
|
|
# RUN: FileCheck --check-prefix=EXE %s < %t.exe
|
|
|
|
EXE: {{H.e.l.l.o}}
|
|
|
|
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:start /opt:noref \
|
|
# RUN: /manifest:embed -- %t.obj %p/Inputs/resource.res
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck %s
|
|
|
|
CHECK: ResourceTableRVA: 0x1000
|
|
CHECK: ResourceTableSize: 0x208
|