File: wrapper.sh

package info (click to toggle)
openbabel 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 37,188 kB
  • ctags: 47,193
  • sloc: cpp: 237,858; ansic: 85,555; cs: 22,219; java: 14,377; sh: 9,876; perl: 5,432; python: 4,319; pascal: 793; makefile: 683; xml: 97; ruby: 54
file content (48 lines) | stat: -rwxr-xr-x 1,432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

# Run "prove" on all Perl programs
# Passes along any arguments to the prove tool
# so it can also be used for debugging or running in random order, etc.

# wrapper.sh --shuffle --debug
# wrapper.sh --verbose # display full output of tests while running

TESTS="aromatic.pl atom bond cansmi cmlreadfile conversion data"
TESTS="${TESTS} ffghemical ffmmff94 ffuff"
TESTS="${TESTS} format formula formalcharge"
TESTS="${TESTS} internalcoord iterators" 
TESTS="${TESTS} invalidsmarts invalidsmiles"
TESTS="${TESTS} logp_psa math"
TESTS="${TESTS} mol phmodel residue rings"
TESTS="${TESTS} smarts smilesmatch unitcell"
TESTS="${TESTS} cml.sh test-set.sh"
if [ "x${srcdir}" != "x" ]; then
  TESTS="${TESTS} ${srcdir}/inchi.pl ${srcdir}/inchi2.pl"
else
  TESTS="${TESTS} inchi.pl inchi2.pl"
fi
PROVE=prove

echo "top srcdir: .${topsrcdir}."

unset BABEL_LIBDIR
unset BABEL_DATADIR
if [ -d ../src/formats/.libs ]; then
    if [ "x${BABEL_LIBDIR}" = "x" ]; then
        BABEL_LIBDIR="`pwd`/../src/formats/.libs:`pwd`/../src/formats/xml/.libs"
        export BABEL_LIBDIR
    fi
    if [ "x${BABEL_DATADIR}" = "x" ]; then
	      if [ "x${srcdir}" != "x" ]; then
	          BABEL_DATADIR="${srcdir}/../data"
		  TESTDATADIR="${srcdir}/files"
	      else
	          BABEL_DATADIR="`pwd`/../data"
	          BABEL_DATADIR="`pwd`/files"
	      fi
	      export BABEL_DATADIR
	      export TESTDATADIR
    fi
fi

${PROVE} "$@" ${TESTS}