1 ; Should find the bitmap if it is in the same folder as the rc file.
2 ; RUN: rm -f %t.include.res
3 ; RUN: llvm-rc /FO %t.include.res %p/Inputs/include.rc
4 ; RUN: llvm-readobj %t.include.res | FileCheck --check-prefix=FOUND %s
6 ; Try including files without quotes.
7 ; RUN: rm -f %t.noquotes.res
8 ; RUN: llvm-rc /FO %t.noquotes.res %p/Inputs/include-noquotes.rc
9 ; RUN: llvm-readobj %t.noquotes.res | FileCheck --check-prefix=FOUND %s
11 ; Should find the bitmap if the folder is explicitly specified.
12 ; RUN: rm -f %t.nested-include.res
13 ; RUN: llvm-rc /FO %t.nested-include.res /I %p/Inputs/nested %p/Inputs/deep-include.rc
14 ; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s
16 ; Otherwise, it should not find the bitmap.
17 ; RUN: rm -f %t.nested-include.res
18 ; RUN: not llvm-rc /FO %t.nested-include.res %p/Inputs/deep-include.rc 2>&1 \
19 ; RUN: | FileCheck --check-prefix=MISSING %s
21 ; Should find the bitmap if the process's current working directory
22 ; contains the resource being searched for. Do this test last since it
23 ; changes the current working directory and could affect the success or
24 ; failure of other tests if run first.
25 ; RUN: rm -f %t.nested-include.res
26 ; RUN: cd %p/Inputs/nested
27 ; RUN: llvm-rc /FO %t.nested-include.res %p/Inputs/include.rc
28 ; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s
30 FOUND: Resource type (int): 2
31 FOUND-NEXT: Resource name (string): FOO
32 FOUND-NEXT: Data version: 0
33 FOUND-NEXT: Memory flags: 0x30
34 FOUND-NEXT: Language ID: 1033
35 FOUND-NEXT: Version (major): 0
36 FOUND-NEXT: Version (minor): 0
37 FOUND-NEXT: Characteristics: 0
38 FOUND-NEXT: Data size: 96
40 FOUND-NEXT: 0000: 28000000 02000000 07000000 01001800 |(...............|
41 FOUND-NEXT: 0010: 00000000 38000000 00000000 00000000 |....8...........|
42 FOUND-NEXT: 0020: 00000000 00000000 5BB3855B B3850000 |........[..[....|
43 FOUND-NEXT: 0030: FFFFFFFF FFFF0000 FFFFFFFF FFFF0000 |................|
44 FOUND-NEXT: 0040: FFFFFFFF FFFF0000 5BB385FF FFFF0000 |........[.......|
45 FOUND-NEXT: 0050: FFFFFF0E C9FF0000 241CEDFF FFFF0000 |........$.......|
48 MISSING: llvm-rc: Error in BITMAP statement (ID foo):
49 MISSING-NEXT: error : file not found : nested_bitmap.bmp