[poppler] test: ChangeLog,1.10,1.11 test-poppler.c,1.3,1.4
Jeff Muizelaar
jrmuizel at freedesktop.org
Tue Dec 27 11:17:08 PST 2005
Update of /cvs/poppler/test
In directory gabe:/tmp/cvs-serv4740
Modified Files:
ChangeLog test-poppler.c
Log Message:
2005-12-27 Jeff Muizelaar <jeff at infidigm.net>
* test-poppler.c: (main):
Make it possible to specify tests on the command line.
Index: ChangeLog
===================================================================
RCS file: /cvs/poppler/test/ChangeLog,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ChangeLog 19 Dec 2005 06:34:25 -0000 1.10
+++ ChangeLog 27 Dec 2005 19:17:06 -0000 1.11
@@ -1,3 +1,8 @@
+2005-12-27 Jeff Muizelaar <jeff at infidigm.net>
+
+ * test-poppler.c: (main):
+ Make it possible to specify tests on the command line.
+
2005-12-19 Jeff Muizelaar <jeff at infidigm.net>
* tests/cropbox.pdf-1-cairo-ref.png:
Index: test-poppler.c
===================================================================
RCS file: /cvs/poppler/test/test-poppler.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- test-poppler.c 10 Dec 2005 04:15:49 -0000 1.3
+++ test-poppler.c 27 Dec 2005 19:17:06 -0000 1.4
@@ -103,10 +103,17 @@
glob_t globbuf;
int i;
g_type_init ();
- glob("tests/*.pdf", 0, NULL, &globbuf);
- for (i=0; i<globbuf.gl_pathc; i++) {
- poppler_test(globbuf.gl_pathv[i]);
+ if (argc > 1) {
+ for (i=1; i<argc; i++) {
+ poppler_test(argv[i]);
+ }
+ } else {
+ glob("tests/*.pdf", 0, NULL, &globbuf);
+ for (i=0; i<globbuf.gl_pathc; i++) {
+ poppler_test(globbuf.gl_pathv[i]);
+ }
}
+
return 0;
}
More information about the poppler
mailing list