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:
- copy
tap-driver.sh
from your automake installation (autogen.sh:4-7
). - create a wrapper script that contains the following (
autogen.sh:12-15
):
#!/bin/sh
$1 -Otap:- --always-succeed 2>&1 >/dev/null
- Check for criterion (
configure.ac:5-7
). - Check for awk (
configure.ac:9
). - Check for
tap-driver.sh
(configure.ac:14
). - Set
LOG_COMPILER
to the path of the wrapper script created at step 2 (Makefile.am:2
). - Set
LOG_DRIVER
to a command runningtap-driver.sh
with our found awk (Makefile.am:5-6
). - Register your test programs (
Makefile.am:8-14
).
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.