Skip to content

Commit

Permalink
CI: add extra tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aklomp committed Jan 29, 2024
1 parent e6bed0a commit 5168d6a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ jobs:
run: cmake --build out --config Release --verbose
- name: CTest
run: ctest --no-tests=error --test-dir out -VV --build-config Release
- name: Issue 137 repro
if: runner.os == 'Windows'
run: ./test/ci/issue137.sh

alpine-makefile-test:
name: makefile-alpine-amd64-gcc
Expand Down Expand Up @@ -245,7 +248,13 @@ jobs:
update: true
install: >-
make
unzip
vim
xxhash
${{ matrix.env }}${{ matrix.toolchain || 'toolchain' }}
- name: Run tests
shell: msys2 {0}
run: ./test/ci/test.sh
- name: Issue 137 repro
shell: msys2 {0}
run: ./test/ci/issue137.sh
14 changes: 10 additions & 4 deletions test/ci/issue137.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@ set -xev

echo -ne "hello\nworld\n" | xxd

if [ -f out/bin/base64 ]; then
PREF=out/
else
PREF=
fi

wget https://github.com/aklomp/base64/files/14074869/in.bin.zip
unzip in.bin.zip
out/bin/base64 in.bin > in.bin.b64
${PREF}bin/base64 in.bin > in.bin.b64

out/bin/base64 in.bin | xxd
${PREF}bin/base64 in.bin | xxd

xxd in.bin.b64
out/bin/base64 -d in.bin.b64 > out.bin
${PREF}bin/base64 -d in.bin.b64 > out.bin

xxhsum *.bin

# ---

base64 in.bin > in.bin.b64
out/bin/base64 -d in.bin.b64 > out.bin
${PREF}bin/base64 -d in.bin.b64 > out.bin
xxhsum *.bin

# ---
Expand Down

0 comments on commit 5168d6a

Please sign in to comment.