@@ -14,25 +14,10 @@ ;; ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see . ;; -;; megatest.scm mofiles/autoload.o mofiles/dbi.o mofiles/ducttape-lib.o -;; mofiles/pkts.o mofiles/stml2.o mofiles/cookie.o mofiles/mutils.o -;; mofiles/mtargs.o - -;; (include "mutils/mutils.scm") -;; (include "autoload/autoload.scm") -;; (include "dbi/dbi.scm") -;; (include "stml2/cookie.scm") -;; (include "stml2/stml2.scm") -;; (include "pkts/pkts.scm") -;; (include "csv-xml/csv-xml.scm") -;; (include "ducttape/ducttape-lib.scm") -;; (include "hostinfo/hostinfo.scm") -;; (include "adjutant.scm") - (declare (uses autoload)) (declare (uses dbi)) (declare (uses pkts)) (declare (uses stml2)) (declare (uses cookie)) @@ -165,18 +150,17 @@ (define setenv set-environment-variable!) (define unsetenv unset-environment-variable!) (define *db* #f) ;; this is only for the repl, do not use in general!!!! -;; (include "common_records.scm") +(include "common_records.scm") ;; (include "key_records.scm") -;; (include "db_records.scm") -;; (include "run_records.scm") +(include "db_records.scm") +(include "run_records.scm") ;; (include "test_records.scm") (include "common.scm") -;; (include "margs.scm") (include "db.scm") (include "server.scm") (include "tests.scm") (include "genexample.scm") (include "tdb.scm") @@ -746,17 +730,17 @@ (process:children #f)) (original-exit exit-code))))) ;; for some switches always print the command to stderr ;; - (if (args:any? "-run" "-runall" "-remove-runs" "-set-state-status" "-kill-runs" "-kill-rerun") + (if (args:any-defined? "-run" "-runall" "-remove-runs" "-set-state-status" "-kill-runs" "-kill-rerun") (debug:print 0 *default-log-port* (string-intersperse (argv) " "))) ;; some switches imply homehost. Exit here if not on homehost ;; (let ((homehost-required (list "-cleanup-db" "-server"))) - (if (apply args:any? homehost-required) + (if (apply args:any-defined? homehost-required) (if (not (common:on-homehost?)) (for-each (lambda (switch) (if (args:get-arg switch) (begin @@ -1562,11 +1546,11 @@ runs-spec) (newline))))) (for-each (lambda (test) - (common:debug-handle-exceptions #f + (handle-exceptions exn (begin (debug:print-error 0 *default-log-port* "Bad data in test record? " test) (debug:print-error 5 *default-log-port* "exn=" (condition->list exn)) (debug:print 0 *default-log-port* " message: " ((condition-property-accessor 'exn 'message) exn)) @@ -2630,7 +2614,7 @@ (else (exit 3))))) ) ) -;; (main) -(print "Got here") +(main) +