blob: 0cd5cba53807eb133c769f074a2acc7afd15a599 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# file : tests/lz4/testscript
# license : MIT; see accompanying LICENSE file
+touch zero
+cat <:'1' >=one
+cat <'The quick brown fox jumps over the lazy dog.' >=small
+cat <<EOI >=1kb
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over
the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox
jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The
quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox
jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The
quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox
jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The
quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox
jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The
quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
lazy dog. The quick brown fox jumps over th
EOI
+cat 1kb 1kb 1kb 1kb 1kb 1kb 1kb 1kb >=8kb
+cat 8kb 8kb 8kb 8kb 8kb 8kb 8kb 8kb >=64kb
+cat 64kb 64kb 64kb 64kb 64kb 64kb 64kb 64kb >=512kb
: rt-zero
:
$* -c ../zero zero.lz4 &zero.lz4;
$* -d zero.lz4 zero &zero;
diff ../zero zero
: rt-one
:
$* -c ../one one.lz4 &one.lz4;
$* -d one.lz4 one &one;
diff ../one one
: rt-small
:
$* -c ../small small.lz4 &small.lz4;
$* -d small.lz4 small &small;
diff ../small small
: rt-1kb
:
$* -c ../1kb 1kb.lz4 &1kb.lz4;
$* -d 1kb.lz4 1kb &1kb;
diff ../1kb 1kb
: rt-8kb
:
$* -c ../8kb 8kb.lz4 &8kb.lz4;
$* -d 8kb.lz4 8kb &8kb;
diff ../8kb 8kb
: rt-64kb
:
$* -c ../64kb 64kb.lz4 &64kb.lz4;
$* -d 64kb.lz4 64kb &64kb;
diff ../64kb 64kb
: rt-512kb
:
$* -c ../512kb 512kb.lz4 &512kb.lz4;
$* -d 512kb.lz4 512kb &512kb;
diff ../512kb 512kb
: truncated-header6
:
$* -d $src_base/truncated-header6.lz4 out &out 2>>EOE !=0
incomplete frame header
EOE
: truncated-header12
:
$* -d $src_base/truncated-header12.lz4 out &out 2>>EOE !=0
incomplete frame header
EOE
: truncated-content
:
$* -d $src_base/truncated-content.lz4 out &out 2>>EOE !=0
incomplete compressed content
EOE
|