Debian Codegraph @

debian/tests/test

raw
1 #!/bin/bash
2
3 tmp=`mktemp -q`
4
5 dh_auto_configure --buildsystem=cmake --builddirectory=build
6 cd build/tests
7 make VERBOSE=true
8 cd ../..
9
10 find build ! -type d -a -name "libgraphite2.so.*" -exec rm {} \;
11 find build ! -type d -a -name "gr2fonttest" -exec rm {} \;
12
13 cd build/tests
14 perl -pi -e 's,\"--graphite_library=.*\d.\d.\d\",,g' CTestTestfile.cmake
15 perl -pi -e 's,\".*/gr2fonttest\",\"/usr/bin/gr2fonttest\",g' \
16 CTestTestfile.cmake
17 grep -v PYTHONPATH CTestTestfile.cmake > $tmp && mv $tmp CTestTestfile.cmake
18
19 export CTEST_OUTPUT_ON_FAILURE=True
20 make test VERBOSE=true