xref: /glogg/runtests.sh (revision 6e2e573c451ec24d720c967fab68538eaa3f3ab5)
1#!/bin/sh
2
3./tests/logcrawler_tests $*
4result=$?
5
6ICON_OK=gtk-apply
7ICON_ERROR=gtk-cancel
8
9if [ `which notify-send` ]; then
10    if [ "$result" != "0" ]; then
11        notify-send -i $ICON_ERROR "glogg" "Tests failed!"
12    else
13        notify-send -i $ICON_OK "glogg" "Tests passed!"
14    fi
15fi
16
17exit $result
18