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/setup.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/setup.sh (limited to 'test/setup.sh') diff --git a/test/setup.sh b/test/setup.sh new file mode 100644 index 0000000..636c7d6 --- /dev/null +++ b/test/setup.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +mkdir -p "$BOSUN_DIR/app-foo/package.use" +mkdir -p "$BOSUN_DIR/service-bar/package.use" +mkdir -p "$BOSUN_DIR/service-bar/package.accept_keywords" +mkdir -p "$BOSUN_DIR/host-baz" + +touch "$BOSUN_DIR/app-foo/package.use/30-app-foo" +touch "$BOSUN_DIR/service-bar/package.use/20-service-bar" +touch "$BOSUN_DIR/service-bar/package.accept_keywords/20-service-bar" +touch "$BOSUN_DIR/host-baz/make.conf" + +mkdir -p "$BOSUN_DIR/../package.use" +ln -s ../stow/app-foo/package.use/30-app-foo "$BOSUN_DIR/../package.use/30-app-foo" +ln -s ../stow/service-bar/package.use/20-service-bar "$BOSUN_DIR/../package.use/20-service-bar" +ln -s stow/service-bar/package.accept_keywords "$BOSUN_DIR/../package.accept_keywords" -- cgit v1.2.3-2-gb3c3