Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c264f74

Browse files
committedOct 3, 2016
sharness: add t0010-basic-commands.sh
1 parent 1b6fca8 commit c264f74

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
 

‎test/sharness/t0010-basic-commands.sh

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
#
3+
# Copyright (c) 2014 Christian Couder
4+
# MIT Licensed; see the LICENSE file in this repository.
5+
#
6+
7+
test_description="Test installation and some basic commands"
8+
9+
. lib/test-lib.sh
10+
11+
test_expect_success "current dir is writable" '
12+
echo "It works!" >test.txt
13+
'
14+
15+
test_expect_success "ipfs version succeeds" '
16+
ipfs version >version.txt
17+
'
18+
19+
test_expect_success "ipfs version shows js-ipfs" '
20+
grep "js-ipfs" version.txt >/dev/null ||
21+
test_fsh cat version.txt
22+
'
23+
24+
test_expect_success "ipfs version output looks good" '
25+
egrep "^js-ipfs version: [0-9]+\.[0-9]+\.[0-9]" version.txt >/dev/null ||
26+
test_fsh cat version.txt
27+
'
28+
29+
test_done

0 commit comments

Comments
 (0)
This repository has been archived.