Add test for ucrt64 toolchain detection on fedora

This commit is contained in:
Nikita Popov 2022-12-20 11:05:38 +01:00
commit 048eb66cf0
3 changed files with 22 additions and 0 deletions

12
ucrt64-toolchain/main.fmf Normal file
View file

@ -0,0 +1,12 @@
summary: Test that ucrt64 toolchain is detected
test: ./runtest.sh
component:
- clang
require:
- clang
- ucrt64-gcc-c++
adjust:
- enabled: false
when: distro != fedora or distro < fedora-37
because: "The ucrt64 toolchain is only available since Fedora 37"

4
ucrt64-toolchain/runtest.sh Executable file
View file

@ -0,0 +1,4 @@
set -eux
clang++ --target=x86_64-windows-gnu test.cpp
file a.exe | grep "PE32+ executable (console) x86-64, for MS Windows"

View file

@ -0,0 +1,6 @@
#include <iostream>
int main() {
std::cout << "Hello world" << std::endl;
return 0;
}