Megatest

Diff
Login

Differences From Artifact [debfa33c05]:

To Artifact [20fa3aaa0f]:


731
732
733
734
735
736
737
738

739
740
741
742
743

744
745
746
747
748
749
750
731
732
733
734
735
736
737

738
739
740
741
742
743
744
745
746
747
748
749
750
751







-
+





+








;;======================================================================
;; Start the server - can be done in conjunction with -runall or -runtests (one day...)
;;   we start the server if not running else start the client thread
;;======================================================================

(if (args:get-arg "-server")
    

    ;; Server? Start up here.
    ;;
    (let* ((tl        (launch:setup))
           (run-id    (and (args:get-arg "-run-id")
                           (string->number (args:get-arg "-run-id")))))
      (BB> "megatest -server called; starting server")
      (if run-id
          (begin
	    (server:launch run-id (->string *transport-type*))
	    (set! *didsomething* #t))
	  (debug:print-error 0 *default-log-port* "server requires run-id be specified with -run-id")))
    
    ;; Not a server? This section will decide how to communicate