+ int argc;
+ char *argv[MAXARGS];
+
+ argc = parse(cmdbuf, argv);
+ if (argc == 0)
+ return;
+ if (!strcmp(argv[0], "noop"))
+ test_noop();
+ else if (!strcmp(argv[0], "connect") || !strcmp(argv[0], "c"))
+ test_connect(argc, argv);
+ else if (!strcmp(argv[0], "disconnect") || !strcmp(argv[0], "d"))
+ test_disconnect();
+ else if (!strcmp(argv[0], "host"))
+ test_host();
+ else if (!strcmp(argv[0], "motd") || !strcmp(argv[0], "m"))
+ test_motd();
+ else if (!strcmp(argv[0], "query") || !strcmp(argv[0], "qy"))
+ test_query(argc, argv);
+ else if (!strcmp(argv[0], "auth") || !strcmp(argv[0], "a"))
+ test_krb5_auth();
+ else if (!strcmp(argv[0], "proxy") || !strcmp(argv[0], "p"))
+ test_proxy(argc, argv);
+ else if (!strcmp(argv[0], "access"))
+ test_access(argc, argv);
+ else if (!strcmp(argv[0], "dcm"))
+ test_dcm();
+ else if (!strcmp(argv[0], "script") || !strcmp(argv[0], "s"))
+ test_script(argc, argv);
+ else if (!strcmp(argv[0], "list_requests") ||
+ !strcmp(argv[0], "lr") || !strcmp(argv[0], "?"))
+ test_list_requests();
+ else if (!strcmp(argv[0], "quit") || !strcmp(argv[0], "Q"))
+ quit = 1;
+ else if (!strcmp(argv[0], "version") || !strcmp(argv[0], "v"))
+ test_version(argc, argv);
+ else if (!strcmp(argv[0], "krb4_auth") || !strcmp(argv[0], "4"))
+ test_auth();
+ else
+ {
+ fprintf(stderr, "moira: Unknown request \"%s\". "
+ "Type \"?\" for a request list.\n", argv[0]);
+ }