Author: titmuss
Date: Fri Feb  8 08:35:26 2008
New Revision: 1864

URL: http://svn.slimdevices.com?rev=1864&root=Jive&view=rev
Log:
Bug: 6580
Description:
Script for testing suspend/resume.


Added:
    branches/7.0/squeezeboxJive/src/scripts/suspend-test.sh   (with props)

Added: branches/7.0/squeezeboxJive/src/scripts/suspend-test.sh
URL: 
http://svn.slimdevices.com/branches/7.0/squeezeboxJive/src/scripts/suspend-test.sh?rev=1864&root=Jive&view=auto
==============================================================================
--- branches/7.0/squeezeboxJive/src/scripts/suspend-test.sh (added)
+++ branches/7.0/squeezeboxJive/src/scripts/suspend-test.sh Fri Feb  8 08:35:26 
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: branches/7.0/squeezeboxJive/src/scripts/suspend-test.sh
------------------------------------------------------------------------------
    svn:executable = *

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to