summaryrefslogtreecommitdiff
path: root/xc/programs
diff options
context:
space:
mode:
authorjoel <empty>1989-10-25 14:57:24 +0000
committerjoel <empty>1989-10-25 14:57:24 +0000
commit9b025cd1a24467dba3095fc9a6d2f225583643fe (patch)
tree66120e7c1653e31d7ad0c0c32745d6143c4361bb /xc/programs
parent45babde2f5a41efc85ed99e1f7815471ce95912e (diff)
Added -start option
Diffstat (limited to 'xc/programs')
-rw-r--r--xc/programs/x11perf/x11perf.c20
-rw-r--r--xc/programs/x11perf/x11perf.man5
2 files changed, 24 insertions, 1 deletions
diff --git a/xc/programs/x11perf/x11perf.c b/xc/programs/x11perf/x11perf.c
index f6428e25c..95d4682d6 100644
--- a/xc/programs/x11perf/x11perf.c
+++ b/xc/programs/x11perf/x11perf.c
@@ -267,6 +267,7 @@ void usage()
" -time <s> do tests for <s> seconds each (default = 5)",
/*" -draw draw after each test -- pmax only",*/
" -all do all tests",
+" -start <test> like all, but start at <test>",
" -labels generate test labels for use by fillblanks.sh",
" -fg the foreground color to use",
" -bg the background color to use",
@@ -609,7 +610,23 @@ main(argc, argv)
foundOne = True;
} else if (strcmp (argv[i], "-labels") == 0) {
labels = True;
- } else if (strcmp (argv[i], "-sync") == 0) {
+ } else if (strcmp(argv[i], "-start") == 0) {
+ if (argc <= i)
+ usage();
+ i++;
+ ForEachTest (j) {
+ if (strcmp (argv[i], test[j].option) == 0) {
+ int k;
+ for (k = j; test[k].option != NULL; k++) {
+ doit[k] = True;
+ }
+ break;
+ }
+ }
+ if (test[j].option == NULL)
+ usage();
+ foundOne = True;
+ } else if (strcmp (argv[i], "-sync") == 0) {
synchronous = True;
} else if (strcmp (argv[i], "-draw") == 0) {
drawToFakeServer = True;
@@ -788,6 +805,7 @@ main(argc, argv)
/* Test failed to initialize properly */
}
printf ("\n");
+ fflush(stdout);
if (!test[i].children)
break;
child++;
diff --git a/xc/programs/x11perf/x11perf.man b/xc/programs/x11perf/x11perf.man
index 5b3ebffa2..9818d4c40 100644
--- a/xc/programs/x11perf/x11perf.man
+++ b/xc/programs/x11perf/x11perf.man
@@ -114,6 +114,11 @@ Specifies how long in seconds each test should be run (default 5 seconds).
.B \-all
Runs all tests. This may take a while.
.TP 14
+.B \-start \fI<test>\fP
+Runs all tests starting at
+.I test.
+``x11perf -start -dot'' is equivalent to ``x11perf -all''.
+.TP 14
.B \-labels
Generates just the descriptive labels for each test. See
.I x11perfcomp