save_uri: update for xulrunner 18
[conkeror.git] / tests / shell-nix / commandline.sh
blob2d21f6c54da9e36d2b4c1589e6b835d2b1aac6a0
1 #! /bin/bash
3 conkeror-running () {
4 ## really blunt way to see if conkeror is running
5 pidof xulrunner-bin >/dev/null
8 testConkerorNotRunningAtStart () {
9 assertFalse conkeror-running
12 testConkerorBatch () {
13 got=$(conkeror -q -batch -e 'dumpln("hello");' 2>&1)
14 assertEquals hello "$got"
17 testConkerorNotRunningAtEnd () {
18 assertFalse conkeror-running
22 if conkeror-running; then
23 echo "Conkeror appears to be running. Cannot continue testing." >&2
24 exit 1
27 if [[ -z $(which shunit2) ]]; then
28 echo "shunit2 not found in path. cannot run tests." >&2
29 exit 1
31 . $(which shunit2)