File: include-paths.test

package info (click to toggle)
llvm-toolchain-6.0 1%3A6.0.1-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 598,080 kB
  • sloc: cpp: 3,046,253; ansic: 595,057; asm: 271,965; python: 128,926; objc: 106,554; sh: 21,906; lisp: 10,191; pascal: 6,094; ml: 5,544; perl: 5,265; makefile: 2,227; cs: 2,027; xml: 686; php: 212; csh: 117
file content (45 lines) | stat: -rw-r--r-- 2,121 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
; Should find the bitmap if it is in the same folder as the rc file.
; RUN: rm -f %t.include.res
; RUN: llvm-rc /FO %t.include.res %p/Inputs/include.rc
; RUN: llvm-readobj %t.include.res | FileCheck --check-prefix=FOUND %s

; Should find the bitmap if the folder is explicitly specified.
; RUN: rm -f %t.nested-include.res
; RUN: llvm-rc /FO %t.nested-include.res /I %p/Inputs/nested %p/Inputs/deep-include.rc
; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s

; Otherwise, it should not find the bitmap.
; RUN: rm -f %t.nested-include.res
; RUN: not llvm-rc /FO %t.nested-include.res %p/Inputs/deep-include.rc 2>&1 \
; RUN:   | FileCheck --check-prefix=MISSING %s

; Should find the bitmap if the process's current working directory
; contains the resource being searched for.  Do this test last since it
; changes the current working directory and could affect the success or
; failure of other tests if run first.
; RUN: rm -f %t.nested-include.res
; RUN: cd %p/Inputs/nested
; RUN: llvm-rc /FO %t.nested-include.res %p/Inputs/include.rc
; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s

FOUND:      Resource type (string): BITMAP
FOUND-NEXT: Resource name (string): FOO
FOUND-NEXT: Data version: 0
FOUND-NEXT: Memory flags: 0x30
FOUND-NEXT: Language ID: 1033
FOUND-NEXT: Version (major): 0
FOUND-NEXT: Version (minor): 0
FOUND-NEXT: Characteristics: 0
FOUND-NEXT: Data size: 110
FOUND-NEXT: Data: (
FOUND-NEXT:   0000: 424D6E00 00000000 00003600 00002800  |BMn.......6...(.|
FOUND-NEXT:   0010: 00000200 00000700 00000100 18000000  |................|
FOUND-NEXT:   0020: 00003800 00000000 00000000 00000000  |..8.............|
FOUND-NEXT:   0030: 00000000 00005BB3 855BB385 0000FFFF  |......[..[......|
FOUND-NEXT:   0040: FFFFFFFF 0000FFFF FFFFFFFF 0000FFFF  |................|
FOUND-NEXT:   0050: FFFFFFFF 00005BB3 85FFFFFF 0000FFFF  |......[.........|
FOUND-NEXT:   0060: FF0EC9FF 0000241C EDFFFFFF 0000      |......$.......|
FOUND-NEXT: )

MISSING:      llvm-rc: Error in BITMAP statement (ID foo):
MISSING-NEXT: error : file not found : nested-bitmap.bmp