[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.0-70-gb2f35a5
Brought to you by:
sszy
|
From: jorasse <jo...@us...> - 2012-10-04 15:05: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 b2f35a5763cc220ff59844877d1140012041b64d (commit)
from ff186dd6969eba5d3500984b685ec063971f4d53 (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 b2f35a5763cc220ff59844877d1140012041b64d
Author: Eric Jarrige <eri...@ar...>
Date: Thu Oct 4 17:08:27 2012 +0200
[TEST] apf28: update linux testsuite
-----------------------------------------------------------------------
Summary of changes:
target/test/test_audio.sh | 1 +
target/test/test_ethernet.sh | 3 +--
target/test/test_pwm.sh | 8 ++++++++
target/test/test_rs232.sh | 11 +++++++----
target/test/test_usb_device.sh | 2 +-
target/test/test_usb_host.sh | 4 ++++
6 files changed, 22 insertions(+), 7 deletions(-)
mode change 100644 => 100755 target/test/test_backlight.sh
mode change 100644 => 100755 target/test/test_helpers.sh
diff --git a/target/test/test_audio.sh b/target/test/test_audio.sh
index c40f6f3..7e2655c 100755
--- a/target/test/test_audio.sh
+++ b/target/test/test_audio.sh
@@ -32,6 +32,7 @@ test_init()
amixer cset numid=5 116,116 # Headphone Playback Volume
else
echo "Platform not supported by this test"
+ exit 0
fi
}
diff --git a/target/test/test_backlight.sh b/target/test/test_backlight.sh
old mode 100644
new mode 100755
diff --git a/target/test/test_ethernet.sh b/target/test/test_ethernet.sh
index 87185ca..8ef0515 100755
--- a/target/test/test_ethernet.sh
+++ b/target/test/test_ethernet.sh
@@ -67,9 +67,8 @@ test_ethernet()
echo " Uploading"
time tftp -p -l $TEMP_FILE -r `basename $TEMP_FILE` $SERVER_IP 2>/tmp/writetime
sleep 3 # For TFTP server on windoze
- if [ "$?" == 0 ]; then
+ if [ "$?" != 0 ]; then
rm $TEMP_FILE
- else
exit_failed
fi
echo " Downloading"
diff --git a/target/test/test_helpers.sh b/target/test/test_helpers.sh
old mode 100644
new mode 100755
diff --git a/target/test/test_pwm.sh b/target/test/test_pwm.sh
index 4575c7f..8f8e628 100755
--- a/target/test/test_pwm.sh
+++ b/target/test/test_pwm.sh
@@ -33,6 +33,12 @@ load_driver()
echo "can't find /sys/ interface"
exit_failed
fi
+ elif [ "$1" == "APF28" ]; then
+ SYS_DIR="/sys/class/pwm/pwm4/"
+ if [ ! -d "$SYS_DIR" ]; then
+ echo "can't find /sys/ interface"
+ exit_failed
+ fi
else
echo "Platform not supported by this test"
exit 0
@@ -47,6 +53,8 @@ prepare_test()
ask_user "Please connect your oscilloscope probe to pin 4 of J22 connector (GND is on pin 6 or 40), then press ENTER when ready"
elif [ "$1" == "APF51" ]; then
ask_user "Please connect your oscilloscope probe to pin 6 of J35 (Extension) connector (GND is on pin 9 or 10), then press ENTER when ready\n (you can also watch i.MX LED; requires a custom built kernel)"
+ elif [ "$1" == "APF28" ]; then
+ ask_user "Please connect your oscilloscope probe to pin 26 of J10 connector (GND is on pin 32 or 34), then press ENTER when ready"
else
echo "Platform not supported by this test"
fi
diff --git a/target/test/test_rs232.sh b/target/test/test_rs232.sh
index 127fe11..074bc27 100755
--- a/target/test/test_rs232.sh
+++ b/target/test/test_rs232.sh
@@ -24,7 +24,7 @@ echo_jumper_help()
elif [ "$1" == "APF51" ]; then
echo " (Pin 2 & 3 of RS-232 connector)"
elif [ "$1" == "APF28" ]; then
- echo " (Pin ? & ? of ? connector)"
+ echo " (Pin 21 & 23 and 25 & 27 of j9 connector)"
else
echo "Platform not supported by this test"
fi
@@ -87,13 +87,16 @@ echo_available_ports()
}
show_test_banner "Serial ports"
-PORT="$1"
+PORTS="$1"
if [ "$1" == "" ]; then
echo "Please give the port number to test !"
execute_for_target echo_available_ports
read -p "> " PORT
- [ "$PORT" == "" ] && exit_failed
+ [ "$PORTS" == "" ] && exit_failed
fi
-test_serial_port $PORT
+for PORT in $PORTS; do
+ test_serial_port $PORT
+done
+
diff --git a/target/test/test_usb_device.sh b/target/test/test_usb_device.sh
index 870f25a..9ae468f 100755
--- a/target/test/test_usb_device.sh
+++ b/target/test/test_usb_device.sh
@@ -22,7 +22,7 @@ check_driver()
elif [ "$1" == "APF27" ]; then
echo "APF27 do not support USB device mode"
exit 0
- elif [ "$1" == "APF51" ]; then
+ elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ]; then
dmesg | grep "USB" | grep "Device"
STORAGE_DRIVER=g_mass_storage
else
diff --git a/target/test/test_usb_host.sh b/target/test/test_usb_host.sh
index 9a1ed06..87df2d3 100755
--- a/target/test/test_usb_host.sh
+++ b/target/test/test_usb_host.sh
@@ -75,6 +75,10 @@ test_usb_host()
wait_key_insertion "the"
check_usb_key
wait_key_removal
+
+ wait_key_insertion "the mini"
+ check_usb_key
+ wait_key_removal
else
wait_key_insertion "the UPPER"
check_usb_key
hooks/post-receive
--
armadeus
|