From b5564b6c65df806acb198eca3ee13d0c6e4577b1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 19 May 2022 14:36:27 +0200 Subject: tests: add test for setup-xorg-base --- tests/setup_xorg_base_test | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tests/setup_xorg_base_test diff --git a/tests/setup_xorg_base_test b/tests/setup_xorg_base_test new file mode 100755 index 0000000..b661035 --- /dev/null +++ b/tests/setup_xorg_base_test @@ -0,0 +1,22 @@ +#!/usr/bin/env atf-sh + +. $(atf_get_srcdir)/test_env.sh +init_tests \ + setup_xorg_base_usage \ + setup_xorg_base + +setup_xorg_base_usage_body() { + test_usage setup-xorg-base +} + +setup_xorg_base_body() { + init_env + mkdir -p etc/apk + echo "https://dl-cdn.alpinelinux.org/alpine/edge/main" > etc/apk/repositories + + atf_check -s exit:0 \ + -o match:"apk add.*xorg-server.*foobar" \ + -o match:"Starting udev" \ + -e empty \ + setup-xorg-base foobar +} -- cgit v1.2.3