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

and you do run 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)
dh $@
# create a libtool
echo "Creating libtool executable"
mkdir debian/libtool
cp debian/ debian/libtool/
cd debian/libtool && LIBTOOLIZE='libtoolize -i' autoreconf -f -i
dh_auto_configure --sourcedirectory=debian/libtool
echo "running auto_test"
# this script runs "make clean" so it cannot be run after build
echo "cleanup after tests"
make clean
$(MAKE) -f makefile.shared LT=$(CURDIR)/debian/libtool/libtool
echo "Building libtommath"
$(MAKE) -f makefile.shared LIBTOOL=$(CURDIR)/debian/libtool/libtool
echo "Building docs"
$(MAKE) manual docs
echo "compiling test programs"
$(MAKE) -f makefile.shared LIBTOOL=$(CURDIR)/debian/libtool/libtool test_standalone
echo "running test"
$(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
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