From 3bce19d12d93f1b27e7d2f2acbef0926417d5390 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Wed, 10 Mar 2021 17:09:13 +0100 Subject: Add a first draft of the test suite The introduction of a test suite makes future changes easier to troubleshoot and verify. Whilst this is only a first draft, it should be stable enough to be used in normal development and should cover the entirety of bosun's functionality. --- test/01-add.test | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/01-add.test (limited to 'test/01-add.test') diff --git a/test/01-add.test b/test/01-add.test new file mode 100644 index 0000000..b4d223f --- /dev/null +++ b/test/01-add.test @@ -0,0 +1,31 @@ +#!/bin/sh + +header "bosun add" + +assert success "add host-baz" "$BOSUN_CMD" add host-baz + +want < stow/host-baz/make.conf +./package.accept_keywords -> stow/service-bar/package.accept_keywords +./package.use/20-service-bar -> ../stow/service-bar/package.use/20-service-bar +./package.use/30-app-foo -> ../stow/app-foo/package.use/30-app-foo +EOF + +have_links +assert_output_matches "adds role 'host-baz'" + +want <