File: t0010-basics.sh

package info (click to toggle)
golang-github-multiformats-go-multihash 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 376 kB
  • sloc: sh: 138; makefile: 39
file content (25 lines) | stat: -rwxr-xr-x 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# Copyright (c) 2015 Christian Couder
# MIT Licensed; see the LICENSE file in this repository.
#

test_description="Basic tests"

. lib/test-lib.sh

test_expect_success "current dir is writable" '
	echo "It works!" >test.txt
'

test_expect_success "multihash is available" '
	type multihash
'

test_expect_success "multihash help output looks good" '
	multihash -h 2>help.txt &&
	egrep -i "^usage:" help.txt >/dev/null &&
	egrep -i "multihash .*options.*file" help.txt >/dev/null
'

test_done