tests: improve `ccnoco*.test', better cross-compiling support
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 May 2011 13:05:40 +0000 (15:05 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 May 2011 13:05:40 +0000 (15:05 +0200)
commit2e12798cb90f9d603285c77ee79f5f9ae658abde
treed4f2a779d9603cd9ec1ba345035fe7e55b5ab1af
parent1936aaa83cd7d645155a6e21a68db269d5f68f3f
tests: improve `ccnoco*.test', better cross-compiling support

* tests/ccnoco3.test (Mycomp): Use the `$CC' chosen by `tests/defs'
instead of forcing `gcc' unconditionally.  This ensures better
coverage in case of cross-compiling, when GCC can be named e.g.,
`i586-mingw32msvc-gcc', instead of simply `gcc'.
* tests/ccnoco.test: Likewise.  Remove redundant checks.  Modernize
the created `configure.in'.  Run tests both in-tree and in VPATH.
Export `CC' to the overridden value only once.
* tests/ccnoco2.test: Slightly stricter grepping of automake
stderr.  Add trailing `:' command.
ChangeLog
tests/ccnoco.test
tests/ccnoco2.test
tests/ccnoco3.test