root/gaphor/tags/gaphor-0.2.0/tests/run-test.sh

Revision 31, 449 bytes (checked in by arjanmol, 7 years ago)

*** empty log message ***

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/sh
2 # vim: sw=4
3 export PYTHONPATH="../gaphor:${PYTHONPATH}"
4
5 EXITCODE=0
6 for TEST in "$@"; do
7     if echo "${TEST}" | grep -q '\.py$'; then
8         TEST="python ${TEST}"
9     else
10         TEST="./${TEST}"
11     fi
12     echo "Running test: ${TEST}"
13     if ! eval "${TEST}"; then
14         EXITCODE=1
15         break;
16     fi
17 done
18
19 echo "============="
20 if test "${EXITCODE}" = "0"; then
21         echo " Test passed"
22 else
23         echo " Test failed"
24 fi
25 echo "============="
26
27 exit ${EXITCODE}
Note: See TracBrowser for help on using the browser.