From a1d3e559368954721d627bbabb32cf2ad62868b2 Mon Sep 17 00:00:00 2001 From: Reshetnikov Alexandr Date: Wed, 11 Oct 2023 22:47:31 +0400 Subject: [PATCH] windows tests --- .github/workflows/zstd.yml | 16 +++++++++++++++- zstd/test_windows.sh | 8 ++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 zstd/test_windows.sh diff --git a/.github/workflows/zstd.yml b/.github/workflows/zstd.yml index 571b01312..ddbca1dbd 100644 --- a/.github/workflows/zstd.yml +++ b/.github/workflows/zstd.yml @@ -23,10 +23,24 @@ jobs: workflow: ${{ github.workflow }} artifact: build-musl - windows-msys2: + windows-mingw: if: ${{ vars.CURRENT_TOOL == github.workflow }} uses: ./.github/workflows/build-windows-msys2.yml with: workflow: ${{ github.workflow }} msys2_install: make git mingw-w64-x86_64-gcc toolset: mingw + + test-windows: + needs: windows-mingw + uses: ./.github/workflows/test-windows.yml + with: + workflow: ${{ github.workflow }} + artifact: build-mingw + + test-nanoserver: + needs: windows-mingw + uses: ./.github/workflows/test-nanoserver.yml + with: + workflow: ${{ github.workflow }} + artifact: build-mingw diff --git a/zstd/test_windows.sh b/zstd/test_windows.sh new file mode 100755 index 000000000..40b06c5b8 --- /dev/null +++ b/zstd/test_windows.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +testVersion() { + assertEquals "*** Zstandard CLI (64-bit) v1.5.5, by Yann Collet ***" "$(../bin/zstd.exe --version)" +} + +# Load and run shUnit2. +source "../.tests/shunit2/shunit2"