Skip to content

Commit

Permalink
CI: add test for issue137
Browse files Browse the repository at this point in the history
  • Loading branch information
aklomp committed Jan 28, 2024
1 parent 8f3212f commit e7a0769
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -197,6 +197,9 @@ jobs:
make
${{ matrix.env }}${{ matrix.toolchain || 'toolchain' }}
${{ matrix.env }}cmake
unzip
vim
xxhash
- name: CMake Configure
shell: msys2 {0}
run: >
Expand All @@ -212,6 +215,9 @@ jobs:
- name: CTest
shell: msys2 {0}
run: ctest --no-tests=error --test-dir out -VV --build-config Release
- name: Issue 137 repro
shell: msys2 {0}
run: ./test/ci/issue137.sh

msys2-makefile-test:
name: msys2-makefile-${{ matrix.msystem }}
Expand Down
26 changes: 26 additions & 0 deletions test/ci/issue137.sh
@@ -0,0 +1,26 @@
#!/bin/bash
set -xev

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

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

out/bin/base64 in.bin | xxd

xxd in.bin.b64
out/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
xxhsum *.bin

# ---

base64 -d in.bin.b64 > out.bin
xxhsum *.bin

0 comments on commit e7a0769

Please sign in to comment.