mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
libc/stdio: Provide proper TAP output for fmemopen/open_[w]memstream.
A *.t file should provide Test Anything Protocol output so that it can be run using the Perl "prove" tool.
This commit is contained in:
parent
ce6ba017fa
commit
e32a0090d8
3 changed files with 18 additions and 3 deletions
|
|
@ -7,4 +7,9 @@ executable=`basename $0 .t`
|
|||
|
||||
make $executable 2>&1 > /dev/null
|
||||
|
||||
exec ./$executable
|
||||
echo 1..1
|
||||
if ./$executable; then
|
||||
echo ok 1 - $executable successful
|
||||
else
|
||||
echo not ok 1 - $executable failed
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -7,4 +7,9 @@ executable=`basename $0 .t`
|
|||
|
||||
make $executable 2>&1 > /dev/null
|
||||
|
||||
exec ./$executable
|
||||
echo 1..1
|
||||
if ./$executable; then
|
||||
echo ok 1 - $executable successful
|
||||
else
|
||||
echo not ok 1 - $executable failed
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -7,4 +7,9 @@ executable=`basename $0 .t`
|
|||
|
||||
make $executable 2>&1 > /dev/null
|
||||
|
||||
exec ./$executable
|
||||
echo 1..1
|
||||
if ./$executable; then
|
||||
echo ok 1 - $executable successful
|
||||
else
|
||||
echo not ok 1 - $executable failed
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue