aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts
diff options
context:
space:
mode:
authorReto Buerki <reet@codelabs.ch>2012-12-07 12:31:11 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 16:54:53 +0100
commit8cb4628ff95bf2afbe10668f6725cc2265a292a9 (patch)
treee45a35912f070afb112c455bbf34fee7a87b51c0 /testing/scripts
parent1102a8c1cc90bf7a5324762cf729b7ac6b2875ce (diff)
downloadstrongswan-8cb4628ff95bf2afbe10668f6725cc2265a292a9.tar.bz2
strongswan-8cb4628ff95bf2afbe10668f6725cc2265a292a9.tar.xz
Use log_action function in do-tests script
Diffstat (limited to 'testing/scripts')
-rwxr-xr-xtesting/scripts/function.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/scripts/function.sh b/testing/scripts/function.sh
index d9f2054ef..b510d755c 100755
--- a/testing/scripts/function.sh
+++ b/testing/scripts/function.sh
@@ -55,6 +55,20 @@ execute_chroot()
execute "chroot $LOOPDIR $@"
}
+# write green status message to console
+# $1 - msg
+echo_ok()
+{
+ echo -e "${GREEN}$1${NORMAL}"
+}
+
+# write red status message to console
+# $1 - msg
+echo_failed()
+{
+ echo -e "${RED}$1${NORMAL}"
+}
+
function cecho {
echo -e "\033[1;31m$1\033[0m"
}