Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit db5816f

Browse files
committed
Merge pull request #5 from webrtc/renameRunTest
Rename run-test>start-tests.sh to make it clearer
2 parents bbf0028 + 3076c45 commit db5816f

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webrtc-utilities",
3-
"version": "0.0.2",
3+
"version": "0.0.5",
44
"author": "The WebRTC project authors (https://www.webrtc.org/)",
55
"description": "WebRTC test framework utilities.",
66
"license": "BSD-3-Clause",
@@ -18,7 +18,7 @@
1818
},
1919
"scripts": {
2020
"prepublish": "grunt githooks",
21-
"test": "grunt && test/run-tests"
21+
"test": "grunt && ./test/start-tests.sh"
2222
},
2323
"devDependencies": {
2424
"grunt": "^0.4.5",

test/run-tests renamed to src/testrunner/start-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# tree.
77
#!/bin/sh
88

9-
# Run testling with a default set of parameters
9+
# Run with a default set of parameters
1010
BINDIR=./browsers/bin
1111
export BROWSER=${BROWSER-chrome}
1212
export BVER=${BVER-stable}

test/start-tests.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3+
#
4+
# Use of this source code is governed by a BSD-style license
5+
# that can be found in the LICENSE file in the root of the source
6+
# tree.
7+
#!/bin/sh
8+
9+
# Run with a default set of parameters
10+
BINDIR=./browsers/bin
11+
export BROWSER=${BROWSER-chrome}
12+
export BVER=${BVER-stable}
13+
BROWSERBIN=$BINDIR/$BROWSER-$BVER
14+
if [ ! -x $BROWSERBIN ]; then
15+
echo "Installing browser"
16+
./node_modules/travis-multirunner/setup.sh
17+
fi
18+
echo "Starting browser"
19+
PATH=$PATH:./node_modules/.bin
20+
21+
node test/run-tests.js

0 commit comments

Comments
 (0)