Bonjour à toutes et à tous.
Supposez le projet minimaliste suivant :
|-- configure.ac
|-- Makefile.am
|-- src/
`-- ...
|-- test/
`-- Makefile.am
`-- test.sh
`-- test.py.in
test.py.in utilise des variables autotools pour générer test.py. Lancer configure génère en effet test.py, pour l'instant, tout va bien.
Mais, si je devais modifier test.py avant de faire mon make check, configure devrait être appelé pour régénérer test.py. Mais ce n'est pas le cas. Comment faire ?
---
Mon Makefile.am :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| check_SCRIPTS = \
test.sh \
$(NULL)
check_PROGRAMS = \
$(NULL)
testsuite_bin_SOURCES = \
$(NULL)
TESTS = \
test.sh \
$(NULL)
MOSTLYCLEANFILES = \
*.out *.err *.log \
$(NULL)
EXTRA_DIST = \
test.sh \
test.py \
$(NULL) |
Lancer make check alors que test.py a été supprimé :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| $ make check
make test.sh
make[1]: Entering directory `.../test'
make[1]: Nothing to be done for `test.sh'.
make[1]: Leaving directory `.../test'
make check-TESTS
make[1]: Entering directory `.../test'
*** './test.py' was not found - aborting test ***
FAIL: test.sh
=======================================
1 of 1 test failed
Please report to nobody@nohost.nodomain
=======================================
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory `/test
make: *** [check-am] Error 2 |
Un grand merci.
Nota : ce n'est pas vraiment une question à propos de C++, mais je suppose que le forum C++ est celui où je trouverai le plus de connaisseurs autotools. Sentez-vous libre de me suggérer un meilleur forum.
Partager