r20757: Strip recipe functionality (should be one layer up)
authorJelmer Vernooij <jelmer@samba.org>
Sun, 14 Jan 2007 05:06:50 +0000 (05:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:40:45 +0000 (14:40 -0500)
(This used to be commit a3f7b184735fb6467bec03eeff53a72003a78097)

source4/torture/smbtorture.c

index b06fb19f3d320b5fa29dcfc61b283ac6809969e7..018c7260af668fd1aa4530d700b5acd89118828d 100644 (file)
@@ -423,33 +423,6 @@ const static struct torture_ui_ops quiet_ui_ops = {
        .test_result = quiet_test_result
 };
 
-void run_recipe(struct torture_context *tctx, const char *recipe)
-{
-       int numlines, i, ret;
-       char **lines;
-
-       lines = file_lines_load(recipe, &numlines, NULL);
-       if (lines == NULL) {
-               fprintf(stderr, "Unable to load file %s\n", recipe);
-               return;
-       }
-
-       for (i = 0; i < numlines; i++) {
-               int argc;
-               const char **argv;
-
-               ret = poptParseArgvString(lines[i], &argc, &argv);
-               if (ret != 0) {
-                       fprintf(stderr, "Error parsing line\n");
-                       continue;
-               }
-
-               run_test(tctx, argv[0]);
-       }
-
-       talloc_free(lines);
-}
-
 void run_shell(struct torture_context *tctx)
 {
        char *cline;
@@ -686,9 +659,7 @@ int main(int argc,char *argv[])
                double rate;
                int unexpected_failures;
                for (i=2;i<argc_new;i++) {
-                       if (argv_new[i][0] == '@') {
-                               run_recipe(torture, argv_new[i]+1);
-                       } else if (!run_test(torture, argv_new[i])) {
+                       if (!run_test(torture, argv_new[i])) {
                                correct = false;
                        }
                }