Add test for using 32-bit sanitizers on 64-bit host
This commit is contained in:
parent
75941bd254
commit
fea3e11f64
3 changed files with 42 additions and 0 deletions
38
cross-compile-i686/main.fmf
Normal file
38
cross-compile-i686/main.fmf
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
summary: compiler-rt test for rhbz#1678240
|
||||
test: "$WITH_SCL ./test.sh"
|
||||
require: []
|
||||
framework: shell
|
||||
tier: 1
|
||||
component:
|
||||
- llvm-toolset
|
||||
- compiler-rt
|
||||
|
||||
adjust:
|
||||
# Common requirements when LLVM is not SCL-ized
|
||||
- enabled: false
|
||||
because: "Test applicable only on x86_64 arch"
|
||||
when: arch != x86_64
|
||||
|
||||
- require+:
|
||||
- clang
|
||||
- compiler-rt
|
||||
- compiler-rt.i686
|
||||
- glibc-devel.i686
|
||||
when: collection is not defined
|
||||
|
||||
# Requirements for SCL-ized LLVM
|
||||
- require+:
|
||||
- llvm-toolset-13.0-clang
|
||||
- llvm-toolset-13.0-compiler-rt
|
||||
- llvm-toolset-13.0-compiler-rt.i686
|
||||
when: collection == llvm-toolset-13.0
|
||||
- require+:
|
||||
- llvm-toolset-14.0-clang
|
||||
- llvm-toolset-14.0-compiler-rt
|
||||
- llvm-toolset-14.0-compiler-rt.i686
|
||||
when: collection == llvm-toolset-14.0
|
||||
- require+:
|
||||
- llvm-toolset-15.0-clang
|
||||
- llvm-toolset-15.0-compiler-rt
|
||||
- llvm-toolset-15.0-compiler-rt.i686
|
||||
when: collection == llvm-toolset-15.0
|
||||
1
cross-compile-i686/test.c
Normal file
1
cross-compile-i686/test.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
int main(){return 0;}
|
||||
3
cross-compile-i686/test.sh
Executable file
3
cross-compile-i686/test.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh -eux
|
||||
|
||||
clang -m32 -fsanitize=address test.c
|
||||
Loading…
Add table
Add a link
Reference in a new issue