Skip to content

Commit 3f5d24a

Browse files
committed
sharness: add t0070-migration-many.sh
1 parent e56d034 commit 3f5d24a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

sharness/t0070-migration-many.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/sh
2+
3+
test_description="Migration to many different versions"
4+
5+
. lib/test-lib.sh
6+
7+
test_expect_success "start a docker container" '
8+
DOCID=$(start_docker)
9+
'
10+
11+
test_install_version "v0.3.7"
12+
13+
test_expect_success "'ipfs init' succeeds" '
14+
export IPFS_PATH=/root/.ipfs &&
15+
exec_docker "$DOCID" "IPFS_PATH=$IPFS_PATH BITS=2048 ipfs init" >actual 2>&1 ||
16+
test_fsh cat actual
17+
'
18+
19+
test_expect_success ".ipfs/ has been created" '
20+
exec_docker "$DOCID" "test -d /root/.ipfs && test -f /root/.ipfs/config"
21+
exec_docker "$DOCID" "test -d /root/.ipfs/datastore && test -d /root/.ipfs/blocks"
22+
'
23+
24+
test_repo_version "0.3.7"
25+
26+
test_install_version "v0.3.10"
27+
test_repo_version "0.3.10"
28+
29+
test_install_version "v0.4.0-dev"
30+
test_repo_version "0.4.0"
31+
32+
test_install_version "v0.3.8"
33+
test_repo_version "0.3.8"
34+
35+
test_install_version "v0.3.10"
36+
test_repo_version "0.3.10"
37+
38+
test_expect_success "stop docker container" '
39+
stop_docker "$DOCID"
40+
'
41+
42+
test_done

0 commit comments

Comments
 (0)