git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / tests / cli-tests / basic / memlimit.sh
1 #!/bin/sh
2
3 echo "some data" > file
4
5 println "+ zstd --memory=32LB file"
6 zstd --memory=32LB file && die "Should not allow bogus suffix"
7 println "+ zstd --memory=32LiB file"
8 zstd --memory=32LiB file && die "Should not allow bogus suffix"
9 println "+ zstd --memory=32A file"
10 zstd --memory=32A file && die "Should not allow bogus suffix"
11 println "+ zstd --memory=32r82347dn83 file"
12 zstd --memory=32r82347dn83 file && die "Should not allow bogus suffix"
13 println "+ zstd --memory=32asbdf file"
14 zstd --memory=32asbdf file && die "Should not allow bogus suffix"
15 println "+ zstd --memory=hello file"
16 zstd --memory=hello file && die "Should not allow non-numeric parameter"
17 println "+ zstd --memory=1 file"
18 zstd -q --memory=1 file && die "Should allow numeric parameter without suffix"
19 rm file.zst
20 println "+ zstd --memory=1K file"
21 zstd -q --memory=1K file && die "Should allow numeric parameter with expected suffix"
22 rm file.zst
23 println "+ zstd --memory=1KB file"
24 zstd -q --memory=1KB file && die "Should allow numeric parameter with expected suffix"
25 rm file.zst
26 println "+ zstd --memory=1KiB file"
27 zstd -q --memory=1KiB file && die "Should allow numeric parameter with expected suffix"
28 rm file.zst
29 println "+ zstd --memory=1M file"
30 zstd -q --memory=1M file && die "Should allow numeric parameter with expected suffix"
31 rm file.zst
32 println "+ zstd --memory=1MB file"
33 zstd -q --memory=1MB file && die "Should allow numeric parameter with expected suffix"
34 rm file.zst
35 println "+ zstd --memory=1MiB file"
36 zstd -q --memory=1MiB file && die "Should allow numeric parameter with expected suffix"
37 rm file.zst
38
39 rm file
40 exit 0