diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-30 10:55:28 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-30 10:55:28 +0100 |
commit | c0fb6442e30c44490b42e6072151ee739b944e56 (patch) | |
tree | 48cd5bd004ffacebee7d8d139d09e34d3976fd42 /test/test.sh | |
parent | 8768a30f73a8ad5ab00476401626993958845ad7 (diff) |
Run tests with both C (c99, c11) and C++ (c++11, c++20) compilers
Diffstat (limited to 'test/test.sh')
-rwxr-xr-x | test/test.sh | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/test/test.sh b/test/test.sh index dda32aa..44104d5 100755 --- a/test/test.sh +++ b/test/test.sh @@ -4,14 +4,18 @@ set -eu cd "$(dirname "$0")" -./compile.sh +for std in c++11 c++20 c99 c11; do + + "./compile-${std}.sh" + + for file in $(find .. -type f -size -32760c); do + if ! ./deflate $file | ./inflate > tmp; then + echo "inflate error at $file" + ./deflate $file | ./inflate > tmp + fi + diff $file tmp + done -for file in $(find .. -type f -size -32760c); do - if ! ./deflate $file | ./inflate > tmp; then - echo "inflate error at $file" - ./deflate $file | ./inflate > tmp - fi - diff $file tmp done rm -f tmp |