Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I seem to recall that for test only change, the tag can be [test] or test instead of NFC
llvm/test/tools/llvm-readobj/ELF/amdgpu-elf-headers.test | ||
---|---|---|
2 | You can use yaml2obj -D FLAGS= to avoid replicate so many YAML inputs. See file-header-machine-types.test for an example. |
Thanks for the test!
llvm/test/tools/llvm-readobj/ELF/amdgpu-elf-headers.test | ||
---|---|---|
6 | It might be clearer to use FileCheck's -D option to sepcify the expected flag output, to avoid needing lots of different check lines: # RUN: llvm-readobj -h %t | FileCheck %s --match-full-lines -DFILE=%t -DFLAG='EF_AMDGPU_MACH_AMDGCN_GFX600 (0x20)' ... # CHECK-NEXT: Flags: [ {{.*}} # CHECK-NEXT: [[FLAG]] ... You can then change the value in each command, but share the same check everywhere. Note that I've also put the {{.*}} bit instead of the (0x...) bit for the total flags value, since that's not really important (the value is included on the next line anyway). Up to you though. |
You can use yaml2obj -D FLAGS= to avoid replicate so many YAML inputs.
See file-header-machine-types.test for an example.