Skip to content

Commit 345ed63

Browse files
Merge pull request #3509 from daniellerozenblit/fix-window-resize-test
Fix cli-tests issues
2 parents 6a86db1 + d3d0b92 commit 345ed63

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

.github/workflows/dev-long-tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ jobs:
3838
- name: OS-X test
3939
run: make test # make -c lib all doesn't work because of the fact that it's not a tty
4040

41+
# lasts ~24mn
42+
make-test-32bit:
43+
runs-on: ubuntu-latest
44+
env:
45+
DEVNULLRIGHTS: 1
46+
READFROMBLOCKDEVICE: 1
47+
steps:
48+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
49+
- name: make test
50+
run: |
51+
sudo apt-get -qqq update
52+
make libc6install
53+
CFLAGS="-m32" make test
54+
4155
no-intrinsics-fuzztest:
4256
runs-on: ubuntu-latest
4357
steps:

tests/cli-tests/compression/basic.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ zstd --stdout file | zstd -t
2525
println bob | zstd | zstd -t
2626

2727
# Test keeping input file when compressing to stdout in gzip mode
28-
$ZSTD_SYMLINK_DIR/gzip -c file | zstd -t ; test -f file
29-
$ZSTD_SYMLINK_DIR/gzip --stdout file | zstd -t ; test -f file
28+
if $(command -v $ZSTD_SYMLINK_DIR/gzip); then
29+
$ZSTD_SYMLINK_DIR/gzip -c file | zstd -t ; test -f file
30+
$ZSTD_SYMLINK_DIR/gzip --stdout file | zstd -t ; test -f file
31+
fi
3032

3133
# Test --rm
3234
cp file file-rm

tests/cli-tests/compression/gzip-compat.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ set -e
66
# set -v
77

88
# Test gzip specific compression option
9-
$ZSTD_SYMLINK_DIR/gzip --fast file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
10-
$ZSTD_SYMLINK_DIR/gzip --best file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
9+
if $(command -v $ZSTD_SYMLINK_DIR/gzip); then
10+
$ZSTD_SYMLINK_DIR/gzip --fast file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
11+
$ZSTD_SYMLINK_DIR/gzip --best file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
1112

12-
# Test -n / --no-name: do not embed original filename in archive
13-
$ZSTD_SYMLINK_DIR/gzip -n file ; grep -qv file file.gz ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
14-
$ZSTD_SYMLINK_DIR/gzip --no-name file ; grep -qv file file.gz ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
15-
$ZSTD_SYMLINK_DIR/gzip -c --no-name file | grep -qv file
13+
# Test -n / --no-name: do not embed original filename in archive
14+
$ZSTD_SYMLINK_DIR/gzip -n file ; grep -qv file file.gz ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
15+
$ZSTD_SYMLINK_DIR/gzip --no-name file ; grep -qv file file.gz ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
16+
$ZSTD_SYMLINK_DIR/gzip -c --no-name file | grep -qv file
17+
fi

tests/cli-tests/compression/window-resize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
datagen -g1G > file
3-
zstd --long=31 -1 --single-thread --no-content-size -f file
3+
zstd --long=30 -1 --single-thread --no-content-size -f file
44
zstd -l -v file.zst
55

66
# We want to ignore stderr (its outputting "*** zstd command line interface

0 commit comments

Comments
 (0)