From 0cf410b758e5565251baa8db4dfc5752e246d5a6 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 | 44 ++++++++++++++++++++++++++++++++++++++ tests/runalltests.bat | 30 ++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100755 tests/runalltests.bat diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0030a1e..03b91d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -237,3 +237,47 @@ jobs: run: | cd tests/build-clang-12 ../runalltests.sh + + test-windows-2022: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v4 + + - uses: Jimver/cuda-toolkit@v0.2.16 + id: cuda-toolkit + + - 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 + + - uses: Jimver/cuda-toolkit@v0.2.16 + id: cuda-toolkit + + - name: build + shell: cmd + run: | + cd tests + mkdir build + cd build + "C:\Program Files (x86)\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