dpgpid/specs/dpgpid_spec.sh

51 lines
993 B
Bash
Raw Normal View History

2022-05-13 19:40:16 +02:00
#shellcheck shell=sh
set -eu
dpgpid() {
2022-05-17 03:47:31 +02:00
if [ -x ./dpgpid ]; then
./dpgpid "$@"
elif [ -x ./bin/dpgpid ]; then
./bin/dpgpid "$@"
else
dpgpid "$@"
fi
2022-05-13 19:40:16 +02:00
}
Describe 'Dependency'
2022-05-21 03:37:51 +02:00
Describe 'gpg:'
2022-05-13 19:40:16 +02:00
It 'is available'
2022-05-21 03:37:51 +02:00
When run gpg --help
The output should include "gpg"
2022-05-13 19:40:16 +02:00
The status should be success
The stderr should equal ""
End
End
2022-05-21 03:37:51 +02:00
Describe 'ipfs:'
2022-05-13 19:40:16 +02:00
It 'is available'
2022-05-21 03:37:51 +02:00
When run ipfs --help
The output should include "ipfs"
2022-05-13 19:40:16 +02:00
The status should be success
The stderr should equal ""
End
End
End
Describe 'dpgpid'
2022-05-21 03:37:51 +02:00
Describe '--help:'
2022-05-13 19:40:16 +02:00
It 'prints help'
When run dpgpid --help
The output should include 'Usage:'
The status should be success
The stderr should equal ""
End
End
2022-05-21 03:37:51 +02:00
Describe '--version:'
2022-05-13 19:40:16 +02:00
It 'prints version'
When run dpgpid --version
The output should include 'v0.0.1'
The status should be success
The stderr should equal ""
End
End
End