tests: abuild: test show version

This commit is contained in:
Natanael Copa 2022-06-15 13:34:54 +02:00
parent f69cbe8b96
commit 4da872b8c9
1 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,8 @@
. $(atf_get_srcdir)/test_env.sh
init_tests \
abuild_help \
abuild_invalid_opt
abuild_invalid_opt \
abuild_version
DATADIR=$(atf_get_srcdir)/testdata
export ABUILD_SHAREDIR=$(atf_get_srcdir)/..
@ -19,3 +20,10 @@ abuild_invalid_opt_body() {
-e match:"usage:" \
abuild -@
}
abuild_version_body() {
atf_check -s exit:0 \
-o match:"abuild [0-9]+\.[0-9]+" \
abuild -V
}