Opened 13 years ago

Closed 13 years ago

#613 closed defect (fixed)

6 tests fail with old autotools

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.7
Component: test Version: 0.6
Keywords: Cc:

Description

I have Automake 1.9.2 and Autoconf 2.59 and get the following:

...
PASS: version_test
PASS: view_test
SKIP: documentation_test.sh
FAIL: static_test.sh
PASS: yat_config_cblas_test.sh
FAIL: yat_cpp_add_flag_test.sh
FAIL: yat_cxx_add_flag_test.sh
FAIL: yat_ld_add_flag_test.sh
FAIL: yat_m4_test.sh
FAIL: yat_m4_test2.sh
================================
6 of 60 tests failed
(1 test was not run)
Please report to jari@thep.lu.se
================================

I suspect that it is due to the old version of automake and autoconf. Tests should be skipped when autotools are old.

Change History (4)

comment:1 Changed 13 years ago by Peter

AC_PREREQ exits with status 63 if an too old version of autoconf is used, which seems useful here.

http://www.gnu.org/software/autoconf/manual/autoconf.html#Versioning

comment:2 Changed 13 years ago by Peter

(In [2205]) refs #613. Add version test for add_falg tests and skip test if autoconf version is too old. Automake version should not be an issue.

comment:3 Changed 13 years ago by Peter

(In [2206]) refs #613

comment:4 Changed 13 years ago by Peter

Resolution: fixed
Status: newclosed

(In [2225]) fixes #613. Restructure tests to have a configure.ac with no included acinclude but include needed code in configure.ac instead. This makes it easier for autotools to give a useful diagnosis when autoconf is too old. The cache in the test were also removed (was never a good idea) so now tests are run from scratch every time, in fact, old testdir is removed before creating input files (such as configure.ac). This makes the tests a bit more time consuming, but they are also more accurate (reported failures have often been problem with the cache).

Note: See TracTickets for help on using tickets.