Codebase list dds / 4429bf4
Add autopkgtest. Christoph Berg 5 years ago
4 changed file(s) with 27 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
33 * Move ddd and python module to separate source packages.
44 * Build shared library in libdds0.
55 * Update watch file.
6 * Add autopkgtest.
67
78 -- Christoph Berg <myon@debian.org> Mon, 26 May 2014 22:23:44 +0200
89
00 #!/usr/bin/make -f
1
2 SOVERSION = 0
13
24 include /usr/share/dpkg/architecture.mk
35
46 override_dh_auto_clean:
57 $(MAKE) -C src -f Makefiles/Makefile_linux_shared clean
68 $(MAKE) -C examples -f Makefiles/Makefile_linux clean
7 rm -f examples/*.o
9 rm -f examples/*.o examples/libdds.so
810
911 override_dh_auto_build:
1012 $(MAKE) -C src -f Makefiles/Makefile_linux_shared
11 $(MAKE) -C examples -f Makefiles/Makefile_linux
13
14 override_dh_auto_test:
15 ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
16 ln -sf ../src/libdds.so.$(SOVERSION) examples/libdds.so
17 $(MAKE) -C examples -f Makefiles/Makefile_linux DealerPar
18 LD_LIBRARY_PATH=src examples/DealerPar
19 endif
1220
1321 override_dh_auto_install:
14 install -m644 -D src/libdds.so.0 debian/libdds0/usr/lib/$(DEB_HOST_MULTIARCH)/libdds.so.0
22 install -m644 -D src/libdds.so.$(SOVERSION) debian/libdds$(SOVERSION)/usr/lib/$(DEB_HOST_MULTIARCH)/libdds.so.$(SOVERSION)
1523 install -d debian/libdds-dev/usr/lib/$(DEB_HOST_MULTIARCH)
16 ln -s libdds.so.0 debian/libdds-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libdds.so
24 ln -s libdds.so.$(SOVERSION) debian/libdds-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libdds.so
1725
1826 %:
1927 dh $@
0 Depends: @, build-essential
1 Tests: dealerpar
2 Restrictions: allow-stderr
0 #!/bin/sh
1
2 trap "rm -f DealerPar.out" 0 2 3 15
3
4 set -eux
5
6 cd examples
7 make -f Makefiles/Makefile_linux DealerPar
8 ./DealerPar > DealerPar.out
9 cat DealerPar.out
10 [ "$(grep -c "OK" DealerPar.out)" = "3" ]