Commit 77ad5cd3 authored by Dominique Dumont's avatar Dominique Dumont

test with standalone tests

With some help from Stephen (upstream):

I've just had a look at the debian/rules in
https://sources.debian.org/src/libtommath/1.1.0%7Erc5-1/

and you do run testme.sh but that's not really required as that's doing
more than you want to test!

the easiest way would be to do `make test_standalone` and then execute
`./test` which will run the testsuite for the platform you're compiling
for. (that one's also not invoking `make clean` )
parent 1e300e4f
...@@ -21,22 +21,25 @@ export LIBPATH = $(PREFIX)/lib/$(DEB_HOST_MULTIARCH) ...@@ -21,22 +21,25 @@ export LIBPATH = $(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
dh $@ dh $@
override_dh_auto_build: override_dh_auto_build:
# create a libtool echo "Creating libtool executable"
mkdir debian/libtool mkdir debian/libtool
cp debian/configure.ac debian/libtool/ cp debian/configure.ac debian/libtool/
cd debian/libtool && LIBTOOLIZE='libtoolize -i' autoreconf -f -i cd debian/libtool && LIBTOOLIZE='libtoolize -i' autoreconf -f -i
dh_auto_configure --sourcedirectory=debian/libtool dh_auto_configure --sourcedirectory=debian/libtool
echo "running auto_test" echo "Building libtommath"
# this script runs "make clean" so it cannot be run after build $(MAKE) -f makefile.shared LIBTOOL=$(CURDIR)/debian/libtool/libtool
/bin/bash testme.sh echo "Building docs"
echo "cleanup after tests"
make clean
$(MAKE) -f makefile.shared LT=$(CURDIR)/debian/libtool/libtool
$(MAKE) manual docs $(MAKE) manual docs
override_dh_auto_test:
echo "compiling test programs"
$(MAKE) -f makefile.shared LIBTOOL=$(CURDIR)/debian/libtool/libtool test_standalone
echo "running test"
./test
override_dh_auto_install: override_dh_auto_install:
$(MAKE) -f makefile.shared LT=$(CURDIR)/debian/libtool/libtool install $(MAKE) -f makefile.shared LIBTOOL=$(CURDIR)/debian/libtool/libtool install
# Override if not processing -docs # Override if not processing -docs
ifeq (,$(findstring libtommath-docs, $(shell dh_listpackages))) ifeq (,$(findstring libtommath-docs, $(shell dh_listpackages)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment