Diff
Not logged in

Differences From Artifact [bd16816b2d]:

To Artifact [ff12e2dd95]:


390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405














406
407
408
409
410
411
412
390
391
392
393
394
395
396









397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417







-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+







		  (change-directory orig-dir)
		  ;; NB// tests:test-set-toplog! is remote internal...
		  (tests:test-set-toplog! run-id test-name outputfilename)
		  )))))))

;; summarize test
(define (tests:summarize-test run-id test-id)
  (let ((test-dat  (rmt:get-test-info-by-id run-id test-id))
	(steps-dat (rmt:get-steps-for-test run-id test-id))
	(test-name (db:test-get-testname test-dat)))
    (with-output-to-file "test-summary.html"
      (lambda ()
	(print "<html><title>Summary: " test-name
	       "</title><body><h2>Summary for " test-name "</h2>")
	(print "<table>

  (let* ((test-dat  (rmt:get-test-info-by-id run-id test-id))
	 (steps-dat (rmt:get-steps-for-test run-id test-id))
	 (test-name (db:test-get-testname test-dat))
	 (oup       (open-output-file "test-summary.html")))
    (s:output-new
     oup
     (s:html
      (s:title "Summary: " test-name)
      (s:body 
       (s:h2 "Summary for " test-name)
       )))
    (close-output-port oup)))
	  
	  
;; MUST BE CALLED local!
;;
(define (tests:test-get-paths-matching keynames target fnamepatt #!key (res '()))
  ;; BUG: Move the values derived from args to parameters and push to megatest.scm
  (let* ((testpatt   (if (args:get-arg "-testpatt")(args:get-arg "-testpatt") "%"))
	 (statepatt  (if (args:get-arg ":state")   (args:get-arg ":state")    "%"))
	 (statuspatt (if (args:get-arg ":status")  (args:get-arg ":status")   "%"))