diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-19 14:29:10 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-19 14:29:10 +0200 |
commit | e986bfef967427c07451d2c20b83f516bb03db02 (patch) | |
tree | 9637e332ca7fc17b421563ce73983df025748e01 /tests | |
parent | 153617d85ed7b83957b8c0368bc885f1db914a2c (diff) | |
download | alpine-conf-e986bfef967427c07451d2c20b83f516bb03db02.zip |
setup-devd: add more tests
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/setup_devd_test | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/tests/setup_devd_test b/tests/setup_devd_test index 60e84b3..c7ce246 100755 --- a/tests/setup_devd_test +++ b/tests/setup_devd_test @@ -2,9 +2,43 @@ . $(atf_get_srcdir)/test_env.sh init_tests \ - setup_devd_usage + setup_devd_usage \ + setup_devd_mdev \ + setup_devd_mdevd \ + setup_devd_udev setup_devd_usage_body() { test_usage setup-devd } +setup_devd_mdev_body() { + init_env + rc-service mdev start + atf_check -s exit:0 \ + -o empty \ + -e empty \ + setup-devd mdev +} + +setup_devd_mdevd_body() { + init_env + rc-service mdev start + atf_check -s exit:0 \ + -o match:"apk add.*mdevd" \ + -o match:"Starting mdevd" \ + -e empty \ + setup-devd mdevd +} + +setup_devd_udev_body() { + init_env + rc-service mdev start + atf_check -s exit:0 \ + -o match:"apk add.*eudev" \ + -o match:"Starting udev" \ + -o match:"Starting udev-trigger" \ + -o match:"Starting udev-settle" \ + -o match:"Starting udev-postmount" \ + -e empty \ + setup-devd udev +} |