3 if [[ ! -e build.sh ||
! -e install.sh
]]; then
4 echo "This test suite must be run from Conkeror's src root."
11 ## copy the javascript batch suite to the scratch directory.
12 cp test
/batch-suite.js
"$scratch/"
13 BATCHSUITEJS
="$scratch/batch-suite.js"
15 enter_scratch_directory
22 ## Now we run javascript suites by batch-loading a test script into
23 ## conkeror, and reading its output. This is fragile because there
24 ## has to be agreement between this script and the js script
25 ## concerning how test results are reported.
30 let "TESTSRUN = $TESTSRUN + 1"
33 let "TESTSFAILED = $TESTSFAILED + 1" ;;
35 *) let "UNEXPECTEDOUT = $UNEXPEXECTEDOUT + 1" ;;
37 done < <(.
/bin
/conkeror
-q -batch -l "$BATCHSUITEJS" 2>&1)