mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-15 00:00:04 -04:00
3145. [test] Capture output of ATF unit tests in "./atf.out" if
there were any errors while running them. [RT #25527]
This commit is contained in:
parent
91cfa3af2c
commit
4efd18941d
4 changed files with 14 additions and 3 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
3145. [test] Capture output of ATF unit tests in "./atf.out" if
|
||||
there were any errors while running them. [RT #25527]
|
||||
|
||||
3144. [bug] dns_dbiterator_seek() could trigger an assert when
|
||||
used with a nonexistent database node. [RT #25358]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
Makefile
|
||||
atf.out
|
||||
master_test
|
||||
ncache_test
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: Makefile.in,v 1.2.6.4 2011/08/23 00:57:11 each Exp $
|
||||
# $Id: Makefile.in,v 1.2.6.5 2011/08/23 01:28:41 each Exp $
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
|
@ -63,3 +63,4 @@ unit::
|
|||
|
||||
clean distclean::
|
||||
rm -f ${TARGETS}
|
||||
rm -f atf.out
|
||||
|
|
|
|||
|
|
@ -14,12 +14,18 @@
|
|||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: unittest.sh.in,v 1.2.6.6 2011/03/03 11:24:43 marka Exp $
|
||||
# $Id: unittest.sh.in,v 1.2.6.7 2011/08/23 01:28:42 each Exp $
|
||||
|
||||
PATH=${PATH}:@ATFBIN@
|
||||
export PATH
|
||||
|
||||
if [ -n "@ATFBIN@" ]
|
||||
then
|
||||
atf-run | atf-report -o csv:- | cat
|
||||
atf-run > atf.out
|
||||
status=$?
|
||||
|
||||
# | cat is there to force non-fancy output
|
||||
atf-report < atf.out | cat
|
||||
|
||||
[ $status -eq 0 ] && rm -f atf.out
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue