Megatest

Diff
Login

Differences From Artifact [a60f4b1566]:

To Artifact [ee85f9ff78]:


230
231
232
233
234
235
236
237

238
239
240
241
242
243
244
245
246
247



248
249

250
251
252
253

254
255
256
257
258
259
260
230
231
232
233
234
235
236

237
238
239
240
241
242
243
244



245
246
247
248

249
250
251
252

253
254
255
256
257
258
259
260







-
+







-
-
-
+
+
+

-
+



-
+







(define *common:this-exe-fullpath* (common:get-this-exe-fullpath))
(define *common:this-exe-dir*      (pathname-directory *common:this-exe-fullpath*))
(define *common:this-exe-name*     (pathname-strip-directory *common:this-exe-fullpath*))

;; when called from a wrapper I need sometimes to find the calling
;; wrapper, this is for dashboard to find the correct megatest.
;;
(define (common:find-local-megatest)
(define (common:find-local-megatest #!optional (progname "megatest"))
  (let ((res (filter file-exists?
		     (map (lambda (updir)
			    (let* ((lm  (car (argv)))
				   (dir (pathname-directory lm))
				   (exe (pathname-strip-directory lm)))
			      (conc (if dir (conc dir "/") "")
				    (case (string->symbol exe)
				      ((dboard)    (conc updir "megatest"))
				      ((mtest)     (conc updir "megatest"))
				      ((dashboard) "megatest")
				      ((dboard)    (conc updir progname))
				      ((mtest)     (conc updir progname))
				      ((dashboard) progname)
				      (else exe)))))
			  '("../" "../../")))))
			  '("../../" "../")))))
    (if (null? res)
	(begin
	  (debug:print 0 *current-log-port* "Failed to find this executable! Using what can be found on the path")
	  "megatest")
	  progname)
	(car res))))

(define *common:logpro-exit-code->status-sym-alist*
  '( ( 0 . pass )
     ( 1 . fail )
     ( 2 . warn )
     ( 3 . check )