[Armadeus-commitlog] armadeus branch, master, updated. armadeus-4.1-472-gc1cd516
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2012-08-07 15:47:13
|
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 c1cd516221ef138e1cc661657ea3eb2b761aea80 (commit)
from b5b6b5bb9c5332139cd988ae718468fa78c799e6 (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 c1cd516221ef138e1cc661657ea3eb2b761aea80
Author: Julien Boibessot <jul...@ar...>
Date: Tue Aug 7 17:46:39 2012 +0200
[TEST] Fixes test_backlight.sh for backlight drivers with max value < 255
-----------------------------------------------------------------------
Summary of changes:
target/test/test_backlight.sh | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
mode change 100755 => 100644 target/test/test_backlight.sh
diff --git a/target/test/test_backlight.sh b/target/test/test_backlight.sh
old mode 100755
new mode 100644
index 51f3f36..6ddbd99
--- a/target/test/test_backlight.sh
+++ b/target/test/test_backlight.sh
@@ -3,7 +3,7 @@
#
# Script to test Armadeus Software release
#
-# Copyright (C) 2008-2011 The Armadeus Project - ARMadeus Systems
+# Copyright (C) 2008-2012 The Armadeus Project - Armadeus Systems
#
# 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
@@ -44,11 +44,12 @@ test_backlight()
exit_failed
fi
current=`cat $SYS_DIR/actual_brightness`
- echo "Current brightness level: $current / 256"
+ max_bright=`cat $SYS_DIR/max_brightness`
+ echo "Current brightness level: $current / $max_bright"
echo 50 > $SYS_DIR/brightness
ask_user "Backlight set to MIDDLE, press ENTER"
- echo 255 > $SYS_DIR/brightness
+ echo $max_bright > $SYS_DIR/brightness
ask_user "Backlight set to MAX, press ENTER"
echo 0 > $SYS_DIR/brightness
ask_user "Backlight set to MIN, press ENTER"
@@ -56,8 +57,11 @@ test_backlight()
ask_user "I will now loop through brightness, press ENTER when ready"
for loop in `seq 1 2 150`; do
- usleep 100000
- echo $loop > $SYS_DIR/brightness
+ if [ "$loop" -lt "$max_bright" ]; then
+ usleep 100000
+ echo $loop > $SYS_DIR/brightness
+ echo -n "."
+ fi
done
echo $current > $SYS_DIR/brightness
ask_user "Did the test succeed ? (y/N)"
hooks/post-receive
--
armadeus
|