From cfd6cc4e72e65ca8668f49c350cc68c907d4ad56 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Mon, 24 Sep 2018 20:23:55 +0200 Subject: [PATCH] add more tests --- tests-ng/actions-args.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests-ng/actions-args.sh b/tests-ng/actions-args.sh index 106bd8e..a02eda1 100755 --- a/tests-ng/actions-args.sh +++ b/tests-ng/actions-args.sh @@ -64,6 +64,7 @@ actions: postaction: echo '{0} {1} {2}' > ${tmpa}/post nakedaction: echo '{0}' > ${tmpa}/naked emptyaction: echo 'empty' > ${tmpa}/empty + tgtaction: echo 'tgt' > ${tmpa}/{0} config: backup: true create: true @@ -75,8 +76,9 @@ dotfiles: actions: - preaction test1 test2 - postaction test3 test4 test5 - - nakedaction test6 + - nakedaction "test6 something" - emptyaction + - tgtaction tgt profiles: p1: dotfiles: @@ -101,11 +103,14 @@ grep test4 ${tmpa}/post >/dev/null grep test5 ${tmpa}/post >/dev/null [ ! -e ${tmpa}/naked ] && echo "naked arg action not found" && exit 1 -grep test6 ${tmpa}/naked >/dev/null +grep "test6 something" ${tmpa}/naked >/dev/null [ ! -e ${tmpa}/empty ] && echo "empty arg action not found" && exit 1 grep empty ${tmpa}/empty >/dev/null +[ ! -e ${tmpa}/tgt ] && echo "tgt arg action not found" && exit 1 +grep tgt ${tmpa}/tgt >/dev/null + ## CLEANING rm -rf ${tmps} ${tmpd} ${tmpa}