From 5245b36cdf4696fa0c249218ae3b5253913ec580 Mon Sep 17 00:00:00 2001 From: Sen Huang Date: Mon, 3 May 2021 12:18:21 -0700 Subject: [PATCH] Add CI tests for large files in GH Actions --- .github/workflows/generic-dev.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/generic-dev.yml b/.github/workflows/generic-dev.yml index 87b2507284a..a876bcb096b 100644 --- a/.github/workflows/generic-dev.yml +++ b/.github/workflows/generic-dev.yml @@ -59,6 +59,35 @@ jobs: # candidate test (to check) : underlink test # LDFLAGS=-Wl,--no-undefined : will make the linker fail if dll is underlinked + asan-ubsan-large-file-test-faststrategies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: ASan + UBSan + Large file compression (strategies 1-6) + run: | + make clean + make -C tests datagen + make -j zstd MOREFLAGS="-fsanitize=address,undefined" + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=1 --single-thread | ./zstd -d > /dev/null + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=2 --single-thread | ./zstd -d > /dev/null + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=3 --single-thread | ./zstd -d > /dev/null + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=4 --single-thread | ./zstd -d > /dev/null + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=5 --single-thread | ./zstd -d > /dev/null + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=6 --single-thread | ./zstd -d > /dev/null + + asan-ubsan-large-file-test-slowstrategies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: ASan + UBSan + Large file compression (strategies 7-9) + run: | + make clean + make -C tests datagen + make -j zstd MOREFLAGS="-fsanitize=address,undefined" + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=7 --single-thread | ./zstd -d > /dev/null + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=8 --single-thread | ./zstd -d > /dev/null + tests/datagen -g4000M -P99 | ./zstd -v --zstd=strategy=9 --single-thread | ./zstd -d > /dev/null + gcc-8-asan-ubsan-testzstd: runs-on: ubuntu-latest steps: