aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-objcopy/DXContainer/dump-section-errors.yaml
blob: e748eecf735282dc18fe3e5bdb8dc9082913d6b2 (plain)
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
# RUN: yaml2obj %s -o %t.dxbc
# RUN: not llvm-objcopy --dump-section=FKE0=%t.fek0 %t.dxbc 2>&1 | FileCheck %s --check-prefix=CHECK-ZEROSIZE -DFILE=%t.fek0
# RUN: not llvm-objcopy --dump-section=FKE3=%t.fek1 %t.dxbc 2>&1 | FileCheck %s --check-prefix=CHECK-MISSING -DFILE=%t.fek1
# RUN: not llvm-objcopy --dump-section=FKE2=%t/does_not_exist/.fek2 %t.dxbc 2>&1 | FileCheck %s --check-prefix=CHECK-BAD-PATH -DFILE=%t/does_not_exist/.fek2 -DMSG=%errc_ENOENT

# CHECK-ZEROSIZE: error: '[[FILE]]': part 'FKE0' is empty
# CHECK-MISSING: error: '[[FILE]]': part 'FKE3' not found
# CHECK-BAD-PATH: error: '[[FILE]]': [[MSG]]

--- !dxcontainer
Header:
  Hash:        [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
                 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]
  Version:
    Major:     1
    Minor:     0
  FileSize:    108
  PartCount:   3
  PartOffsets: [ 60, 68, 76 ]
Parts:
  - Name: FKE0
    Size: 0
  - Name: FKE1
    Size: 0
  - Name: FKE2
    Size: 8
...