Skip to content

Commit 6fa56df

Browse files
committed
test: update fixture
#29
1 parent f13b802 commit 6fa56df

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

Diff for: test/fixtures/gen.bash

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/bin/bash
22

3+
# set -xe
34

45
cd "$(dirname "$0")" || exit 1
56

67
create_tar() {
78
local format=$1
89
local ext=$2
910
local options=$3
11+
local exclude=$4
1012
tar $options -cf "out/${format}.tar" -C in .
1113
if [[ $? -eq 0 ]]; then
1214
echo "Created: out/${format}.tar"
@@ -15,18 +17,18 @@ create_tar() {
1517
fi
1618
}
1719

20+
# Cleanup
21+
22+
rm out/*.tar
23+
1824
# V7 (Original TAR format)
19-
create_tar "v7" "tar" "--format=v7"
25+
create_tar "v7" "tar" "--format=v7" "long"
2026

2127
# USTAR (POSIX 1988)
22-
create_tar "ustar" "tar" "--format=ustar"
28+
create_tar "ustar" "tar" "--format=ustar" "long"
2329

2430
# GNU TAR (Linux standard)
25-
create_tar "gnu" "tar" "--format=gnu"
31+
create_tar "gnu" "tar" "--format=gnu" ""
2632

2733
# PAX TAR (POSIX 2001)
28-
create_tar "pax" "tar" "--format=pax"
29-
30-
# STAR TAR (Schily TAR - not always available, fallback to pax)
31-
create_tar "star" "tar" "--format=star"
32-
34+
create_tar "pax" "tar" "--format=pax" ""

Diff for: test/fixtures/out/gnu.tar

0 Bytes
Binary file not shown.

Diff for: test/fixtures/out/pax.tar

0 Bytes
Binary file not shown.

Diff for: test/fixtures/out/ustar.tar

0 Bytes
Binary file not shown.

Diff for: test/fixtures/out/v7.tar

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)