]> git.ipfire.org Git - thirdparty/krb5.git/commit
Rewrite not-yet-covered dejagnu tests in Python 1188/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 20 May 2021 21:31:49 +0000 (17:31 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 21 May 2021 15:32:49 +0000 (11:32 -0400)
commitbbce6a8beee93030b65edf3a6612064c621a34d9
treeb26858d57e0f6a5dbb04b218e5b0adcf208133de
parent8027531caf6911bb07bf13de087da0e6bef5a348
Rewrite not-yet-covered dejagnu tests in Python

Remove the dejagnu scripts gssapi.exp, princexpire.exp, sample.exp,
simple.exp, and tcp.exp.

Add server output checking to t_gss_sample.py to match the checks in
gssapi.exp.

Add a test to t_general.py matching the #6428 regression test in
princexpire.exp.

Add new test scripts t_sample.py and t_simply.py for the appl/sample
and appl/simple applications, to match sample.exp and simple.exp.
Adjust the simple and sample servers to allow for startup detection
when stdout is a pipe.  Both of these test servers exit after one
client execution; add a k5test function await_daemon_exit() to allow
the daemon exit status to be checked without sending a kill signal.
Change start_in_inetd() not to require the program name to be
specified twice.  Adjust the existing t_user2user.py for the
aforementioned changes.

Add a TCP test to t_bigreply.py to match the oversized-TCP-request
test in tcp.exp.  The existing t_bigreply.py test already covers a
successful TCP request.
16 files changed:
src/appl/gss-sample/t_gss_sample.py
src/appl/sample/Makefile.in
src/appl/sample/sserver/sserver.c
src/appl/sample/t_sample.py [new file with mode: 0644]
src/appl/simple/Makefile.in
src/appl/simple/server/sim_server.c
src/appl/simple/t_simple.py [new file with mode: 0644]
src/appl/user_user/t_user2user.py
src/kdc/t_bigreply.py
src/tests/dejagnu/krb-standalone/gssapi.exp [deleted file]
src/tests/dejagnu/krb-standalone/princexpire.exp [deleted file]
src/tests/dejagnu/krb-standalone/sample.exp [deleted file]
src/tests/dejagnu/krb-standalone/simple.exp [deleted file]
src/tests/dejagnu/krb-standalone/tcp.exp [deleted file]
src/tests/t_general.py
src/util/k5test.py