From d65dbacaa9f3d2fdc6d1e1bb70bb3ca7e2000049 Mon Sep 17 00:00:00 2001 From: Evan Ramos Date: Tue, 30 Jul 2024 11:09:16 -0500 Subject: [PATCH] Windows CI --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ tests/runalltests.bat | 30 ++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100755 tests/runalltests.bat diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0030a1e..1021861 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -237,3 +237,41 @@ jobs: run: | cd tests/build-clang-12 ../runalltests.sh + + test-windows-2022: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v4 + + - name: build + shell: cmd + run: | + cd tests + mkdir build + cd build + "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && cmake -G "NMake Makefiles" .. && nmake + + - name: run + shell: cmd + run: | + cd tests/build + ../runalltests.bat + + test-windows-2019: + runs-on: windows-2019 + steps: + - uses: actions/checkout@v4 + + - name: build + shell: cmd + run: | + cd tests + mkdir build + cd build + "C:\Program Files\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" && cmake -G "NMake Makefiles" .. && nmake + + - name: run + shell: cmd + run: | + cd tests/build + ../runalltests.bat diff --git a/tests/runalltests.bat b/tests/runalltests.bat new file mode 100755 index 0000000..72f4974 --- /dev/null +++ b/tests/runalltests.bat @@ -0,0 +1,30 @@ +runtest.exe -t attributes +runtest.exe -t attributes -i inj +runtest.exe -t calls +runtest.exe -t calls -i inj +runtest.exe -t calls -i calls +runtest.exe -t categories +runtest.exe -t categories -i inj +runtest.exe -t coverage +runtest.exe -t coverage -i inj +runtest.exe -t coveragec +runtest.exe -t coveragec -i inj +runtest.exe -t coverage-counter +runtest.exe -t coverage-counter -i inj +runtest.exe -t coverage-cu +runtest.exe -t coverage-cu -i inj +runtest.exe -t coverage-mem +runtest.exe -t coverage-mem -i inj +runtest.exe -t coverage-memcudart +runtest.exe -t coverage-memcudart -i inj +runtest.exe -t coverage-payload +runtest.exe -t coverage-payload -i inj +runtest.exe -t domains +runtest.exe -t domains -i inj +runtest.exe -t linkerdupes +runtest.exe -t linkerdupes -i inj +runtest.exe -t regstrings +runtest.exe -t regstrings -i inj +runtest.exe -t self +runtest.exe -t self -i inj +runtest.exe -t self -i self