Add autopkgtest.
Christoph Berg
5 years ago
3 | 3 |
* Move ddd and python module to separate source packages.
|
4 | 4 |
* Build shared library in libdds0.
|
5 | 5 |
* Update watch file.
|
|
6 |
* Add autopkgtest.
|
6 | 7 |
|
7 | 8 |
-- Christoph Berg <myon@debian.org> Mon, 26 May 2014 22:23:44 +0200
|
8 | 9 |
|
0 | 0 |
#!/usr/bin/make -f
|
|
1 |
|
|
2 |
SOVERSION = 0
|
1 | 3 |
|
2 | 4 |
include /usr/share/dpkg/architecture.mk
|
3 | 5 |
|
4 | 6 |
override_dh_auto_clean:
|
5 | 7 |
$(MAKE) -C src -f Makefiles/Makefile_linux_shared clean
|
6 | 8 |
$(MAKE) -C examples -f Makefiles/Makefile_linux clean
|
7 | |
rm -f examples/*.o
|
|
9 |
rm -f examples/*.o examples/libdds.so
|
8 | 10 |
|
9 | 11 |
override_dh_auto_build:
|
10 | 12 |
$(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
|
12 | 20 |
|
13 | 21 |
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)
|
15 | 23 |
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
|
17 | 25 |
|
18 | 26 |
%:
|
19 | 27 |
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" ]
|