mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 15:02:59 +00:00
22 lines
352 B
Plaintext
22 lines
352 B
Plaintext
|
#!/usr/bin/env atf-sh
|
||
|
|
||
|
. $(atf_get_srcdir)/test_env.sh
|
||
|
init_tests \
|
||
|
abuild_help \
|
||
|
abuild_invalid_opt
|
||
|
|
||
|
DATADIR=$(atf_get_srcdir)/testdata
|
||
|
export ABUILD_SHAREDIR=$(atf_get_srcdir)/..
|
||
|
|
||
|
abuild_help_body() {
|
||
|
atf_check -s exit:0 \
|
||
|
-o match:"usage:" \
|
||
|
abuild -h
|
||
|
}
|
||
|
|
||
|
abuild_invalid_opt_body() {
|
||
|
atf_check -s exit:1 \
|
||
|
-e match:"usage:" \
|
||
|
abuild -@
|
||
|
}
|