~liuyq0307/lava-android-test/pm-qa-indefinite-loop

« back to all changes in this revision

Viewing changes to lava_android_test/test_definitions/pm_qa/pm-qa.sh

  • Committer: Yongqin Liu
  • Date: 2013-05-30 08:42:45 UTC
  • mto: This revision was merged to the branch mainline in revision 253.
  • Revision ID: yongqin.liu@linaro.org-20130530084245-hfyvs0b32wbchhen
change the name of pm-qa test to pm_qa,
because python can't recognize the package name with hyphen(-)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/system/bin/sh
 
2
 
 
3
test_func(){
 
4
   if [ ! -d /data/benchmark/pm-qa ]; then
 
5
       echo "pm-qa=fail"
 
6
       exit
 
7
   fi  
 
8
 
 
9
   mkdir /data/bin/
 
10
   cd /data/bin
 
11
 
 
12
   busybox ln -s -f /system/bin/busybox awk
 
13
   busybox ln -s -f /system/bin/busybox basename
 
14
   busybox ln -s -f /system/bin/busybox chmod
 
15
   busybox ln -s -f /system/bin/busybox chown
 
16
   busybox ln -s -f /system/bin/busybox cp
 
17
   busybox ln -s -f /system/bin/busybox diff
 
18
   busybox ln -s -f /system/bin/busybox find
 
19
   busybox ln -s -f /system/bin/busybox grep
 
20
   busybox ln -s -f /system/bin/busybox rm
 
21
   busybox ln -s -f /system/bin/busybox seq
 
22
   busybox ln -s -f /system/bin/busybox taskset
 
23
   busybox ln -s -f /system/bin/busybox tee
 
24
   busybox ln -s -f /system/bin/busybox printf
 
25
   busybox ln -s -f /system/bin/busybox wc
 
26
 
 
27
   busybox ln -s -f /system/bin/fake_command command
 
28
   busybox ln -s -f /system/bin/fake_sudo sudo
 
29
   busybox ln -s -f /system/bin/fake_udevadm udevadm
 
30
 
 
31
   export PATH=/data/bin:$PATH
 
32
 
 
33
   cd /data/benchmark/pm-qa
 
34
 
 
35
   pwd=$PWD
 
36
   echo $pwd
 
37
   tests_dirs="cpuidle cpufreq cpuhotplug sched_mc suspend thermal utils"
 
38
   files=`find cpuidle cpufreq cpuhotplug sched_mc suspend -name "*.sh"`
 
39
 
 
40
   for dir in $tests_dirs
 
41
   do
 
42
       subDir=`pwd`/$dir
 
43
       if [ -d $subDir ]; then
 
44
       cd $subDir
 
45
       fi
 
46
 
 
47
       echo `pwd`
 
48
       for file in `find . -name "*.sh"`
 
49
       do
 
50
       path=$file
 
51
       echo $path
 
52
       /system/bin/sh $path
 
53
       done
 
54
       cd ..
 
55
   done
 
56
 
 
57
   echo "pm-qa=pass"
 
58
}
 
59
 
 
60
test_func