diff options
author | Carl Hetherington <carl@carlh.net> | 2012-01-03 16:10:34 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-01-03 16:10:34 +0000 |
commit | 431a30b3a92b66c92cefcea22e9e8eba3cadbe91 (patch) | |
tree | a15344805b6077414350f7c9d3fd3e4c84ad9394 /doc | |
parent | b6438ed1f60def7a6c673405304b688787dd2ed1 (diff) |
Add notes on running unit tests.
git-svn-id: svn://localhost/ardour2/branches/3.0@11141 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'doc')
-rw-r--r-- | doc/unit_tests.txt | 13 | ||||
-rw-r--r-- | doc/waft | 17 |
2 files changed, 30 insertions, 0 deletions
diff --git a/doc/unit_tests.txt b/doc/unit_tests.txt new file mode 100644 index 0000000000..87ef4d212c --- /dev/null +++ b/doc/unit_tests.txt @@ -0,0 +1,13 @@ +Running unit tests +------------------ + +This is slightly neater if you have doc/waft on your path. + +1. Pass --test to waf configure +2. cd libs/ardour +3. waft --targets=libardour-tests && ./run-tests.sh + +The "--targets=libardour-tests" is optional, but it avoids a +rebuild of the whole gtk2_ardour (which isn't necessary for +running the tests). + diff --git a/doc/waft b/doc/waft new file mode 100644 index 0000000000..4e526ca9a1 --- /dev/null +++ b/doc/waft @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Copyright (C) Paul Davis 2011-2012 + +while true ; do + if [ -x ./waf ] ; then + ./waf "$@" + if [ "$?" -ne "0" ]; then + exit 1 + else + exit 0 + fi + fi + cd .. + if [ `pwd` = '/' ] ; then break; fi +done + |