File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments