summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil.kumaran@linaro.org>2013-04-22 16:10:20 +0530
committerSenthil Kumaran <senthil.kumaran@linaro.org>2013-04-22 16:10:20 +0530
commitc8b0748c73f65b9f9297dee160c2b799cdd414df (patch)
tree3e9305aa9bb5565b0d033bc5a858c558892e8f59 /android
parent88047291880fcc162c83fc9860aa37c000439955 (diff)
Cleanup unwanted comments from 0xbench script.
Diffstat (limited to 'android')
-rwxr-xr-xandroid/scripts/0xbench.sh100
-rwxr-xr-xandroid/scripts/0xbench/0xbench.sh28
-rw-r--r--android/scripts/ZeroxBench_Preference.xml5
3 files changed, 1 insertions, 132 deletions
diff --git a/android/scripts/0xbench.sh b/android/scripts/0xbench.sh
deleted file mode 100755
index af1c083..0000000
--- a/android/scripts/0xbench.sh
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/system/bin/sh
-#
-# 0xbench test.
-#
-# Copyright (C) 2012, Linaro Limited.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-# owner: harigopal.gollamudi@linaro.org
-
-
-#######################################android_0xbenchmark_kill.py
-
-pid=`ps |grep org.zeroxlab.zeroxbenchmark|tr -s " "|cut -d' ' -f2`
-echo $pid
-kill $pid
-rm -rf /data/data/org.zeroxlab.zeroxbenchmark/files*
-rm -rf /data/data/org.zeroxlab.zeroxbenchmark/shared_prefs*
-
-########################################android_0xbenchmark_modify_path.py
-
-source=$PWD/ZeroxBench_Preference.xml
-target="/data/data/org.zeroxlab.zeroxbenchmark/shared_prefs/ZeroxBench_Preference.xml"
-
-target_dir="/data/data"
-
-group="None"
-owner="None"
-
-group=`ls -l /data/data/|grep org.zeroxlab.zeroxbenchmark|tr -s " "|cut -d \ -f 2`
-owner=`ls -l /data/data/|grep org.zeroxlab.zeroxbenchmark|tr -s " "|cut -d \ -f 3`
-
-
-echo group:$group
-echo owner:$owner
-
-target_dir="/data/data/org.zeroxlab.zeroxbenchmark/shared_prefs"
-
-
-#make dir
-mkdir $target_dir
-echo "directory created"
-#change owner
-chown $owner:$group $target_dir
-echo "owner changed"
-#change mode
-chmod 771 $target_dir
-echo "mode changed"
-#push file
-cp $source $target
-#change owner
-chown $owner:$group $target
-#change mode
-chmod 660 $target
-
-target_dir="/data/data/org.zeroxlab.zeroxbenchmark/files"
-
-#make dir
-mkdir $target_dir
-#change owner
-chown $owner:$group $target_dir
-#change mode
-chmod 771 $target_dir
-
-########################################0xbench.py
-
-
-save_dir="/data/data/org.zeroxlab.zeroxbenchmark/files"
-
-#options to come from app which runs activity manager
-
-logcat -c
-
-am start -n org.zeroxlab.zeroxbenchmark/org.zeroxlab.zeroxbenchmark.Benchmark --ez autorun true --ez math true --ez 2d true
-
-
-########################################
-
-while [ ! -f /data/data/org.zeroxlab.zeroxbenchmark/files/0xBenchmark.bundle ]
-do
- sleep 2
-done
-cp /data/data/org.zeroxlab.zeroxbenchmark/files/0xBenchmark.bundle /mnt/sdcard/0xBenchmark.bundle
-
-
-logcat -d | grep "0xbench_test_case:" |tr -s " "|cut -d \ -f 4,5,6,7,8
-
-
-
diff --git a/android/scripts/0xbench/0xbench.sh b/android/scripts/0xbench/0xbench.sh
index f36d2c9..5f2f322 100755
--- a/android/scripts/0xbench/0xbench.sh
+++ b/android/scripts/0xbench/0xbench.sh
@@ -23,7 +23,6 @@
#######################################android_0xbenchmark_kill.py
pid=`ps |grep org.zeroxlab.zeroxbenchmark|tr -s " "|cut -d' ' -f2`
-#echo $pid
kill $pid
rm -rf /data/data/org.zeroxlab.zeroxbenchmark/files*
rm -rf /data/data/org.zeroxlab.zeroxbenchmark/shared_prefs*
@@ -41,45 +40,24 @@ owner="None"
group=`ls -l /data/data/|grep org.zeroxlab.zeroxbenchmark|tr -s " "|cut -d \ -f 2`
owner=`ls -l /data/data/|grep org.zeroxlab.zeroxbenchmark|tr -s " "|cut -d \ -f 3`
-
-#echo group:$group
-#echo owner:$owner
-
target_dir="/data/data/org.zeroxlab.zeroxbenchmark/shared_prefs"
-
-
-#make dir
mkdir $target_dir
-#echo "directory created"
-#change owner
chown $owner:$group $target_dir
-#echo "owner changed"
-#change mode
chmod 771 $target_dir
-#echo "mode changed"
-#push file
cp $source $target
-#change owner
+
chown $owner:$group $target
-#change mode
chmod 660 $target
-
target_dir="/data/data/org.zeroxlab.zeroxbenchmark/files"
-
-#make dir
mkdir $target_dir
-#change owner
chown $owner:$group $target_dir
-#change mode
chmod 771 $target_dir
########################################0xbench.py
-
save_dir="/data/data/org.zeroxlab.zeroxbenchmark/files"
#options to come from app which runs activity manager
-
logcat -c
am start -n org.zeroxlab.zeroxbenchmark/org.zeroxlab.zeroxbenchmark.Benchmark --ez autorun true --ez math true --ez 2d true
@@ -91,10 +69,6 @@ while [ ! -f /data/data/org.zeroxlab.zeroxbenchmark/files/0xBenchmark.bundle ]
do
sleep 2
done
-#cp /data/data/org.zeroxlab.zeroxbenchmark/files/0xBenchmark.bundle /mnt/sdcard/0xBenchmark.bundle
logcat -d | grep "0xbench_test_case:" |tr -s " "|cut -d \ -f 4,5,6,7,8 > 0xBenchmarkresult.txt
cat 0xBenchmarkresult.txt
-
-#cat /mnt/sdcard/0xBenchmark.bundle
-
diff --git a/android/scripts/ZeroxBench_Preference.xml b/android/scripts/ZeroxBench_Preference.xml
deleted file mode 100644
index 6f07a12..0000000
--- a/android/scripts/ZeroxBench_Preference.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
-<map>
-<string name="KEY_RESULT_CUSTOM_DIR">/data/data/org.zeroxlab.zeroxbenchmark/files</string>
-<int name="KEY_RESULT_SELECTION" value="1" />
-</map>