[Armadeus-commitlog] armadeus branch, master, updated. release-3.2-354-g189e572
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2010-05-18 15:27:10
|
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 189e5720d117e7f9f2d890653d77aca69345d096 (commit)
from aea3f44ce82c03084f84f05c76a84d5fcadaac71 (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 189e5720d117e7f9f2d890653d77aca69345d096
Author: Julien Boibessot <jul...@ar...>
Date: Tue May 18 17:05:27 2010 +0200
[TEST] Improves test_backlight.sh
-----------------------------------------------------------------------
Summary of changes:
target/test/test_backlight.sh | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/target/test/test_backlight.sh b/target/test/test_backlight.sh
index a995266..3699f32 100755
--- 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 The Armadeus Project
+# Copyright (C) 2008-2010 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
@@ -12,7 +12,6 @@
#
source ./test_helpers.sh
-source ./test_env.sh
SYS_DIR=/sys/class/backlight/imx-bl
@@ -20,6 +19,9 @@ test_backlight()
{
show_test_banner "Backlight"
echo 0 > /sys/class/graphics/fb0/blank # Leave FB sleep mode
+ # Paint it white:
+ clear > /dev/tty1
+ cat /dev/zero | tr '\0' '\377' | dd of=/dev/fb0 bs=1K count=750 2>/dev/null
modprobe imx_bl
if [ "$?" != 0 ]; then
@@ -30,10 +32,20 @@ test_backlight()
echo "Current brightness level: $current / 256"
echo 50 > $SYS_DIR/brightness
- ask_user "Backlight set to LOW, if OK say y"
- echo 200 > $SYS_DIR/brightness
- ask_user "Backlight set to HIGH, if OK say y"
- if [ "$response" == "y" ]; then
+ ask_user "Backlight set to MIDDLE, press ENTER"
+ echo 255 > $SYS_DIR/brightness
+ ask_user "Backlight set to MAX, press ENTER"
+ echo 0 > $SYS_DIR/brightness
+ ask_user "Backlight set to MIN, press ENTER"
+
+ 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
+ done
+ echo $current > $SYS_DIR/brightness
+ ask_user "Did the test succeed ? (y/N)"
+ if [ "$response" == "y" ] || [ "$response" == "yes" ]; then
echo_test_ok
exit 0
fi
hooks/post-receive
--
armadeus
|