File: test

package info (click to toggle)
graphite2 1.3.14-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,588 kB
  • sloc: cpp: 14,738; cs: 1,998; python: 1,737; ansic: 1,673; perl: 184; xml: 123; sh: 104; makefile: 62
file content (28 lines) | stat: -rwxr-xr-x 683 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
#!/bin/bash

tmp=`mktemp -q`

case `dpkg-architecture -qDEB_HOST_ARCH` in
	arm64 | ppc64el | loongarch64)
		export CXX=g++-14
	;;
	*)
	;;
esac

dh_auto_configure --buildsystem=cmake --builddirectory=build
cd build/tests
make VERBOSE=true
cd ../..

find build ! -type d -a -name "libgraphite2.so.*" -exec rm {} \;
find build ! -type d -a -name "gr2fonttest" -exec rm {} \;

cd build/tests
perl -pi -e 's,\"--graphite_library=.*\d.\d.\d\",,g' CTestTestfile.cmake
perl -pi -e 's,\".*/gr2fonttest\",\"/usr/bin/gr2fonttest\",g' \
	CTestTestfile.cmake
grep -v PYTHONPATH CTestTestfile.cmake > $tmp && mv $tmp CTestTestfile.cmake

export CTEST_OUTPUT_ON_FAILURE=True
make test VERBOSE=true