summaryrefslogtreecommitdiffstats
path: root/proxy/tests
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-03-22 20:18:56 +0100
committerSimo Sorce <simo@redhat.com>2013-03-27 10:30:35 -0400
commitc3a36be0184c4abdd22e3fc01dc29861678c80ec (patch)
tree68afe52454e63cb6656d636556901ffd3e1a4320 /proxy/tests
parent018e8c95440033122d60b695eaba3d8b218cb535 (diff)
downloadgss-proxy-c3a36be0184c4abdd22e3fc01dc29861678c80ec.tar.gz
gss-proxy-c3a36be0184c4abdd22e3fc01dc29861678c80ec.tar.xz
gss-proxy-c3a36be0184c4abdd22e3fc01dc29861678c80ec.zip
Test all possible proxy mode combinations.
Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/tests')
-rw-r--r--proxy/tests/interposetest.c19
1 files 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;
}