aboutsummaryrefslogtreecommitdiff
path: root/tests/test-extract-with-vars-and-apply.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-extract-with-vars-and-apply.sh')
-rw-r--r--tests/test-extract-with-vars-and-apply.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test-extract-with-vars-and-apply.sh b/tests/test-extract-with-vars-and-apply.sh
new file mode 100644
index 0000000..e7e176b
--- /dev/null
+++ b/tests/test-extract-with-vars-and-apply.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+wai=$(dirname $(readlink -f $0))
+source "${wai}/include.sh"
+tmp=$(mktemp)
+
+##### Test extract theme on a config file then apply it
+$exec extract ${data}/config-with-vars > $tmp
+$exec apply -d $tmp ${data}/config
+rm $tmp
+