24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
(test #f #t (vector? (rmt:get-connection-info toppath))) ;; TODO: push areapath down.
(test #f #t (string? (server:check-if-running ".")))
;; DEF (test #f #f (rmt:send-receive-no-auto-client-setup *runremote* 'get-keys #f '()))
;; DEF (rmt:kill-server run-id)
;; DEF (rmt:start-server run-id)
(test #f '(#t "successful login")(rmt:login #f))
(test-batch rmt:login
"rmt:login"
(list (list "good" (list #t "successful login") #f)
(list "bad" (list #f "login failed") #t)))
;; DEF (rmt:login-no-auto-client-setup connection-info)
(test #f #t (pair? (rmt:get-latest-host-load (get-host-name))))
;; get-latest-host-load does a lookup in the db, it won't return a useful value unless
;; a test ran recently on host
(test-batch rmt:get-latest-host-load
"rmt:get-latest-host-load"
|
<
<
<
<
<
<
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
(test #f #t (vector? (rmt:get-connection-info toppath))) ;; TODO: push areapath down.
(test #f #t (string? (server:check-if-running ".")))
;; DEF (test #f #f (rmt:send-receive-no-auto-client-setup *runremote* 'get-keys #f '()))
;; DEF (rmt:kill-server run-id)
;; DEF (rmt:start-server run-id)
(test #f '(#t "successful login")(rmt:login #f))
;; DEF (rmt:login-no-auto-client-setup connection-info)
(test #f #t (pair? (rmt:get-latest-host-load (get-host-name))))
;; get-latest-host-load does a lookup in the db, it won't return a useful value unless
;; a test ran recently on host
(test-batch rmt:get-latest-host-load
"rmt:get-latest-host-load"
|
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
(tpt "%/%")) ;; target patt
(test-batch rmt:get-runs-by-patt
"rmt:get-runs-by-patt"
(list (list "t=0" #t keys rnp tpt #f #f #f 0)
(list "t=current" #f keys rnp tpt #f #f #f (+ 100 (current-seconds))) ;; should be no records from the future
)
post-proc: (lambda (res)
(print "rmt:get-runs-by-patt returned: " res)
(and (vector? res)
(let ((rows (vector-ref res 1)))
(> (length rows) 0))))))
;; (rmt:find-and-mark-incomplete run-id ovr-deadtime)
;; (rmt:get-main-run-stats run-id)
;; (rmt:get-var varname)
|
|
|
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
(tpt "%/%")) ;; target patt
(test-batch rmt:get-runs-by-patt
"rmt:get-runs-by-patt"
(list (list "t=0" #t keys rnp tpt #f #f #f 0)
(list "t=current" #f keys rnp tpt #f #f #f (+ 100 (current-seconds))) ;; should be no records from the future
)
post-proc: (lambda (res)
;; (print "rmt:get-runs-by-patt returned: " res)
(and (vector? res)
(let ((rows (vector-ref res 1)))
(> (length rows) 0))))))
;; (rmt:find-and-mark-incomplete run-id ovr-deadtime)
;; (rmt:get-main-run-stats run-id)
;; (rmt:get-var varname)
|