e70152e44cc66cc599ff6b699eb8adc07f3e656a kent Sat May 24 21:09:34 2014 -0700 Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment. diff --git src/lib/tests/miniBlat.c src/lib/tests/miniBlat.c index e17d141..703be01 100644 --- src/lib/tests/miniBlat.c +++ src/lib/tests/miniBlat.c @@ -1,26 +1,29 @@ +/* Copyright (C) 2008 The Regents of the University of California + * See README in this or parent directory for licensing information. */ + #include "common.h" #include "htmlPage.h" #include "qa.h" int main(int argc, char *argv[]) { char *url, *dnaFileName; struct htmlPage *rootPage, *page; struct htmlForm *mainForm; struct qaStatus *qs; if (argc != 3) errAbort("usage: %s url file", argv[0]); url = argv[1]; dnaFileName = argv[2]; qs = qaPageGet(url, &rootPage); if (qs->errMessage) errAbort("%s",qs->errMessage); if (qs->hardError) errAbort("hard error"); if ((mainForm = htmlFormGet(rootPage, "mainForm")) == NULL) errAbort("Couldn't get main form"); htmlPageSetVar(rootPage, mainForm, "seqFile", dnaFileName); qs = qaPageFromForm(rootPage, mainForm, "Submit", "submit", &page); if (qs->errMessage) errAbort("%s",qs->errMessage); if (qs->hardError) errAbort("hard error"); fprintf(stdout,"%s ok\n",page->fullText); htmlPageFree(&page); htmlPageFree(&rootPage); return 0; }