diff options
| author | Günther Deschner <gdeschner@redhat.com> | 2013-03-22 20:18:56 +0100 |
|---|---|---|
| committer | Simo Sorce <simo@redhat.com> | 2013-04-05 09:47:18 -0400 |
| commit | 1cfac1ea9bd9c1f33283679df41ae9fb627448f7 (patch) | |
| tree | 07532f915d441c17fa5e29e7e266c3feed507754 /proxy | |
| parent | d489541613560155894164d9b66924545a5c844f (diff) | |
| download | gss-proxy-1cfac1ea9bd9c1f33283679df41ae9fb627448f7.tar.gz gss-proxy-1cfac1ea9bd9c1f33283679df41ae9fb627448f7.tar.xz gss-proxy-1cfac1ea9bd9c1f33283679df41ae9fb627448f7.zip | |
interposetest: test all possible proxy mode combinations when --all is given.
Conflicts:
proxy/tests/interposetest.c
Diffstat (limited to 'proxy')
| -rw-r--r-- | proxy/tests/interposetest.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/proxy/tests/interposetest.c b/proxy/tests/interposetest.c index ed286d6..bb08536 100644 --- a/proxy/tests/interposetest.c +++ b/proxy/tests/interposetest.c @@ -198,6 +198,10 @@ static int setup_gssproxy_behavior(int proxy_mode) { const char *env; + if (getenv("GSSPROXY_BEHAVIOR")) { + return 0; + } + env = lookup_gssproxy_behavior(proxy_mode); if (env == NULL) { return -1; @@ -893,6 +897,7 @@ int main(int argc, const char *argv[]) int opt; poptContext pc; int opt_version = 0; + int opt_all = 0; char *opt_target = NULL; int ret, i, k; @@ -902,6 +907,8 @@ int main(int argc, const char *argv[]) _("Specify the target name used for the tests"), NULL}, \ {"version", '\0', POPT_ARG_NONE, &opt_version, 0, \ _("Print version number and exit"), NULL }, \ + {"all", '\0', POPT_ARG_NONE, &opt_all, 0, \ + _("Test all gssproxy modes"), NULL }, \ POPT_TABLEEND }; @@ -927,6 +934,12 @@ int main(int argc, const char *argv[]) return 1; } + if (!opt_all) { + 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); |
