aboutsummaryrefslogtreecommitdiff
path: root/tests/test-simple-apply.sh
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2019-10-08 21:59:31 -0400
committerLoic Guegan <manzerbredes@mailbox.org>2019-10-08 21:59:31 -0400
commit5ca2e63ea66095fbe64cdc441f6eec663fb28bd4 (patch)
tree52788dca42469677fdde10d70391db2ff07aa9e5 /tests/test-simple-apply.sh
parent6ba370ea542c6d3ca06cabcf0d3295a2f5ec18b4 (diff)
Add simple integration test framework
Diffstat (limited to 'tests/test-simple-apply.sh')
-rw-r--r--tests/test-simple-apply.sh17
1 files changed, 17 insertions, 0 deletions
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