Skip to content

Commit ad65799

Browse files
Add browse and download media assets
1 parent 5e53bac commit ad65799

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

docker_run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919

2020
mkdir -p ${TEST_MATERIALS_SRC:-/data/test-materials}
2121
docker run -v ${TEST_MATERIALS_SRC:-/data/test-materials}:/home/MVT/test-materials --rm -d --name mvt-app -p ${PORT:-80}:80 mvt-app-img
22+
docker cp download-test-materials.sh mvt-app:/usr/local/apache2/cgi-bin/

download-test-materials.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
echo -e "Content-Type: application/x-tar"
3+
echo -e "Content-Disposition: attachment; filename=test-materials.tar.gz"
4+
echo ""
5+
tar -czf - -C /home/MVT test-materials
6+

httpd.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ LoadModule rewrite_module modules/mod_rewrite.so
4444

4545
DocumentRoot "/home/MVT"
4646
<Directory "/home/MVT">
47-
Options FollowSymLinks
47+
Options Indexes FollowSymLinks
4848
AllowOverride All
4949
Require all granted
5050
</Directory>
@@ -72,7 +72,8 @@ LogLevel warn
7272

7373
<Directory "/usr/local/apache2/cgi-bin">
7474
AllowOverride none
75-
Options None
75+
Options +ExecCGI
76+
AddHandler cgi-script.sh
7677
Require all granted
7778
</Directory>
7879

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/harness/compactTestView.js b/harness/compactTestView.js
2+
index ddf3c9e..70d6b22 100644
3+
--- a/harness/compactTestView.js
4+
+++ b/harness/compactTestView.js
5+
@@ -56,6 +56,8 @@ var compactTestView = (function() {
6+
this.addLink('CSS Tests', 'https://css3test.com');
7+
this.addLink('JS ECMAScript Tests','https://compat-table.github.io/compat-table/es2016plus/');
8+
this.addLink('WPT Tests', 'https://wpt.live/');
9+
+ this.addLink('Browse Media Assets', 'https://mvt.onemw.net/test-materials/');
10+
+ this.addLink('Download Media Assets', 'http://mvt.onemw.net/cgi-bin/download-test-materials.sh');
11+
this.addTestSuites(testSuiteVersions[this.testSuiteVer].testSuites);
12+
13+
for (var engineId in EngineVersions) {

prepare_submodule.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ git apply ../patches/0003_js_mse_eme_mvt_Add_HtmlTests.patch
2727
git apply ../patches/0004_js_mse_eme_mvt_Add_CSSTests.patch
2828
git apply ../patches/0005_js_mse_eme_mvt_Add_JSTests.patch
2929
git apply ../patches/0006_js_mse_eme_mvt_Add_WPTTests.patch
30+
git apply ../patches/0007_js_mse_eme_mvt_Add_Browse_and_Download_Media_Assets.patch
3031

0 commit comments

Comments
 (0)