Megatest

Diff
Login

Differences From Artifact [55a7eef5b7]:

To Artifact [95b92a9335]:


1
2
3
4
5
6
7
8
9
10
11











12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28






29
30
(import big-chicken trace rmtmod apimod dbmod ulex srfi-18)
(trace-call-sites #t)
(trace 
  ;; db:get-tests-for-run
  ;; rmt:general-open-connection
  ;; rmt:open-main-connection
  ;; rmt:drop-conn
  ;; rmt:send-receive
  ;; rmt:log-to-main
  )












(define th1 
  (make-thread
    (lambda ()
(let loop ((r 1)
	   (i 1))
   (print "register-test "r" test"i)
   (rmt:register-test r "test1" (conc "item_" i))
   (if (< i 100000)
       (loop r (+ i 1))
       (if (< r 100)
	   (begin
	      (print "get-tests-for-run "r)
              (rmt:get-tests-for-run r "%" '() '() 0 #f #f #f #f #f 0 #f)
 	      (loop (+ r 1) 0)))))
)))
(thread-start! th1)
(thread-join! th1)



















>
>
>
>
>
>
>
>
>
>
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(import big-chicken trace rmtmod apimod dbmod ulex srfi-18)
(trace-call-sites #t)
(trace 
  ;; db:get-tests-for-run
  ;; rmt:general-open-connection
  ;; rmt:open-main-connection
  ;; rmt:drop-conn
  ;; rmt:send-receive
  ;; rmt:log-to-main
  )


(module junk
	*

  (import big-chicken rmtmod apimod dbmod srfi-18)
  
(define (make-run-id)
  (let* ((s (conc (current-process-id)))
	 (l (string-length s)))
    (string->number (conc (string-ref s (- l 1))))))

(define (run)
  (let* ((th1 (make-thread
	       (lambda ()
		 (let loop ((r (* 20 (make-run-id)))
			    (i 1))
		   (print "register-test "r" test"i)
		   (rmt:register-test r "test1" (conc "item_" i))
		   (if (< i 100000)
		       (loop r (+ i 1))
		       (if (< r 100)
			   (begin
			     (print "get-tests-for-run "r)
			     (rmt:get-tests-for-run r "%" '() '() 0 #f #f #f #f #f 0 #f)
			     (loop (+ r 1) 0)))))
		 ))))
    (thread-start! th1)
    (thread-join! th1)))

)

(import junk)
(run)