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
|
2022-10-08 05:14:20 +02:00
|
|
|
Describe 'python3:'
|
|
|
|
It 'is available'
|
|
|
|
When run python3 --help
|
|
|
|
The output should include 'python3'
|
|
|
|
The status should be success
|
|
|
|
The stderr should equal ""
|
|
|
|
End
|
|
|
|
End
|
2022-05-13 19:40:16 +02:00
|
|
|
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
|
2022-10-08 05:14:20 +02:00
|
|
|
The output should include 'usage:'
|
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 '--version:'
|
2022-05-13 19:40:16 +02:00
|
|
|
It 'prints version'
|
|
|
|
When run dpgpid --version
|
2022-10-08 05:14:20 +02:00
|
|
|
The output should include 'v0.1.0'
|
2022-05-13 19:40:16 +02:00
|
|
|
The status should be success
|
|
|
|
The stderr should equal ""
|
|
|
|
End
|
|
|
|
End
|
|
|
|
End
|