Add a more thorough test case, testing various CRT features
Simplify building of the test cases at the same time; stop building hello-cpp with -fno-exceptions.
This commit is contained in:
1 parent
421b7f671c
commit
7297bb65a5
3 files changed
+947
-15
No files matched your search
+10
-5
@@ -12,11 +12,15 @@ export PATH=$PREFIX/bin:$PATH
|
||||
: ${ARCHS:=${TOOLCHAIN_ARCHS-i686 x86_64 armv7 aarch64}}
|
||||
|
||||
cd test
|
||||
TESTS_C="hello hello-tls crt-test"
|
||||
TESTS_CPP="hello-cpp hello-exception"
|
||||
for arch in $ARCHS; do
|
||||
$arch-w64-mingw32-clang hello.c -o hello-$arch.exe
|
||||
$arch-w64-mingw32-clang hello-tls.c -o hello-tls-$arch.exe
|
||||
$arch-w64-mingw32-clang++ hello-cpp.cpp -o hello-cpp-$arch.exe -fno-exceptions
|
||||
$arch-w64-mingw32-clang++ hello-exception.cpp -o hello-exception-$arch.exe
|
||||
for test in $TESTS_C; do
|
||||
$arch-w64-mingw32-clang $test.c -o $test-$arch.exe
|
||||
done
|
||||
for test in $TESTS_CPP; do
|
||||
$arch-w64-mingw32-clang++ $test.cpp -o $test-$arch.exe
|
||||
done
|
||||
case $arch in
|
||||
i686|x86_64)
|
||||
RUN=wine
|
||||
@@ -31,7 +35,8 @@ for arch in $ARCHS; do
|
||||
COPY="$COPY_AARCH64"
|
||||
;;
|
||||
esac
|
||||
for file in hello-$arch.exe hello-tls-$arch.exe hello-cpp-$arch.exe hello-exception-$arch.exe; do
|
||||
for test in $TESTS_C $TESTS_CPP; do
|
||||
file=$test-$arch.exe
|
||||
if [ -n "$COPY" ]; then
|
||||
$COPY $file
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user