| author | ymh <ymh.work@gmail.com> |
| Wed, 12 Mar 2014 16:52:58 +0100 | |
| changeset 597 | 6cbcec19079b |
| parent 592 | cd268815de68 |
| child 614 | 61408993f361 |
| permissions | -rwxr-xr-x |
|
575
8ce80860c3fe
Add the skeleton of the future comt test-suite
Simon Descarpentries <sid@sopinspace.com>
parents:
diff
changeset
|
1 |
#!/bin/bash |
|
8ce80860c3fe
Add the skeleton of the future comt test-suite
Simon Descarpentries <sid@sopinspace.com>
parents:
diff
changeset
|
2 |
|
|
592
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
3 |
export CHROME_BIN= `which chromium` |
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
4 |
if [ -z "$CHROME_BIN" ]; then |
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
5 |
export CHROME_BIN=`which chrome` |
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
6 |
fi |
| 597 | 7 |
if [[ -z "$CHROME_BIN" && $OSTYPE =~ ^darwin ]]; then |
8 |
CHROME_BIN_BASE=`mdfind "kMDItemCFBundleIdentifier == 'com.google.Chrome'"` |
|
9 |
export CHROME_BIN="$CHROME_BIN_BASE/Contents/MacOS/Google Chrome" |
|
10 |
fi |
|
|
592
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
11 |
export PHANTOMJS_BIN=`which phantomjs` |
|
575
8ce80860c3fe
Add the skeleton of the future comt test-suite
Simon Descarpentries <sid@sopinspace.com>
parents:
diff
changeset
|
12 |
|
| 597 | 13 |
export FIREFOX_BIN=`which firefox` |
14 |
if [[ -z "$FIREFOX_BIN" && $OSTYPE =~ ^darwin ]]; then |
|
15 |
FIREFOX_BIN_BASE=`mdfind "kMDItemCFBundleIdentifier == 'org.mozilla.firefox'"` |
|
16 |
export FIREFOX_BIN="$FIREFOX_BIN_BASE/Contents/MacOS/firefox" |
|
17 |
fi |
|
18 |
||
|
592
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
19 |
if [ -x ./node_modules/.bin/karma ]; then |
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
20 |
KARMA=./node_modules/.bin/karma |
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
21 |
else |
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
22 |
KARMA=`which karma` |
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
23 |
fi |
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
24 |
|
| 597 | 25 |
"$KARMA" start $@ |
|
592
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
26 |
|
|
cd268815de68
correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents:
575
diff
changeset
|
27 |