Skip to content

Commit

Permalink
Add tests for single threaded CLI 4GB huge files
Browse files Browse the repository at this point in the history
  • Loading branch information
senhuang42 committed May 3, 2021
1 parent 333dd60 commit f5d481d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/generic-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,15 @@ jobs:
make clean
make -j msanregressiontest
asan-ubsan-testzstd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ASan + UBSan + Test
run: |
make clean
make -j uasan-test-zstd
cpp-gnu90-c99-compatibility:
runs-on: ubuntu-latest
steps:
Expand Down
Binary file added grep
Binary file not shown.
10 changes: 10 additions & 0 deletions tests/playTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,16 @@ cat tmp_patch | zstd -f --patch-from=tmp_dict -c -o tmp_patch_diff && die
cat tmp_patch | zstd -f --patch-from=tmp_dict --stream-size=1000 -c -o tmp_patch_diff
rm -rf tmp*

println "\n===> large files single-threaded tests across all strategies 1-7 (fast to opt) "

roundTripTest -g4000M -P99 " --zstd=strategy=1 --single-thread"
roundTripTest -g4000M -P99 " --zstd=strategy=2 --single-thread"
roundTripTest -g4000M -P99 " --zstd=strategy=3 --single-thread"
roundTripTest -g4000M -P99 " --zstd=strategy=4 --single-thread"
roundTripTest -g4000M -P99 " --zstd=strategy=5 --single-thread"
roundTripTest -g4000M -P99 " --zstd=strategy=6 --single-thread"
roundTripTest -g4000M -P99 " --zstd=strategy=7 --single-thread"

println "\n===> large files tests "

roundTripTest -g270000000 1
Expand Down

0 comments on commit f5d481d

Please sign in to comment.