File: gen-testdata.sh

package info (click to toggle)
podman 5.4.2%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,124 kB
  • sloc: sh: 6,119; perl: 2,710; python: 2,258; ansic: 1,556; makefile: 1,022; xml: 121; ruby: 42; awk: 12; csh: 8
file content (51 lines) | stat: -rwxr-xr-x 1,374 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

echo "zstd" > hellozstd-withzeros && \
truncate -c -s 10 hellozstd-withzeros && \
zstd -f --sparse hellozstd-withzeros -o sample-withzeros.zst && \
rm hellozstd-withzeros

echo "zstd" > hellozstd && \
zstd -f --sparse hellozstd -o sample.zst && \
rm hellozstd

echo "gzip" > hellogzip-withzeros && \
truncate -c -s 10 hellogzip-withzeros && \
gzip -f -c hellogzip-withzeros > sample-withzeros.gz && \
rm hellogzip-withzeros

echo "gzip" > hellogzip && \
gzip -f -c hellogzip > sample.gz && \
rm hellogzip

echo "bzip2" > hellobzip2-withzeros && \
truncate -c -s 10 hellobzip2-withzeros && \
bzip2 -f -c hellobzip2-withzeros > sample-withzeros.bz2 && \
rm hellobzip2-withzeros

echo "bzip2" > hellobzip2 && \
bzip2 -f -c hellobzip2 > sample.bz2 && \
rm hellobzip2

echo "uncompressed" > sample-withzeros.uncompressed && \
truncate -c -s 20 sample-withzeros.uncompressed

echo "uncompressed" > sample.uncompressed

echo "xz" > helloxz-withzeros && \
truncate -c -s 10 helloxz-withzeros && \
xz -f -z -c helloxz-withzeros > sample-withzeros.xz && \
rm helloxz-withzeros

echo "xz" > helloxz && \
xz -f -z -c helloxz > sample.xz && \
rm helloxz

echo "zip" > hellozip-withzeros && \
truncate -c -s 10 hellozip-withzeros && \
zip sample-withzeros.zip hellozip-withzeros && \
rm hellozip-withzeros

echo "zip" > hellozip && \
zip sample.zip hellozip && \
rm hellozip