Megatest

Diff
Login

Differences From Artifact [18a5f67c75]:

To Artifact [f5a3b33f3a]:


341
342
343
344
345
346
347


348

349
350


351
352
353
354
355
356
357
341
342
343
344
345
346
347
348
349

350
351

352
353
354
355
356
357
358
359
360







+
+
-
+

-
+
+







;; 
(define (get-itemized-tests test-dats)
  (let ((tnames '()))
    (for-each (lambda (tdat)
		(let ((tname (vector-ref tdat 0))  ;; (db:test-get-testname tdat))
		      (ipath (vector-ref tdat 1))) ;; (db:test-get-item-path tdat)))
		  (if (not (equal? ipath ""))
		      (if (and (list? tnames)
			       (string? tname)
		      (if (not (member tname tnames))
			       (not (member tname tnames)))
			  (set! tnames (append tnames (list tname)))))))
	      test-dats)))
	      test-dats)
    tnames))

;; Bubble up the top tests to above the items, collect the items underneath
;; all while preserving the sort order from the SQL query as best as possible.
;;
(define (bubble-up test-dats #!key (priority 'itempath))
  (if (null? test-dats)
      test-dats