Rewrite tests in automake

- add options in AM_INIT_AUTOMAKE to be more strict
  and to enable more advanced features (color-tests and parallel-tests)
- rewrite tests/Makefile.am to use automake rules for building program and libraries

=> we can now do:
./bootstrap.sh && mkdir build && cd build && ../configure && make -j distcheck
This commit is contained in:
Vincent Danjean
2012-06-21 11:50:48 +02:00
committed by Eelco Dolstra
parent 90e33b9a72
commit 00b2fa4f77
2 changed files with 46 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
AC_INIT([patchelf], m4_esyscmd([echo -n $(cat ./version)$VERSION_SUFFIX]))
AC_CONFIG_SRCDIR([src/patchelf.cc])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([dist-bzip2 foreign])
AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2 foreign color-tests parallel-tests])
AC_PROG_CC
AC_PROG_CXX