This is a project skeleton that uses criterion tests with the TAP test driver.
Be sure to do the following to get similar setups to work:
- Check for
Criterion
(configure.ac:5-7
). - Substitute the flags needed to link against
Criterion
(configure.ac:9-10
). - Check for
awk
(configure.ac:12
). - Check for
tap-driver.sh
(configure.ac:17
). - Set
LOG_DRIVER
to a command runningtap-driver.sh
with our found awk (Makefile.am:2-3
). - Set
AM_TESTS_ENVIRONMENT
to ensure thatCriterion
outputs its results using TAP (Makefile.am:6-8
). - Register your test program (
Makefile.am:10-17
).
The default setup assumes that criterion is installed on your system.
$ ./autogen.sh
$ mkdir build && cd build
$ ../configure
$ make check
The project skeleton is licensed under the wtfpl. Do whatever you want with it.
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://www.wtfpl.net/ for more details.