[Armadeus-commitlog] SF.net SVN: armadeus:[1254] trunk/target/test
Brought to you by:
sszy
|
From: <ar...@us...> - 2009-05-06 12:21:15
|
Revision: 1254
http://armadeus.svn.sourceforge.net/armadeus/?rev=1254&view=rev
Author: artemys
Date: 2009-05-06 12:16:40 +0000 (Wed, 06 May 2009)
Log Message:
-----------
[TEST] Updates some test scripts for APF9328
Modified Paths:
--------------
trunk/target/test/packages/test_imxregs.sh
trunk/target/test/packages/test_mplayer.sh
trunk/target/test/test_adc.sh
trunk/target/test/test_rs232.sh
trunk/target/test/test_sound.sh
trunk/target/test/test_touchscreen.sh
Modified: trunk/target/test/packages/test_imxregs.sh
===================================================================
--- trunk/target/test/packages/test_imxregs.sh 2009-05-04 09:53:36 UTC (rev 1253)
+++ trunk/target/test/packages/test_imxregs.sh 2009-05-06 12:16:40 UTC (rev 1254)
@@ -28,7 +28,7 @@
ID_REG="CID"
ID_VAL="0x2882101d"
else
- ID_REG="SDIR"
+ ID_REG="SIDR"
ID_VAL="0x00d4c01d"
fi
echo "$APF"
Modified: trunk/target/test/packages/test_mplayer.sh
===================================================================
--- trunk/target/test/packages/test_mplayer.sh 2009-05-04 09:53:36 UTC (rev 1253)
+++ trunk/target/test/packages/test_mplayer.sh 2009-05-06 12:16:40 UTC (rev 1254)
@@ -31,7 +31,7 @@
# Get video
echo "Downloading file from Internet"
# Suppose that network was correctly set before
- wget http://dl.free.fr/jVwLTYA1T -O $VIDEO_FILE_NAME
+ wget http://dl.free.fr/oBjrVd6n8 -O $VIDEO_FILE_NAME
# Launch it
$EXEC_NAME -nosound -fs $VIDEO_FILE_NAME
if [ "$?" == 0 ]; then
Modified: trunk/target/test/test_adc.sh
===================================================================
--- trunk/target/test/test_adc.sh 2009-05-04 09:53:36 UTC (rev 1253)
+++ trunk/target/test/test_adc.sh 2009-05-06 12:16:40 UTC (rev 1254)
@@ -19,18 +19,19 @@
{
show_test_banner "ADC"
- modprobe spi_imx
modprobe max1027
if [ "$?" == 0 ]; then
# Slow mode
let set=0x62; echo $set > /sys/bus/spi/devices/spi1.0/setup
- sleep 0.1
+ echo "WAIT" > /dev/null
let conv=0xf9; echo $conv > /sys/bus/spi/devices/spi1.0/conversion
- sleep 0.1
+ echo "WAIT" > /dev/null
temp=`cat /sys/bus/spi/devices/spi1.0/temp1_input`
if [ "$temp" != "0" ]; then
echo "Temp: $temp m°C"
echo_test_ok
+ else
+ exit_failed
fi
else
echo "Hardware not found !"
@@ -38,3 +39,4 @@
}
test_ADC
+
Modified: trunk/target/test/test_rs232.sh
===================================================================
--- trunk/target/test/test_rs232.sh 2009-05-04 09:53:36 UTC (rev 1253)
+++ trunk/target/test/test_rs232.sh 2009-05-06 12:16:40 UTC (rev 1254)
@@ -15,6 +15,16 @@
source ./test_env.sh
+echo_jumper_help_apf9328()
+{
+ echo " (Pin 1 & 3 of UART connector)"
+}
+
+echo_jumper_help_apf27()
+{
+ echo " (Pin X & X of XXXX connector)"
+}
+
test_serial_port()
{
show_test_banner "Serial port $1"
@@ -24,14 +34,19 @@
stty -F $SERIAL_DEVICE -echo
if [ "$?" == 0 ]; then
- ask_user "Connect loopback jumper and press <ENTER>"
+ echo -n "Connect loopback jumper"
+ execute_for_target echo_jumper_help_apf9328 echo_jumper_help_apf27
+ ask_user "and then press <ENTER>"
cat $SERIAL_DEVICE > $TEMP_FILE &
pid=$!
+ echo -n "."; sleep 1
echo "SERIAL PORT$1 IS WORKING !!" > $SERIAL_DEVICE
- sleep 1
+ echo -n "."; sleep 1; echo
grep WORKING $TEMP_FILE
if [ "$?" == 0 ]; then
echo_test_ok
+ else
+ exit_failed
fi
kill $pid
else
Modified: trunk/target/test/test_sound.sh
===================================================================
--- trunk/target/test/test_sound.sh 2009-05-04 09:53:36 UTC (rev 1253)
+++ trunk/target/test/test_sound.sh 2009-05-06 12:16:40 UTC (rev 1254)
@@ -19,7 +19,6 @@
{
show_test_banner "Sound / ALSA"
- modprobe spi_imx
modprobe snd-imx-alsa-tsc2102
if [ "$?" != 0 ]; then
exit_failed
Modified: trunk/target/test/test_touchscreen.sh
===================================================================
--- trunk/target/test/test_touchscreen.sh 2009-05-04 09:53:36 UTC (rev 1253)
+++ trunk/target/test/test_touchscreen.sh 2009-05-06 12:16:40 UTC (rev 1254)
@@ -19,7 +19,6 @@
{
show_test_banner "Touchscreen"
- modprobe spi_imx
modprobe tsc2102_ts
sleep 1
@@ -40,6 +39,10 @@
exit_failed
fi
+ echo "You can now calibrate the Touch..."
+ sleep 1
+ ts_calibrate
+
echo_test_ok
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|