Author: titmuss
Date: Fri Feb 8 08:38:08 2008
New Revision: 1869
URL: http://svn.slimdevices.com?rev=1869&root=Jive&view=rev
Log:
[EMAIL PROTECTED] (orig r1864): titmuss | 2008-02-08 16:35:26 +0000
Bug: 6580
Description:
Script for testing suspend/resume.
Added:
trunk/squeezeboxJive/src/scripts/suspend-test.sh (with props)
Modified:
trunk/ (props changed)
Propchange: trunk/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Fri Feb 8 08:38:08 2008
@@ -1,3 +1,3 @@
-bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1863
+bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1864
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/SN:1083
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/scrolling:1378
Added: trunk/squeezeboxJive/src/scripts/suspend-test.sh
URL:
http://svn.slimdevices.com/trunk/squeezeboxJive/src/scripts/suspend-test.sh?rev=1869&root=Jive&view=auto
==============================================================================
--- trunk/squeezeboxJive/src/scripts/suspend-test.sh (added)
+++ trunk/squeezeboxJive/src/scripts/suspend-test.sh Fri Feb 8 08:38:08 2008
@@ -1,0 +1,45 @@
+#!/bin/sh
+
+count=0
+sleepfor=10
+
+while [ /bin/true ]; do
+ echo "--------------- Test round $count ----------------"
+
+ echo $count: suspend for $sleepfor
+ /etc/init.d/suspend $sleepfor
+
+ echo $count: waiting for wireless connection
+ while ! `wpa_cli status | grep -q COMPLETED`; do echo "wait wlan"; done
+
+ date
+ echo $count: waiting for dhcp
+ while ! `wpa_cli status | grep -q 10.1.1.`; do echo "wait dhcp"; done
+
+ date
+ iwconfig eth0
+
+ ping -c 10 10.1.1.10
+ if [ $? -ne 0 ]; then
+ exit 1
+ fi
+
+ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
+ echo 50000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
+
+ ping -c 10 10.1.1.10
+ if [ $? -ne 0 ]; then
+ exit 1
+ fi
+
+ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
+ echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
+
+ count=`expr $count + 1`
+ sleepfor=`expr $sleepfor + 1`
+
+ if [ $sleepfor -gt 20 ]; then
+ echo resetting sleep count
+ sleepfor=10
+ fi
+done
Propchange: trunk/squeezeboxJive/src/scripts/suspend-test.sh
------------------------------------------------------------------------------
svn:executable = *
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins