Overview
Comment: | ittybitty edits |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | massive-refactor |
Files: | files | file ages | folders |
SHA1: |
4ff88888bda4a068d776177e4face383 |
User & Date: | matt on 2012-05-07 00:09:05 |
Other Links: | branch diff | manifest | tags |
Context
2012-05-07
| ||
00:09 | ittybitty edits Closed-Leaf check-in: 4ff88888bd user: matt tags: massive-refactor | |
2012-05-06
| ||
23:26 | ititbity changes check-in: 3afc52233e user: matt tags: massive-refactor | |
Changes
Modified dashboard-new.scm from [b131f50619] to [1f8a9ff8d1].
︙ | ︙ | |||
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | 0)) (if (args:get-arg "-h") (begin (print help) (exit))) (define *panels* (make-hash-table)) (define (dboard:panel toppath) (let* ((db (open-db toppath)) (db-file-path (conc toppath "/megatest.db")) (read-only (not (file-read-access? db-file-path))) (toplevel #f) (dlg #f) | > > > > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | 0)) (if (args:get-arg "-h") (begin (print help) (exit))) ;; Globals and constants ;; (define *panels* (make-hash-table)) (define blank-line-rx (regexp "^\\s*$")) (define (dboard:panel toppath) (let* ((db (open-db toppath)) (db-file-path (conc toppath "/megatest.db")) (read-only (not (file-read-access? db-file-path))) (toplevel #f) (dlg #f) |
︙ | ︙ | |||
104 105 106 107 108 109 110 | (delayed-update 0) (tests-sort-reverse #f) (hide-empty-runs #f) (ui-dat #f) (megatest-config (setup-for-run toppath)) (megatest-configdat #f) (my-run-shell (cmdshell:make-shell "/bin/bash" toppath)) | | > > > > > > > > > > > | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | (delayed-update 0) (tests-sort-reverse #f) (hide-empty-runs #f) (ui-dat #f) (megatest-config (setup-for-run toppath)) (megatest-configdat #f) (my-run-shell (cmdshell:make-shell "/bin/bash" toppath)) (my-env-vars '()) ;; stack up all var val pairs here (collapsed (make-hash-table)) ;; functions (db:been-changed (lambda () (> (file-modification-time (conc toppath*"/megatest.db")) last-db-update-time)))) ; (define *row-lookup* (make-hash-table)) ;; testname => (rownum lableobj) (if (not megatest-config) (begin (print "Failed to find megatest.config, canceling open of " toppath) (sqlite3:finalize! db)) (begin (set! megatest-configdat (if (car megatest-config)(car megatest-config) #f)) ;; (cmdshell:set-env-var my-run-shell "MT_RUN_AREA_HOME" toppath) ;;; NOPE, cache up the vars (set! my-env-vars (append my-env-vars (list (list "MT_RUN_AREA_HOME" toppath)))) ;; here is where the persistent proc lives (to be run in a thread) (lambda () (set!last-db-update-time (file-modification-time (conc toppath "/megatest.db"))) (define (db:set-db-update-time) (set! *last-db-update-time* (file-modification-time (conc *toppath* "/megatest.db")))) (define *verbosity* (cond ((args:get-arg "-debug")(string->number (args:get-arg "-debug"))) ((args:get-arg "-v") 2) ((args:get-arg "-q") 0) |
︙ | ︙ | |||
200 201 202 203 204 205 206 | (set! *header* header) (set! *allruns* result) (debug:print 6 "*allruns* has " (length *allruns*) " runs") ;; (set! *tot-run-count* (+ 1 (length *allruns*))) maxtests)) *num-tests*))) ;; FIXME, naughty coding eh? | < < < < < | 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 | (set! *header* header) (set! *allruns* result) (debug:print 6 "*allruns* has " (length *allruns*) " runs") ;; (set! *tot-run-count* (+ 1 (length *allruns*))) maxtests)) *num-tests*))) ;; FIXME, naughty coding eh? (define (toggle-hide lnum) ; fulltestname) (let* ((btn (vector-ref (dboard:uidat-get-lftcol uidat) lnum)) (fulltestname (iup:attribute btn "TITLE")) (parts (string-split fulltestname "(")) (basetestname (if (null? parts) "" (car parts)))) ;(print "Toggling " basetestname " currently " (hash-table-ref/default *collapsed* basetestname #f)) (if (hash-table-ref/default *collapsed* basetestname #f) (begin ;(iup:attribute-set! btn "FGCOLOR" "0 0 0") (hash-table-delete! *collapsed* basetestname)) (begin ;(iup:attribute-set! btn "FGCOLOR" "0 192 192") (hash-table-set! *collapsed* basetestname #t))))) (define (run-item-name->vectors lst) (map (lambda (x) (let ((splst (string-split x "(")) (res (vector "" ""))) (vector-set! res 0 (car splst)) (if (> (length splst) 1) (vector-set! res 1 (car (string-split (cadr splst) ")")))) |
︙ | ︙ | |||
609 610 611 612 613 614 615 | (define *tim* (iup:timer)) (define *ord* #f) (iup:attribute-set! *tim* "TIME" 300) (iup:attribute-set! *tim* "RUN" "YES") ;; Move this stuff to db.scm FIXME ;; | < < < < < < | 619 620 621 622 623 624 625 626 627 628 629 630 631 632 | (define *tim* (iup:timer)) (define *ord* #f) (iup:attribute-set! *tim* "TIME" 300) (iup:attribute-set! *tim* "RUN" "YES") ;; Move this stuff to db.scm FIXME ;; (define (run-update x) (update-buttons uidat *num-runs* *num-tests*) ;; (if (db:been-changed) (begin (update-rundat (hash-table-ref/default *searchpatts* "runname" "%") *num-runs* (hash-table-ref/default *searchpatts* "test-name" "%") (hash-table-ref/default *searchpatts* "item-name" "%") |
︙ | ︙ |