diff --git a/wlauto/workloads/bbench/__init__.py b/wlauto/workloads/bbench/__init__.py index 3d4ce9d4..88539f5c 100644 --- a/wlauto/workloads/bbench/__init__.py +++ b/wlauto/workloads/bbench/__init__.py @@ -122,6 +122,11 @@ class BBench(Workload): self.device.execute('sync') self.device.set_sysfile_value('/proc/sys/vm/drop_caches', 3) + #On android 6+ the web browser requires permissions to access the sd card + if self.device.get_sdk_version() >= 23: + self.device.execute("pm grant com.android.browser android.permission.READ_EXTERNAL_STORAGE") + self.device.execute("pm grant com.android.browser android.permission.WRITE_EXTERNAL_STORAGE") + # Launch the background music if self.with_audio: self.device.execute('am start -W -S -n com.android.music/.MediaPlaybackActivity -d {}'.format(self.audio_on_device)) @@ -189,6 +194,12 @@ class BBench(Workload): shutil.copy(os.path.join(PATCH_FILES, "bbench.js"), self.dependencies_directory) shutil.copy(os.path.join(PATCH_FILES, "results.html"), self.dependencies_directory) shutil.copy(os.path.join(PATCH_FILES, "index_noinput.html"), self.dependencies_directory) + shutil.copy(os.path.join(PATCH_FILES, "bbc.html"), + os.path.join(self.dependencies_directory, "sites", "bbc", "www.bbc.co.uk", "index.html")) + shutil.copy(os.path.join(PATCH_FILES, "cnn.html"), + os.path.join(self.dependencies_directory, "sites", "cnn", "www.cnn.com", "index.html")) + shutil.copy(os.path.join(PATCH_FILES, "twitter.html"), + os.path.join(self.dependencies_directory, "sites", "twitter", "twitter.com", "index.html")) def _parse_metrics(logfile, indexfile, output_directory): # pylint: disable=R0914 diff --git a/wlauto/workloads/bbench/patches/bbc.html b/wlauto/workloads/bbench/patches/bbc.html new file mode 100755 index 00000000..27d46619 --- /dev/null +++ b/wlauto/workloads/bbench/patches/bbc.html @@ -0,0 +1,1412 @@ + + +
+ + + + + + + + + + + + + + +US Defence Secretary Robert Gates says security around the special forces unit that killed Osama Bin Laden will be tightened after it raised concerns.
+Nato air strikes again target Col Muammar Gaddafi's compound, hours after Libyan state TV showed footage purportedly of the leader in Tripoli.
+Market Name | +Current Value | +Movement | +Change | +Percentage Change | +
---|---|---|---|---|
+ Dow Jones + | ++ 12695.92 | ++ + + | ++ 65.89 | ++ 0.52% + | +
+ Nasdaq + | ++ 2863.04 | ++ + + | ++ 17.98 | ++ 0.63% + | +
+ FTSE 100 + | ++ 5944.96 | ++ - + | ++ -31.04 | ++ -0.52% + | +
+ Dax + | ++ 7443.95 | ++ - + | ++ -51.1 | ++ -0.68% + | +
+ Cac 40 + | ++ 4023.29 | ++ - + | ++ -34.79 | ++ -0.86% + | +
Tiger Woods pulls out of the Players Championship midway through his first round with a recurrence of his knee and Achilles tendon injuries.
+Critics heap praise on We Need to Talk about Kevin, the only British title in contention for the main award at the Cannes Film Festival.
+An HIV positive person can reduce the risk of spreading the virus to uninfected partners by 96% if they are given anti-retroviral drugs immediately, according to US scientists.
+Facebook admits hiring a PR agency to tout anti-Google stories related to user privacy in the US press.
+Data from the Galileo probe suggest Jupiter's moon Io may hold a giant magma ocean beneath its crust that is at least 50km thick.
+Cerca del 20% de la población son inmigrantes, la mayoría de ellos ecuatorianos que han llegado en los últimos diez años. Muchos de ellos duermen en la calle tras la tragedia del miércoles.
+一项突破性研究发现,身体健康的艾滋病毒携带者在发现感染后立即服用抗逆转录病毒药,可将病毒传染给不带病毒的性伙伴的风险减少96%
+رئيس المجلس الوطني الانتقالي الليبي المعارض يقول ان القذافي "هدف مشروع" لغارات حلف الناتو، الذي يواصل شن ضرباته على اهداف تابعة للحكومة الليبية.
+مهدی محمودیان روزنامهنگاری که نامهای در باره وقوع تجاورز جنسی در زندان رجایی شهر کرج منتشر کرده بود، به سلول انفرادی منتقل شده است.
+Queen Elizabeth II has become the second longest-serving monarch in British history, after 57 years and 97 days on the throne.
++ +
Sunny Intervals
++ Max Temperature: + 18°C + 64°F +
++ Min Temperature: + 10°C + 50°F +
+Sunny Intervals
++ Max Temperature: + 16°C + 61°F +
++ Min Temperature: + 8°C + 46°F +
+White Cloud
++ Max Temperature: + 13°C + 55°F +
++ Min Temperature: + 10°C + 50°F +
+White Cloud
++ Max Temperature: + 15°C + 59°F +
++ Min Temperature: + 11°C + 52°F +
+Can't find it? Try the A to Z
+BBC © 2011 The BBC is not responsible for the content of external sites. Read more.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.
• Mubarak addresses Egypt without resigning
• Powers delegated to vice president
• Obama urges Egypt to explain changes
• Protests planned for Friday after prayers
FULL STORY | BLOG
After morning prayers Friday, more Egyptian protesters are expected to arrive for what could be the largest demonstration yet. Some protesters say they fear "a bloodbath." FULL STORY | MILITARY NUDGE? | WHAT CHANGED
Sign up for breaking political news alerts from CNN and be the first to know when news happens inside the Beltway and across the country.
+ +Loading weather data ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ more
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+ Following+ + ++ |
+
+