From 5ca2e63ea66095fbe64cdc441f6eec663fb28bd4 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 8 Oct 2019 21:59:31 -0400 Subject: Add simple integration test framework --- tests/test-simple-apply.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/test-simple-apply.sh (limited to 'tests/test-simple-apply.sh') diff --git a/tests/test-simple-apply.sh b/tests/test-simple-apply.sh new file mode 100644 index 0000000..e5ab960 --- /dev/null +++ b/tests/test-simple-apply.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +wai=$(dirname $(readlink -f $0)) +source "${wai}/include.sh" + +##### Load config file +config_file=$(load ${data}/config) + +##### Test apply on theme with no variables +$exec apply ${data}/google ${config_file} +cat $config_file +##### Test apply on theme with variables +$exec apply ${data}/seti ${config_file} +cat $config_file + +##### Clear temporary file +rm $config_file -- cgit v1.2.3