1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-12 11:53:31 +00:00

improve tests

This commit is contained in:
deadc0de6
2022-05-03 23:13:51 +02:00
committed by deadc0de
parent c31f8ffcd5
commit 3dfa53469e
26 changed files with 108 additions and 71 deletions

View File

@@ -82,7 +82,7 @@ variables:
gvar1: "global1"
gvar2: "global2"
dynvariables:
gdvar1: head -1 /proc/meminfo
gdvar1: head -1 ${cur}/helpers
gdvar2: "echo 'this is some test' | rev | tr ' ' ','"
gdvar3: ${scr}
dotfiles:
@@ -123,7 +123,7 @@ grep '^local1' ${tmpd}/abc >/dev/null
grep '^global2' ${tmpd}/abc >/dev/null
grep '^local2' ${tmpd}/abc >/dev/null
# test dynvariables
grep "^MemTotal" ${tmpd}/abc >/dev/null
grep "^# author: deadc0de6" ${tmpd}/abc >/dev/null
grep '^tset,emos,si,siht' ${tmpd}/abc >/dev/null
grep "^${TESTENV2}" ${tmpd}/abc > /dev/null
grep "^cba" ${tmpd}/abc >/dev/null