From: Danielle Rozenblit Date: Fri, 27 Jan 2023 22:18:29 +0000 (-0800) Subject: update CI X-Git-Tag: v1.5.4^2~18^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da589a134a40a19103458a6ccb8ada7bb09eea5d;p=thirdparty%2Fzstd.git update CI --- diff --git a/.github/workflows/dev-long-tests.yml b/.github/workflows/dev-long-tests.yml index 3fa2ceea2..c6e1e0be2 100644 --- a/.github/workflows/dev-long-tests.yml +++ b/.github/workflows/dev-long-tests.yml @@ -65,6 +65,17 @@ jobs: - name: thread sanitizer fuzztest run: CC=clang make tsan-fuzztest + + big-tests-zstreamtest32: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3 + - name: zstream tests in 32bit mode, with big tests + run: | + sudo apt-get -qqq update + make libc6install + CC=clang make -C tests test-zstream32 FUZZERFLAGS="--big-tests" + # lasts ~23mn gcc-8-asan-ubsan-testzstd: runs-on: ubuntu-latest diff --git a/tests/Makefile b/tests/Makefile index 8226176cc..3eed19ea8 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -373,7 +373,7 @@ test-zstream: zstreamtest $(QEMU_SYS) ./zstreamtest --newapi -t1 $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS) test-zstream32: zstreamtest32 - $(QEMU_SYS) ./zstreamtest32 $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS) + $(QEMU_SYS) ./zstreamtest32 -v $(ZSTREAM_TESTTIME) $(FUZZER_FLAGS) test-longmatch: longmatch $(QEMU_SYS) ./longmatch diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c index 3e5d854f1..2442593b7 100644 --- a/tests/zstreamtest.c +++ b/tests/zstreamtest.c @@ -2224,7 +2224,7 @@ static int basicUnitTests(U32 seed, double compressibility, int bigTests) DISPLAYLEVEL(3, "test%3i : Testing large offset with small window size: ", testNb++); - { + if (bigTests) { ZSTD_CCtx* cctx = ZSTD_createCCtx(); ZSTD_DCtx* dctx = ZSTD_createDCtx(); @@ -2237,7 +2237,7 @@ static int basicUnitTests(U32 seed, double compressibility, int bigTests) size_t const kNbSequences = 4; ZSTD_Sequence* sequences = malloc(sizeof(ZSTD_Sequence) * kNbSequences); void* const checkBuf = malloc(srcSize); - const size_t largeDictSize = 1 << 30; + const size_t largeDictSize = 1 << 25; ZSTD_CDict* cdict = NULL; ZSTD_DDict* ddict = NULL; @@ -2255,8 +2255,8 @@ static int basicUnitTests(U32 seed, double compressibility, int bigTests) ZSTD_DCtx_refDDict(dctx, ddict); sequences[0] = (ZSTD_Sequence) {3, 3, 3, 0}; - sequences[1] = (ZSTD_Sequence) {1 << 29, 0, 3, 0}; - sequences[2] = (ZSTD_Sequence) {1 << 29, 0, 9, 0}; + sequences[1] = (ZSTD_Sequence) {1 << 25, 0, 3, 0}; + sequences[2] = (ZSTD_Sequence) {1 << 25, 0, 9, 0}; sequences[3] = (ZSTD_Sequence) {3, 0, 3, 0}; cSize = ZSTD_compressSequences(cctx, dst, dstSize, @@ -3094,6 +3094,7 @@ int main(int argc, const char** argv) if (!strcmp(argument, "--newapi")) { selected_api=advanced_api; testNb += !testNb; continue; } if (!strcmp(argument, "--no-big-tests")) { bigTests=0; continue; } + if (!strcmp(argument, "--big-tests")) { bigTests=1; continue; } argument++; while (*argument!=0) {