src/cm/scripts/test-suite/start-test-suite.sh
author ymh <ymh.work@gmail.com>
Fri, 07 Mar 2014 09:36:04 +0100
changeset 592 cd268815de68
parent 575 8ce80860c3fe
child 597 6cbcec19079b
permissions -rwxr-xr-x
correct karma tests configuration to be more generic
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
     7
export PHANTOMJS_BIN=`which phantomjs`
575
8ce80860c3fe Add the skeleton of the future comt test-suite
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     8
592
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
     9
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
    10
   KARMA=./node_modules/.bin/karma
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
    11
else
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
    12
   KARMA=`which karma`
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
    13
fi
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
    14
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
    15
"$KARMA" start
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
    16
cd268815de68 correct karma tests configuration to be more generic
ymh <ymh.work@gmail.com>
parents: 575
diff changeset
    17