src/lib/tests/gff3Tester.c 1.1

1.1 2009/04/22 16:56:49 markd
added initial implementation of gff3 parser. Still has some rough edges and problems due to ambiguities in the GFF3 specification
Index: src/lib/tests/gff3Tester.c
===================================================================
RCS file: src/lib/tests/gff3Tester.c
diff -N src/lib/tests/gff3Tester.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ src/lib/tests/gff3Tester.c	22 Apr 2009 16:56:49 -0000	1.1
@@ -0,0 +1,31 @@
+/* gff3Tester - tester for GFF3 objects */
+
+#include "common.h"
+#include "gff3.h"
+
+static void usage()
+/* Print usage message */
+{
+errAbort(
+   "gff3Tester - tester for GFF3 objects\n"
+   "usage:\n"
+   "   gff3Tester gff3In gff3Out\n"
+   "\n");
+}
+static void gff3Tester(char *gff3InFile, char *gff3OutFile)
+/* tester for GFF3 objects */
+{
+struct gff3File *g3f = gff3FileOpen(gff3InFile, -1, NULL);
+gff3FileWrite(g3f, gff3OutFile);
+gff3FileFree(&g3f);
+}
+
+int main(int argc, char *argv[])
+{
+if (argc != 3)
+    usage();
+gff3Tester(argv[1], argv[2]);
+return 0;
+}
+
+