aboutsummaryrefslogtreecommitdiff
path: root/tests
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup.sh12
-rwxr-xr-xtests/t0107-snapshot.sh8
2 files changed, 8 insertions, 12 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index 8db810f..5879348 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -80,17 +80,13 @@ mkrepo() {
git commit -m "commit $n"
n=$(expr $n + 1)
done
- case "$3" in
- testplus)
+ if test "$3" = "testplus"
+ then
echo "hello" >a+b
git add a+b
git commit -m "add a+b"
git branch "1+2"
- ;;
- commit-graph)
- git commit-graph write
- ;;
- esac
+ fi
)
}
@@ -99,7 +95,7 @@ setup_repos()
rm -rf cache
mkdir -p cache
mkrepo repos/foo 5 >/dev/null
- mkrepo repos/bar 50 commit-graph >/dev/null
+ mkrepo repos/bar 50 >/dev/null
mkrepo repos/foo+bar 10 testplus >/dev/null
mkrepo "repos/with space" 2 >/dev/null
mkrepo repos/filter 5 testplus >/dev/null
diff --git a/tests/t0107-snapshot.sh b/tests/t0107-snapshot.sh
index 0811ec4..89b9159 100755
--- a/tests/t0107-snapshot.sh
+++ b/tests/t0107-snapshot.sh
@@ -25,7 +25,7 @@ test_expect_success 'verify gzip format' '
test_expect_success 'untar' '
rm -rf master &&
- gzip -dc master.tar.gz | tar -xf -
+ tar -xzf master.tar.gz
'
test_expect_success 'count files' '
@@ -66,7 +66,7 @@ test_expect_success LZIP 'verify lzip format' '
test_expect_success LZIP 'untar' '
rm -rf master &&
- lzip -dc master.tar.lz | tar -xf -
+ tar --lzip -xf master.tar.lz
'
test_expect_success LZIP 'count files' '
@@ -107,7 +107,7 @@ test_expect_success XZ 'verify xz format' '
test_expect_success XZ 'untar' '
rm -rf master &&
- xz -dc master.tar.xz | tar -xf -
+ tar --xz -xf master.tar.xz
'
test_expect_success XZ 'count files' '
@@ -148,7 +148,7 @@ test_expect_success ZSTD 'verify zstd format' '
test_expect_success ZSTD 'untar' '
rm -rf master &&
- zstd -dc master.tar.zst | tar -xf -
+ tar --zstd -xf master.tar.zst
'
test_expect_success ZSTD 'count files' '