From c3a36be0184c4abdd22e3fc01dc29861678c80ec Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 22 Mar 2013 20:18:56 +0100 Subject: Test all possible proxy mode combinations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner Reviewed-by: Simo Sorce --- proxy/tests/interposetest.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/proxy/tests/interposetest.c b/proxy/tests/interposetest.c index dfcb448..5912ec5 100644 --- a/proxy/tests/interposetest.c +++ b/proxy/tests/interposetest.c @@ -895,6 +895,7 @@ int main(int argc, const char *argv[]) poptContext pc; int opt_version = 0; char *opt_target = NULL; + int ret, i, k; struct poptOption long_options[] = { POPT_AUTOHELP @@ -927,7 +928,19 @@ int main(int argc, const char *argv[]) return 1; } - return run_cli_srv_test(PROXY_LOCAL_ONLY, - PROXY_LOCAL_ONLY, - opt_target); + for (i=0; i<4; i++) { + for (k=0; k<4; k++) { + ret = run_cli_srv_test(i, k, opt_target); + fprintf(stderr, "Running test with server proxy mode %s " + "and client proxy mode %s %s\n", + lookup_gssproxy_behavior(i), + lookup_gssproxy_behavior(k), + ret ? "failed" : "succeeded"); + if (ret) { + return ret; + } + } + } + + return ret; } -- cgit