Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drahnr/waf-unites
Unit tests for waf, including logging and fancy output.
https://github.com/drahnr/waf-unites
Last synced: about 1 month ago
JSON representation
Unit tests for waf, including logging and fancy output.
- Host: GitHub
- URL: https://github.com/drahnr/waf-unites
- Owner: drahnr
- Created: 2014-04-24T09:15:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T06:57:10.000Z (over 8 years ago)
- Last Synced: 2024-05-01T21:29:33.551Z (7 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## waf-unites
[![Join the chat at https://gitter.im/drahnr/waf-unites](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/drahnr/waf-unites?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
A simple yet powerfull unit test suite
Runs tests on each build unless `--notests` is passed. The return value of the waf build process will be set to nonzero if one or more tests fail. It also has a permissive mode to allow tests to fail.
### Usage
Just copy the `unites.py` file to your project directory (where the desired waf file is, other wise you have to adjust the `tooldir=` path)
```python
def options(opt):
opt.load('unites', tooldir='.')
...def configure(cfg):
cfg.load('unites', tooldir='.')
...def build(bld):
# build your regular binary here
#...
# build any number of tests, just make sure it has the `unites` feature
atest = bld.program(
features = ['c', 'unites'],
target = 'multi-client-test',
source = ['test/multi-client.c'],
includes = ['src'],
...
)```