[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.2-229-g3138c74
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2013-04-22 19:02:25
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 3138c748a90ec4d2c0f5792c042286f4f762f064 (commit)
via 2904fdb9c0c4a5f196b284adc680f03b7e9957e3 (commit)
from 7fc607673065037f7fdb7a9080d7f72a795e0255 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3138c748a90ec4d2c0f5792c042286f4f762f064
Author: Julien Boibessot <jul...@ar...>
Date: Mon Apr 22 21:00:03 2013 +0200
[TEST] Add test helpers to echo in red/green/bold
commit 2904fdb9c0c4a5f196b284adc680f03b7e9957e3
Author: Julien Boibessot <jul...@ar...>
Date: Mon Apr 22 20:59:18 2013 +0200
[TEST] Fixes call to media_perf in test_release
-----------------------------------------------------------------------
Summary of changes:
target/test/test_helpers.sh | 28 ++++++++++++++++++++++++----
target/test/test_release.sh | 2 +-
2 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/target/test/test_helpers.sh b/target/test/test_helpers.sh
index a773ff9..8065d77 100755
--- a/target/test/test_helpers.sh
+++ b/target/test/test_helpers.sh
@@ -3,7 +3,7 @@
#
# Helpers for Armadeus Software release's test scripts
#
-# Copyright (C) 2008-2010 The Armadeus Project
+# Copyright (C) 2008-2013 The Armadeus Project
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,6 +20,26 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+GREEN="\033[1;32m"
+NORMAL="\033[0;39m"
+RED="\033[1;31m"
+BOLD="\033[1m"
+
+echo_red()
+{
+ echo -n -e "$RED""$1""$NORMAL"
+}
+
+echo_green()
+{
+ echo -n -e "$GREEN""$1""$NORMAL"
+}
+
+echo_bold()
+{
+ echo -n -e "$BOLD""$1""$NORMAL"
+}
+
debug()
{
if [ "$DEBUG" == "True" ]; then
@@ -100,17 +120,17 @@ ask_user_choice()
show_test_banner()
{
- echo -e "\033[1m******** Testing $1 ********\033[0m"
+ echo_bold "******** Testing $1 ********"; echo
}
echo_test_ok()
{
- echo "Test OK !"
+ echo_green "Test OK !"; echo
}
echo_test_failed()
{
- echo "Test FAILED !"
+ echo_red "Test FAILED !"; echo
}
exit_failed()
diff --git a/target/test/test_release.sh b/target/test/test_release.sh
index 1c897ef..ae7e9a7 100755
--- a/target/test/test_release.sh
+++ b/target/test/test_release.sh
@@ -66,7 +66,7 @@ $THIS_DIR/test_gpio.sh
echo
$THIS_DIR/test_pwm.sh
echo
-$THIS_DIR/media_perf.sh speed
+$THIS_DIR/media_perf.sh --mode=speed
rm /tmp/data.bin
echo
$THIS_DIR/test_wifi.sh
hooks/post-receive
--
armadeus
|