Megatest

Diff
Login

Differences From Artifact [7dfd12d402]:

To Artifact [0faea80728]:


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
15
16
17
18
19
20
21

22
23

24
25
26
27
28
29
30







-


-







;; 
;;     You should have received a copy of the GNU General Public License
;;     along with Megatest.  If not, see <http://www.gnu.org/licenses/>.

;;======================================================================

(declare (unit mtmod))
;; (declare (uses mtargs))
(declare (uses debugprint))
(declare (uses commonmod))
(declare (uses dbmod))
(declare (uses configfmod))

(module mtmod
	*
	
(import scheme

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
38
39
40
41
42
43
44


45

46
47
48
49
50
51
52







-
-

-







	chicken.process
	chicken.process-context
	chicken.sort
	chicken.string
	chicken.time

	debugprint
	;; mtargs
	;; pkts
	commonmod
	dbmod
	configfmod
	
	(prefix base64 base64:)
	(prefix dbi dbi:)
	(prefix sqlite3 sqlite3:)
	(srfi 18)
	directory-utils
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
87
88
89
90
91
92
93





94
95
96
97
98
99
100







-
-
-
-
-







(include "db_records.scm")
;; (include "run_records.scm")
;; (include "test_records.scm")

;; This is the Megatest API. All generally "useful" routines will be wrapped or extended
;; here.


(define (mt:get-run-stats dbstruct run-id)
;;  Get run stats from local access, move this ... but where?
  (db:get-run-stats dbstruct run-id))

(define (mt:discard-blocked-tests run-id failed-test tests test-records)
  (if (null? tests)
      tests
      (begin
	(debug:print-info 1 *default-log-port* "Discarding tests from " tests " that are waiting on " failed-test)
	(let loop ((testn (car tests))
		   (remt  (cdr tests))