Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: client/site_tests/graphics_WebGLConformance/scripts/make-tarball

Issue 3156038: graphics_WebGLConformance: use tarballs for WebGLConformance test (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/site_tests/graphics_WebGLConformance/graphics_WebGLConformance.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/graphics_WebGLConformance/scripts/make-tarball
diff --git a/client/site_tests/graphics_WebGLConformance/scripts/make-tarball b/client/site_tests/graphics_WebGLConformance/scripts/make-tarball
new file mode 100755
index 0000000000000000000000000000000000000000..d82c086a0e70b136382ed48b59d1e781c023d8c8
--- /dev/null
+++ b/client/site_tests/graphics_WebGLConformance/scripts/make-tarball
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+usage() {
+ echo "Usage: $0 <version-tag>"
+}
+
+if [[ $# -lt 1 ]]; then
+ usage
+ exit 0
+fi
+
+PACKAGENAME=webgl-tests-${1}
+
+# source locations and revisions, taken from the original DEPS file
+WEBGL="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests@11002"
+WEBGLTO="WebGL"
+
+function update_mirror() {
+ LOCALMIRROR=$1
+ [ -z "${LOCALMIRROR}" ] && return 0
+
+ echo -n "Update local mirror? [yn] "
+ read n
+ if [[ "$n" == "y" ]]; then
+ cp "${PACKAGENAME}.tar.gz" ${LOCALMIRROR}
+ fi
+}
+
+function download_stuff() {
+ FILESDIR=`dirname $0`
+
+ echo "Getting WebGL stuff"
+ for sub in WEBGL; do
+ eval svn export \$\{${sub}\} \$\{${sub}TO\}
+ done
+
+ tar -cvjf ${PACKAGENAME}.tar.bz2 WebGL
+}
+
+download_stuff "$@"
+update_mirror
+
« no previous file with comments | « client/site_tests/graphics_WebGLConformance/graphics_WebGLConformance.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698