Martin Storsjö
dc9837d908
test: Add the original test case for atomic loads of varying sizes
...
This covers the original testcase from
https://github.com/mstorsjo/llvm-mingw/issues/538 .
2026-02-25 12:13:08 +02:00
Martin Storsjö
49afca5984
test: Add a test for atomic load/store of large integers
...
Test atomically loading/storing 128 bit integers on 64 bit, and
64 bit integers on 32 bit.
This test case covers the root cause of
https://github.com/mstorsjo/llvm-mingw/issues/538 .
2026-02-25 12:13:08 +02:00
Martin Storsjö
98a14ed36f
test: Support mingw32-make running with a proper sh.exe
2026-01-08 11:34:24 +02:00
Martin Storsjö
e6cbbe9a35
test: Add a test for catching pointers by reference
...
This test should make sure that
https://github.com/mstorsjo/llvm-mingw/issues/522 doesn't
regress again.
2025-10-21 22:20:19 +03:00
Martin Storsjö
4700b4f7bb
test: Skip building the ubsan and openmp tests for arm64ec
...
Also unset RUN for arm64ec, instead of accidentally inheriting the
earlier value.
2025-07-17 22:49:10 +03:00
Martin Storsjö
19b4d2a434
test: Add tests for tchar.h routines
2025-04-02 20:38:48 +03:00
Martin Storsjö
8dabd61494
test: Rename HAVE_SANITIZERS to HAVE_ASAN
...
Always run the ubsan tests; those should work on any architecture
now.
2025-02-11 10:02:57 +02:00
Martin Storsjö
c412f4ac74
test: Add missing cases of CPPFLAGS/CFLAGS/CXXFLAGS
...
Normally neither of these variables are set, but by applying them
consistently, it allows testing building with extra flags set.
2025-02-10 13:57:53 +02:00
Martin Storsjö
f730b67e8e
test: Correctly use CXXFLAGS for one case of .cpp file compilation
2025-02-10 13:57:50 +02:00
Martin Storsjö
ccfa1317a5
test: Test building crt-test.c as C++
2024-11-12 11:31:44 +02:00
Martin Storsjö
e457f40bd9
test: Explicitly test with -D__USE_MINGW_ANSI_STDIO=0 as well
2024-11-12 11:31:44 +02:00
Martin Storsjö
85c0ef1a21
test: Don't build asan/ubsan tests with PDB debug info
...
The DWARF debug info should work just as well.
Since 8c03f400a837dc9333e54ab371e7904aa2bec43c in llvm-project,
llvm-symbolizer prefers DWARF over PDB if there is a DWARF section
in the inspected executable. Thus, in order to use PDB, one would
have to strip out any remnants of DWARF debug info from the executable,
like in run-lldb-tests.sh (e.g. by -Wl,-s).
For the purposes of this test, simplifying the setup to use DWARF
works just as well.
2024-03-18 09:41:13 +00:00
Martin Storsjö
9c48a7d92c
test: Print the reason for failing in test output inspections
2024-03-18 09:38:04 +00:00
Martin Storsjö
8a6b022f88
test: Test building another executable in UWP mode
...
Test building a file that includes windows.h, to catch issues with
e.g. the definition of WINAPI_FAMILY.
2024-03-13 18:19:42 +02:00
Martin Storsjö
ac3c8bfe35
test: Add a testcase for atomic helpers
2024-01-24 09:11:40 +02:00
Martin Storsjö
a815d6557a
test: Add a smoke test for resource files and windres
2023-12-12 16:10:37 +02:00
Martin Storsjö
b592dd734e
tests: Consistently use <triple>-gcc instead of <triple>-clang for cross compilation
...
While <triple>-clang is more specific, using <triple>-gcc allows
testing GCC based toolchains (somewhat) with the same scripts/makefiles
too.
2023-03-11 23:59:19 +02:00
Martin Storsjö
dfd4c31f2e
test: Simplify handling of OpenMP
...
It is available on all architectures by default now. Keep the
HAVE_OPENMP conditional within the test makefile to allow custom
testing without having it available.
2023-01-29 01:09:17 +02:00
Martin Storsjö
4ba7adbb90
run-tests: Check for the error messages from ssp routines
...
Since using the ssp routines from mingw-w64 instead of those from
GCC's libssp, these messages are included in the piped output of
the process, so we can check for the right messages.
2023-01-29 01:09:17 +02:00
Martin Storsjö
abc36e1f7c
run-tests: Stop trying to copy libssp-0.dll
...
We no longer build that DLL.
2023-01-29 01:09:17 +02:00
Martin Storsjö
ef9806fc0a
run-tests: Stop explicitly linking against -lssp for the fortification test
...
Since libmingwex.a provides these routines now, we don't need to
specify -lssp manually.
2023-01-29 01:09:17 +02:00
Martin Storsjö
241a1cd148
test: Prepare the test scripts for testing native Windows tools via WSL
...
Use the TOOLEXT variable in run-tests.sh in the same way as in the
Makefile. The Makefile sets this variable automatically if invoked
by mingw32-make, but if running run-tests.sh in WSL with native
Windows compilers, then we need to set TOOLEXT manually when calling
run-tests.sh.
Allow skipping the cfguard failure tests when run in such a
configuration, since Linux make in WSL can't easily run cmd.exe
like in MSYS2.
2023-01-21 23:48:24 +02:00
Martin Storsjö
e934cba58e
test: Include the runtime DLLs even if not running tests
...
This makes the produced binaries ready for running separately
afterwards, which was regressed in
e16ba0772f .
2022-11-02 10:37:58 +02:00
Martin Storsjö
e16ba0772f
run-tests: Split out building and running of tests into a Makefile
...
This allows building and running the tests in parallel.
2022-10-29 23:22:56 +03:00