Changes In Branch v1.90 Through [62a9a80b8c] Excluding Merge-Ins
This is equivalent to a diff from b7603775b6 to 62a9a80b8c
2024-02-09
| ||
19:26 | get nfs, /tmp modes working check-in: ddfaeac922 user: matt tags: v1.90-fix-modes | |
16:06 | put back (declare (uses runsmod.import)), enhanced assert message for mismatched server/runid check-in: 332b8fc90d user: mmgraham tags: v1.90 | |
2024-02-08
| ||
20:39 | Move test_records.scm into commonmod.scm. Disabled uses of runsmod.import in megatest.scm. check-in: 62a9a80b8c user: matt tags: v1.90 | |
19:47 | Load db and key _records from commonmod only check-in: b5319490ec user: matt tags: v1.90 | |
2024-02-06
| ||
11:26 | Bumping version to 1.9001. check-in: 6b4e0e1a52 user: mrwellan tags: v1.90 | |
08:55 | *didsomething* was missing from -run section. Leaf check-in: b7603775b6 user: mrwellan tags: v1.80-revolution-remodularization | |
2024-02-05
| ||
19:55 | WARNING: Changing dispatch to new version. Change back in api.scm if there are problmes. check-in: 39fd4aa62b user: matt tags: v1.80-revolution-remodularization | |
15:55 | added import of testsmod and dbmod to fix dashboard undefined variables on tab switch check-in: 8cbfc44651 user: mmgraham tags: v1.80-revolution-remodularization | |
Modified Makefile from [921174edd4] to [a99dba9744].
︙ | ︙ | |||
24 25 26 27 28 29 30 | fossil timeline -n 350 -t ci -F "%h,%a,%b,%t,\"%c\"" > recent-commits.csv SHELL=/bin/bash PREFIX=$(PWD) CSCOPTS= INSTALL=install | | | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | fossil timeline -n 350 -t ci -F "%h,%a,%b,%t,\"%c\"" > recent-commits.csv SHELL=/bin/bash PREFIX=$(PWD) CSCOPTS= INSTALL=install SRCFILES = common.scm launch.scm runconfig.scm \ server.scm configf.scm keys.scm \ process.scm runs.scm genexample.scm \ tdb.scm mt.scm \ ezsteps.scm api.scm \ subrun.scm archive.scm env.scm \ diff-report.scm # cgisetup/models/pgdb.scm |
︙ | ︙ | |||
157 158 159 160 161 162 163 | # api.o \ # archive.o \ # cgisetup/models/pgdb.o \ # common.o \ # configf.o \ # db.o \ # env.o \ | < < | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | # api.o \ # archive.o \ # cgisetup/models/pgdb.o \ # common.o \ # configf.o \ # db.o \ # env.o \ # keys.o \ # launch.o \ # margs.o \ # mt.o \ # process.o \ # rmt.o \ # runconfig.o \ # runs.o \ # server.o \ # tasks.o \ # tdb.o \ |
︙ | ︙ | |||
227 228 229 230 231 232 233 | # mofiles-made : $(MOFILES) # make $(MOIMPFILES) # touch mofiles-made megatest.o : megatest-fossil-hash.scm megatest-version.scm $(MOFILES) $(MOIMPFILES) | | | 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | # mofiles-made : $(MOFILES) # make $(MOIMPFILES) # touch mofiles-made megatest.o : megatest-fossil-hash.scm megatest-version.scm $(MOFILES) $(MOIMPFILES) common.scm configf.scm dashboard-guimonitor.scm dashboard-tests.scm dashboard.scm dcommon.scm ezsteps.scm index-tree.scm keys.scm launch.scm megatest.scm monitor.scm mt.scm newdashboard.scm runconfig.scm runs.scm server.scm tdb.scm tree.scm : common_records.scm megatest-version.scm common_records.scm : altdb.scm mofiles/dbfile.o : mofiles/commonmod.o # mofiles/stml2.o : mofiles/cookie.o # configf.o : mofiles/commonmod.o |
︙ | ︙ | |||
533 534 535 536 537 538 539 | if csi -ne '(import postgresql)'&> /dev/null;then \ echo "(import postgresql)(hash-table-set! *available-db* 'postgresql #t)" >> altdb.scm;\ fi # portlogger-example : portlogger-example.scm api.o archive.o common.o configf.o dashboard-tests.o dashboard-context-menu.o db.o dcommon.o ezsteps.o genexample.o gutils.o items.o keys.o launch.o lock-queue.o margs.o mt.o ods.o portlogger.o process.o rmt.o runconfig.o runs.o server.o synchash.o tasks.o tdb.o tests.o tree.o # csc $(CSCOPTS) portlogger-example.scm api.o archive.o common.o configf.o dashboard-tests.o dashboard-context-menu.o db.o dcommon.o ezsteps.o genexample.o gutils.o items.o keys.o launch.o lock-queue.o margs.o mt.o ods.o portlogger.o process.o rmt.o runconfig.o runs.o server.o sync-hash.o tasks.o tdb.o tests.o tree.o | > > | | > > > > > > > > | | 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 | if csi -ne '(import postgresql)'&> /dev/null;then \ echo "(import postgresql)(hash-table-set! *available-db* 'postgresql #t)" >> altdb.scm;\ fi # portlogger-example : portlogger-example.scm api.o archive.o common.o configf.o dashboard-tests.o dashboard-context-menu.o db.o dcommon.o ezsteps.o genexample.o gutils.o items.o keys.o launch.o lock-queue.o margs.o mt.o ods.o portlogger.o process.o rmt.o runconfig.o runs.o server.o synchash.o tasks.o tdb.o tests.o tree.o # csc $(CSCOPTS) portlogger-example.scm api.o archive.o common.o configf.o dashboard-tests.o dashboard-context-menu.o db.o dcommon.o ezsteps.o genexample.o gutils.o items.o keys.o launch.o lock-queue.o margs.o mt.o ods.o portlogger.o process.o rmt.o runconfig.o runs.o server.o sync-hash.o tasks.o tdb.o tests.o tree.o # IMPORTSTUBS = $(*import.scm:%.scm=%) unitdeps.dot : *mod.scm ./utils/plot-uses Makefile ./utils/plot-uses todot processmod.import,dbfile.import,dbmod.import,configfmod.import,mtmod.import,procesmod.import,commonmod.import,mtargs.import,mtargs,debugprint $$(ls *.scm|grep -v import) > unitdeps.dot # ./utils/plot-uses todot commonmod,portlogger,stml2,debugprint,mtargs apimod.scm commonmod.scm configfmod.scm dbmod.scm megatestmod.scm mtmod.scm processmod.scm rmtmod.scm servermod.scm tcp-transportmod.scm > uses.dot ; dot uses.dot -Tpdf -o uses.pdf # apimod.scm commonmod.scm configfmod.scm dbmod.scm megatestmod.scm mtmod.scm processmod.scm rmtmod.scm servermod.scm tcp-transportmod.scm testsmod.scm uses.pdf : *scm utils/plot-uses Makefile ./utils/plot-uses todot portlogger,stml2,debugprint,mtargs *mod.scm launch.scm > uses-in.dot tred uses-in.dot > uses.dot dot uses.dot -Tpdf -o uses.pdf unitdeps.pdf : unitdeps.dot tred unitdeps.dot > unitdeps-tred.dot dot unitdeps-tred.dot -Tpdf -o unitdeps.pdf ./utils/plot-uses : utils/plot-uses.scm csc utils/plot-uses.scm # create a pdf dot graphviz diagram from notations in rmt.scm rmt.pdf : rmt.scm grep ';;DOT' rmt.scm | sed -e 's/.*;;DOT //' > rmt.dot;dot -Tpdf rmt.dot -o rmt.pdf |
︙ | ︙ |
Modified api.scm from [3dcf90f125] to [55795eb2b8].
︙ | ︙ | |||
15 16 17 18 19 20 21 | ;; ;; 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 api)) | < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ;; ;; 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 api)) (declare (uses apimod)) (declare (uses debugprint)) (declare (uses commonmod)) (declare (uses dbmod)) (declare (uses dbfile)) (declare (uses tcp-transportmod)) |
︙ | ︙ |
Modified archive.scm from [ebf0b08262] to [3972290090].
︙ | ︙ | |||
15 16 17 18 19 20 21 | ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; ;; strftime('%m/%d/%Y %H:%M:%S','now','localtime') (declare (unit archive)) | < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; ;; strftime('%m/%d/%Y %H:%M:%S','now','localtime') (declare (unit archive)) (declare (uses debugprint)) (declare (uses mtargs)) (declare (uses common)) (declare (uses commonmod)) (declare (uses configfmod)) (declare (uses rmtmod)) |
︙ | ︙ |
Modified archivemod.scm from [e47f9a6099] to [ddced4be70].
︙ | ︙ | |||
120 121 122 123 124 125 126 | srfi-18 srfi-69 typed-records z3 ) (include "common_records.scm") | | | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | srfi-18 srfi-69 typed-records z3 ) (include "common_records.scm") ;; (include "db_records.scm") ;;====================================================================== ;; ;;====================================================================== ;; ;; NOT CURRENTLY USED ;; ;; |
︙ | ︙ | |||
234 235 236 237 238 239 240 | (archiver (let ((s (configf:lookup *configdat* "archive" "archiver"))) (if s (string->symbol s) 'bup))) (rsync-exe (or (configf:lookup *configdat* "archive" "rsync") "rsync")) (print-prefix "Running: ") (archive-info (archive:allocate-new-archive-block blockid-cache *toppath* tsname min-space target-patt run-patt "megatest-db")) (archive-dir (if archive-info (cdr archive-info) #f)) (archive-id (if archive-info (car archive-info) -1)) | | | | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | (archiver (let ((s (configf:lookup *configdat* "archive" "archiver"))) (if s (string->symbol s) 'bup))) (rsync-exe (or (configf:lookup *configdat* "archive" "rsync") "rsync")) (print-prefix "Running: ") (archive-info (archive:allocate-new-archive-block blockid-cache *toppath* tsname min-space target-patt run-patt "megatest-db")) (archive-dir (if archive-info (cdr archive-info) #f)) (archive-id (if archive-info (car archive-info) -1)) (home-host (get-host-name)) ;; FIXME! (server:choose-server *toppath* 'homehost)) (archive-time (seconds->std-time-str (current-seconds))) (archive-staging-db (conc *toppath* "/.db-snapshot/archive_" archive-time)) (tmp-db-path (conc (dbfile:make-tmpdir-name *toppath* "") "/megatest.db")) (dbfile (conc archive-staging-db "/megatest.db"))) (create-directory archive-staging-db #t) (let-values (((pid-val exit-status exit-code) (run-n-wait rsync-exe params: (list "-v" (conc home-host ":"tmp-db-path) archive-staging-db) print-cmd: print-prefix))) (if (eq? exit-code 0) (case archiver ((bup) ;; Archive using bup (let* ((bup-init-params (list "-d" archive-dir "init")) (bup-index-params (list "-d" archive-dir "index" archive-staging-db)) (bup-save-params (list "-d" archive-dir "save" ;; (conc "--strip-path=" linktree) (conc "-" compress) ;; or (conc "--compress=" compress) |
︙ | ︙ |
Modified commonmod.scm from [5b4b945014] to [f881f6b04a].
︙ | ︙ | |||
131 132 133 134 135 136 137 138 139 140 141 142 143 144 | ;; misc conversion, data manipulation functions ;; testsuite and area utilites ;; ;;====================================================================== (include "megatest-version.scm") (include "megatest-fossil-hash.scm") ;; http - use the old http + in /tmp db ;; tcp - use tcp transport with cachedb db ;; nfs - use direct to disk access (read-only) ;; (define rmt:transport-mode (make-parameter 'tcp)) | > > > > | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | ;; misc conversion, data manipulation functions ;; testsuite and area utilites ;; ;;====================================================================== (include "megatest-version.scm") (include "megatest-fossil-hash.scm") (include "db_records.scm") (include "key_records.scm") (include "common_records.scm") (include "test_records.scm") ;; http - use the old http + in /tmp db ;; tcp - use tcp transport with cachedb db ;; nfs - use direct to disk access (read-only) ;; (define rmt:transport-mode (make-parameter 'tcp)) |
︙ | ︙ | |||
624 625 626 627 628 629 630 | ;; misc conversion, data manipulation functions ;;====================================================================== ;;====================================================================== ;; old stuff from keys.scm ;;====================================================================== | < < < | 628 629 630 631 632 633 634 635 636 637 638 639 640 641 | ;; misc conversion, data manipulation functions ;;====================================================================== ;;====================================================================== ;; old stuff from keys.scm ;;====================================================================== (define (keys->keystr keys) ;; => key1,key2,key3,additiona1, ... (string-intersperse keys ",")) ;; (define (args:usage . a) #f) (define (tasks:wait-on-journal path n #!key (remove #f)(waiting-msg #f)) (if (not (string? path)) |
︙ | ︙ |
Modified dashboard-context-menu.scm from [cfd3e28a74] to [a9287541e5].
︙ | ︙ | |||
23 24 25 26 27 28 29 | ;; right click on test cell in Runs & Runs Summary Tabs ;;====================================================================== (declare (unit dashboard-context-menu)) (declare (uses common)) (declare (uses commonmod)) (declare (uses configfmod)) | < > | | > > | 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | ;; right click on test cell in Runs & Runs Summary Tabs ;;====================================================================== (declare (unit dashboard-context-menu)) (declare (uses common)) (declare (uses commonmod)) (declare (uses configfmod)) (declare (uses gutils)) (declare (uses rmtmod)) (declare (uses ezsteps)) ;; (declare (uses sdb)) ;; (declare (uses filedb)) (declare (uses subrun)) (declare (uses testsmod)) (declare (uses subrunmod)) (declare (uses megatestmod)) (use format fmt) (require-library iup) (import (prefix iup iup:)) (use canvas-draw) (use srfi-1 posix regex regex-case srfi-69) (use (prefix sqlite3 sqlite3:)) (include "common_records.scm") ;; (include "db_records.scm") (include "run_records.scm") (import commonmod configfmod rmtmod testsmod subrunmod debugprint megatestmod ) (define (dboard:launch-testpanel run-id test-id) (let* ((dboardexe (common:find-local-megatest "dashboard")) (cmd (conc dboardexe " -test " run-id "," test-id " &"))) (system cmd))) |
︙ | ︙ |
Modified dashboard-guimonitor.scm from [4f6ae4e3fe] to [14af79287f].
︙ | ︙ | |||
30 31 32 33 34 35 36 | (use sqlite3 srfi-1 posix regex regex-case srfi-69) (import (prefix sqlite3 sqlite3:)) (declare (unit dashboard-guimonitor)) (declare (uses common)) (declare (uses keys)) | < | | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | (use sqlite3 srfi-1 posix regex regex-case srfi-69) (import (prefix sqlite3 sqlite3:)) (declare (unit dashboard-guimonitor)) (declare (uses common)) (declare (uses keys)) (declare (uses commonmod)) (import commonmod) (include "common_records.scm") ;; (include "db_records.scm") (include "run_records.scm") (include "task_records.scm") (define (control-panel db tdb keys) (let* ((var-params (make-hash-table)) ;; register all the widgets here for querying on run, rollup, remove? (key-params (make-hash-table)) (monitordat '()) ;; list of monitor records |
︙ | ︙ |
Modified dashboard-tests.scm from [3d36b73bfa] to [9f47337a67].
︙ | ︙ | |||
32 33 34 35 36 37 38 | (declare (uses dbmod)) (declare (uses dbfile)) (declare (uses tasksmod)) (declare (uses testsmod)) (declare (uses dcommon)) (declare (uses gutils)) | < | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | (declare (uses dbmod)) (declare (uses dbfile)) (declare (uses tasksmod)) (declare (uses testsmod)) (declare (uses dcommon)) (declare (uses gutils)) (declare (uses ezsteps)) (declare (uses subrun)) (declare (uses runsmod)) (declare (uses subrunmod)) (use format fmt) (require-library iup) |
︙ | ︙ | |||
61 62 63 64 65 66 67 | tasksmod testsmod runsmod subrunmod ) (include "common_records.scm") | | | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | tasksmod testsmod runsmod subrunmod ) (include "common_records.scm") ;; (include "db_records.scm") (include "run_records.scm") ;;====================================================================== ;; C O M M O N ;;====================================================================== (define *dashboard-comment-share-slot* #f) |
︙ | ︙ |
Modified dashboard-transport-mode.scm from [a7eb4115fd] to [2cfd93429c].
︙ | ︙ | |||
13 14 15 16 17 18 19 | ;; (dbfile:sync-method 'none) ;; (dbfile:cache-method 'none) ;; (rmt:transport-mode 'nfs) ;; uncomment this block to test with tcp and cachedb (dbfile:sync-method 'none) ;; original was causing crash on start. (dbfile:cache-method 'none) | | | | 13 14 15 16 17 18 19 20 21 22 | ;; (dbfile:sync-method 'none) ;; (dbfile:cache-method 'none) ;; (rmt:transport-mode 'nfs) ;; uncomment this block to test with tcp and cachedb (dbfile:sync-method 'none) ;; original was causing crash on start. (dbfile:cache-method 'none) (rmt:transport-mode 'tcp) ;; (rmt:transport-mode 'nfs) |
Modified dashboard.scm from [5e371a7421] to [0974058261].
︙ | ︙ | |||
66 67 68 69 70 71 72 | (declare (uses runsmod.import)) (declare (uses launchmod)) (declare (uses launchmod.import)) (declare (uses configf)) (declare (uses common)) (declare (uses keys)) | | < | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | (declare (uses runsmod.import)) (declare (uses launchmod)) (declare (uses launchmod.import)) (declare (uses configf)) (declare (uses common)) (declare (uses keys)) (declare (uses process)) (declare (uses launch)) (declare (uses runs)) (declare (uses dashboard-tests)) (declare (uses tree)) (declare (uses dcommon)) (declare (uses dashboard-context-menu)) |
︙ | ︙ | |||
107 108 109 110 111 112 113 | megatestmod tasksmod runsmod testsmod ) (include "common_records.scm") | | | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | megatestmod tasksmod runsmod testsmod ) (include "common_records.scm") ;; (include "db_records.scm") (include "run_records.scm") (include "task_records.scm") (include "megatest-version.scm") (include "megatest-fossil-hash.scm") (include "vg_records.scm") ;; set some parameters here - these need to be put in something that can be loaded from other |
︙ | ︙ |
Deleted db.scm version [623ee7f628].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Modified db_records.scm from [4396dc0985] to [d1dae58171].
︙ | ︙ | |||
173 174 175 176 177 178 179 | (define (tdb:step-stable-set-stepname! vec val)(vector-set! vec 0 val)) (define (tdb:step-stable-set-start! vec val)(vector-set! vec 1 val)) (define (tdb:step-stable-set-end! vec val)(vector-set! vec 2 val)) (define (tdb:step-stable-set-status! vec val)(vector-set! vec 3 val)) (define (tdb:step-stable-set-runtime! vec val)(vector-set! vec 4 val)) | | | | | | | | | | | | | | | | 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | (define (tdb:step-stable-set-stepname! vec val)(vector-set! vec 0 val)) (define (tdb:step-stable-set-start! vec val)(vector-set! vec 1 val)) (define (tdb:step-stable-set-end! vec val)(vector-set! vec 2 val)) (define (tdb:step-stable-set-status! vec val)(vector-set! vec 3 val)) (define (tdb:step-stable-set-runtime! vec val)(vector-set! vec 4 val)) ;; ;; The data structure for handing off requests via wire ;; (define (make-cdb:packet)(make-vector 6)) ;; (define (cdb:packet-get-client-sig vec) (vector-ref vec 0)) ;; (define (cdb:packet-get-qtype vec) (vector-ref vec 1)) ;; (define (cdb:packet-get-immediate vec) (vector-ref vec 2)) ;; (define (cdb:packet-get-query-sig vec) (vector-ref vec 3)) ;; (define (cdb:packet-get-params vec) (vector-ref vec 4)) ;; (define (cdb:packet-get-qtime vec) (vector-ref vec 5)) ;; (define (cdb:packet-set-client-sig! vec val)(vector-set! vec 0 val)) ;; (define (cdb:packet-set-qtype! vec val)(vector-set! vec 1 val)) ;; (define (cdb:packet-set-immediate! vec val)(vector-set! vec 2 val)) ;; (define (cdb:packet-set-query-sig! vec val)(vector-set! vec 3 val)) ;; (define (cdb:packet-set-params! vec val)(vector-set! vec 4 val)) ;; (define (cdb:packet-set-qtime! vec val)(vector-set! vec 5 val)) |
Modified dbmod.scm from [b2575f47ee] to [6fddda802c].
︙ | ︙ | |||
78 79 80 81 82 83 84 | configfmod dbfile debugprint mtmod ) (include "common_records.scm") | | | | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | configfmod dbfile debugprint mtmod ) (include "common_records.scm") ;; (include "db_records.scm") ;; (include "key_records.scm") (include "run_records.scm") (define *number-of-writes* 0) (define *number-non-write-queries* 0) ;; NOTE: This returns only the name "1.db", "main.db", not the path ;; |
︙ | ︙ | |||
934 935 936 937 938 939 940 | ;; (define (db:with-db dbstruct run-id r/w proc . params) ;; (case (rmt:transport-mode) ;; ((http)(dbfile:with-db dbstruct run-id r/w proc params)) ;; ((tcp) (dbmod:with-db dbstruct run-id r/w proc params)) ;; ((nfs) (dbmod:with-db dbstruct run-id r/w proc params)) ;; (else (assert #f "FATAL: db:with-db called with non-existant transport mode")))) | < < < < < < < < < < < < < < < < < < | 934 935 936 937 938 939 940 941 942 943 944 945 946 947 | ;; (define (db:with-db dbstruct run-id r/w proc . params) ;; (case (rmt:transport-mode) ;; ((http)(dbfile:with-db dbstruct run-id r/w proc params)) ;; ((tcp) (dbmod:with-db dbstruct run-id r/w proc params)) ;; ((nfs) (dbmod:with-db dbstruct run-id r/w proc params)) ;; (else (assert #f "FATAL: db:with-db called with non-existant transport mode")))) ;;====================================================================== ;; SQLITE3 HELPERS ;;====================================================================== (define (db:general-sqlite-error-dump exn stmt . params) (let ((err-status ((condition-property-accessor 'sqlite3 'status #f) exn))) ;; RADT ... how does this work? ;; check for (exn sqlite3) ((condition-property-accessor 'exn 'message) exn) |
︙ | ︙ |
Modified dcommon.scm from [6b2548869b] to [d0a5600c78].
︙ | ︙ | |||
17 18 19 20 21 22 23 | ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; ;;====================================================================== (declare (unit dcommon)) (declare (uses gutils)) | < | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; ;;====================================================================== (declare (unit dcommon)) (declare (uses gutils)) (declare (uses dbmod)) (declare (uses commonmod)) (declare (uses configfmod)) (declare (uses rmtmod)) (declare (uses testsmod)) (use format) |
︙ | ︙ | |||
40 41 42 43 44 45 46 | rmtmod testsmod dbmod debugprint) (include "megatest-version.scm") (include "common_records.scm") | | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | rmtmod testsmod dbmod debugprint) (include "megatest-version.scm") (include "common_records.scm") ;; (include "db_records.scm") ;; (include "key_records.scm") (include "run_records.scm") ;; yes, this is non-ideal (define dashboard:update-summary-tab #f) (define dashboard:update-servers-table #f) ;;====================================================================== |
︙ | ︙ |
Modified docs/manual/debugging.txt from [731079995f] to [0f3d0c0777].
︙ | ︙ | |||
20 21 22 23 24 25 26 | Well Written Tests ~~~~~~~~~~~~~~~~~~ Test Design and Surfacing Errors ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | Well Written Tests ~~~~~~~~~~~~~~~~~~ Test Design and Surfacing Errors ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Design your tests to bring errors to the surface. Ensure all logs are processed by logpro (or a custom log processing tool) and can be reached by a mouse click or two from the test control panel. To illustrate, here is a set of scripts with nested calls where script1.sh calls script2.sh which calls script3.sh which finally calls the Cadence EDA tool virtuoso: .script1.sh .............................. |
︙ | ︙ |
Modified ezsteps.scm from [3c87a23e93] to [27c83d47a5].
︙ | ︙ | |||
16 17 18 19 20 21 22 | ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; ;; strftime('%m/%d/%Y %H:%M:%S','now','localtime') (declare (unit ezsteps)) | < | | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; ;; strftime('%m/%d/%Y %H:%M:%S','now','localtime') (declare (unit ezsteps)) (declare (uses commonmod)) (declare (uses common)) (declare (uses configfmod)) (declare (uses debugprint)) (declare (uses runconfig)) (declare (uses rmtmod)) (declare (uses mtargs)) (declare (uses tasksmod)) (use srfi-1 posix regex srfi-69 directory-utils call-with-environment-variables posix-extras z3 csv typed-records pathname-expand matchable) |
︙ | ︙ |
Modified ezstepsmod.scm from [ed95442a79] to [0f672c5b01].
︙ | ︙ | |||
125 126 127 128 129 130 131 | subrunmod testsmod runsmod fsmod ) (include "common_records.scm") | | | | 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | subrunmod testsmod runsmod fsmod ) (include "common_records.scm") ;; (include "key_records.scm") ;; (include "db_records.scm") (include "run_records.scm") ;;(rmt:get-test-info-by-id run-id test-id) -> testdat ;; (define (message-window msg) |
︙ | ︙ |
Modified genexample.scm from [34aa366b1c] to [6229d612cf].
︙ | ︙ | |||
29 30 31 32 33 34 35 | (use posix regex matchable) (import (prefix mtargs args:) commonmod configfmod rmtmod debugprint) | | | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | (use posix regex matchable) (import (prefix mtargs args:) commonmod configfmod rmtmod debugprint) ;; (include "db_records.scm") (define genexample:example-logpro #<<EOF ;; You should have at least one expect:required. This ensures that your process ran ;; comment out the line below and replace "put pattern here" with a pattern that will ;; always be seen in your log file if the step runs successfully. ;; |
︙ | ︙ |
Deleted items.scm version [1315e5e37e].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Modified key_records.scm from [0f706e37f0] to [55f6701b87].
︙ | ︙ | |||
14 15 16 17 18 19 20 | ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;;====================================================================== | | | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;;====================================================================== (define (keys->valslots keys) ;; => ?,?,? .... (string-intersperse (map (lambda (x) "?") keys) ",")) ;; (define (keys->key/field keys . additional) ;; (string-join (map (lambda (k)(conc k " TEXT")) ;; (append keys additional)) ",")) (define (item-list->path itemdat) (if (list? itemdat) (string-intersperse (map cadr itemdat) "/") "")) |
Modified launch.scm from [d767260936] to [60c51037a0].
︙ | ︙ | |||
25 26 27 28 29 30 31 | (declare (uses subrun)) (declare (uses common)) (declare (uses debugprint)) (declare (uses commonmod)) (declare (uses processmod)) (declare (uses configfmod)) (declare (uses configf)) | < | | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | (declare (uses subrun)) (declare (uses common)) (declare (uses debugprint)) (declare (uses commonmod)) (declare (uses processmod)) (declare (uses configfmod)) (declare (uses configf)) (declare (uses rmtmod)) (declare (uses ezsteps)) ;; (declare (uses dbmod)) (declare (uses dbfile)) (declare (uses dbmod)) (declare (uses mtargs)) (declare (uses mtmod)) (declare (uses megatestmod)) (declare (uses tasksmod)) (use regex regex-case base64 sqlite3 srfi-18 directory-utils posix posix-extras z3 call-with-environment-variables csv hostinfo typed-records pathname-expand matchable) (import (prefix base64 base64:) (prefix sqlite3 sqlite3:) (prefix mtargs args:) ) (include "common_records.scm") ;; (include "key_records.scm") ;; (include "db_records.scm") (include "megatest-fossil-hash.scm") (import commonmod processmod configfmod rmtmod debugprint |
︙ | ︙ |
Modified launchmod.scm from [756eb3c099] to [46f91d6b1b].
︙ | ︙ | |||
125 126 127 128 129 130 131 | subrunmod testsmod runsmod fsmod ) (include "common_records.scm") | | | | 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | subrunmod testsmod runsmod fsmod ) (include "common_records.scm") ;; (include "key_records.scm") ;; (include "db_records.scm") (include "megatest-fossil-hash.scm") ;;====================================================================== ;; ezsteps ;;====================================================================== ;; ezsteps were going to be coded as |
︙ | ︙ | |||
1063 1064 1065 1066 1067 1068 1069 | run-id test-id 'foo "COMPLETED" "DEAD" "Test stopped responding while in RUNNING or REMOTEHOSTSTART; presumed dead."))))))) ;; call end of eud of run detection for posthook - from merge, is it needed? ;; (launch:end-of-run-check run-id) all-ids) ))))) | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 | run-id test-id 'foo "COMPLETED" "DEAD" "Test stopped responding while in RUNNING or REMOTEHOSTSTART; presumed dead."))))))) ;; call end of eud of run detection for posthook - from merge, is it needed? ;; (launch:end-of-run-check run-id) all-ids) ))))) ;; TODO: deprecate me in favor of ezsteps.scm ;; (define (ezsteps:runstep ezstep run-id test-id exit-info m tal testconfig all-steps-dat) (let* ((stepname (car ezstep)) ;; do stuff to run the step (stepinfo (cadr ezstep)) ;; (let ((info (cadr ezstep))) |
︙ | ︙ |
Modified megatest-version.scm from [be277ab6e6] to [9ef193166d].
︙ | ︙ | |||
16 17 18 19 20 21 22 | ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; Always use two or four digit decimal ;; 1.01, 1.02...1.10,1.11,1.1101 ... 1.99,2.00.. ;; (declare (unit megatest-version)) | | | 16 17 18 19 20 21 22 23 | ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; Always use two or four digit decimal ;; 1.01, 1.02...1.10,1.11,1.1101 ... 1.99,2.00.. ;; (declare (unit megatest-version)) (define megatest-version 1.9001) |
Modified megatest.scm from [71186a0165] to [32535e1bcd].
︙ | ︙ | |||
66 67 68 69 70 71 72 | (declare (uses testsmod)) (declare (uses testsmod.import)) (declare (uses subrunmod)) (declare (uses subrunmod.import)) (declare (uses archivemod)) (declare (uses archivemod.import)) (declare (uses runsmod)) | | < < < < | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | (declare (uses testsmod)) (declare (uses testsmod.import)) (declare (uses subrunmod)) (declare (uses subrunmod.import)) (declare (uses archivemod)) (declare (uses archivemod.import)) (declare (uses runsmod)) ;; (declare (uses runsmod.import)) (declare (uses cpumod)) (declare (uses cpumod.import)) (declare (uses runsmod)) (declare (uses ezstepsmod)) (declare (uses launchmod)) (declare (uses tdb)) (declare (uses mt)) (declare (uses api)) (declare (uses env)) (declare (uses diff-report)) (declare (uses runs)) (declare (uses launch)) (declare (uses server)) (declare (uses genexample)) ;; (declare (uses daemon)) ;; (declare (uses dcommon)) ;; (declare (uses debugprint)) ;; (declare (uses debugprint.import)) ;; (declare (uses ftail)) ;; (import ftail) |
︙ | ︙ | |||
121 122 123 124 125 126 127 | launchmod fsmod ) (define *db* #f) ;; this is only for the repl, do not use in general!!!! (include "common_records.scm") | | | | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | launchmod fsmod ) (define *db* #f) ;; this is only for the repl, do not use in general!!!! (include "common_records.scm") ;; (include "key_records.scm") ;; (include "db_records.scm") (include "run_records.scm") (include "megatest-fossil-hash.scm") (use (prefix sqlite3 sqlite3:) srfi-1 posix regex regex-case srfi-69 (prefix base64 base64:)) (use readline apropos json http-client directory-utils typed-records) (use http-client srfi-18 extras format tcp-server tcp) |
︙ | ︙ |
Modified monitor.scm from [3205ec8bdb] to [11b5fa345e].
︙ | ︙ | |||
17 18 19 20 21 22 23 | ;; strftime('%m/%d/%Y %H:%M:%S','now','localtime') (use sqlite3 srfi-1 posix regex regex-case srfi-69 dot-locking) (import (prefix sqlite3 sqlite3:)) (declare (unit runs)) | < | | | | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ;; strftime('%m/%d/%Y %H:%M:%S','now','localtime') (use sqlite3 srfi-1 posix regex regex-case srfi-69 dot-locking) (import (prefix sqlite3 sqlite3:)) (declare (unit runs)) (declare (uses common)) (declare (uses runconfig)) (declare (uses commonmod)) (import commonmod) (include "common_records.scm") ;; (include "key_records.scm") ;; (include "db_records.scm") (include "run_records.scm") |
Modified mt.scm from [aea09ab4d1] to [f24a9e55ce].
︙ | ︙ | |||
20 21 22 23 24 25 26 | (use sqlite3 srfi-1 posix regex regex-case srfi-69 dot-locking (srfi 18) posix-extras directory-utils call-with-environment-variables) (import (prefix sqlite3 sqlite3:)) (declare (unit mt)) (declare (uses debugprint)) | < | < | | | | 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 48 49 50 51 52 53 54 | (use sqlite3 srfi-1 posix regex regex-case srfi-69 dot-locking (srfi 18) posix-extras directory-utils call-with-environment-variables) (import (prefix sqlite3 sqlite3:)) (declare (unit mt)) (declare (uses debugprint)) (declare (uses common)) (declare (uses commonmod)) (declare (uses configfmod)) (declare (uses runconfig)) (declare (uses server)) (declare (uses runs)) (declare (uses rmtmod)) (declare (uses megatestmod)) (import debugprint commonmod configfmod rmtmod megatestmod) ;; make mt: calls in megatestmod work ;; (read-config-set! read-config) (include "common_records.scm") ;; (include "key_records.scm") ;; (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. |
Modified mtmod.scm from [c5e4b82ce0] to [b742c926fe].
︙ | ︙ | |||
107 108 109 110 111 112 113 | debugprint ))) ;; imports common to chk5 and ck4 (import srfi-13) | | | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | debugprint ))) ;; imports common to chk5 and ck4 (import srfi-13) ;; (include "db_records.scm") ;;====================================================================== ;; stuff from keys that can't be in commonmod. Maybe move all from commonmod to here? ;;====================================================================== (define (keys:make-key/field-string confdat) (let ((fields (configf:get-section confdat "fields"))) |
︙ | ︙ |
Deleted ods.scm version [ad5af10a9a].
|
| < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted rmtdb.scm version [62ddf7898c].
|
| < < < < < < < < < < < < < < < < < < < < |
Modified rmtmod.scm from [43bee36f88] to [08616bdb4f].
︙ | ︙ | |||
51 52 53 54 55 56 57 | dbmod debugprint apimod mtmod servermod ) | | | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | dbmod debugprint apimod mtmod servermod ) ;; (include "db_records.scm") (defstruct alldat (areapath #f) (ulexdat #f) ) |
︙ | ︙ | |||
247 248 249 250 251 252 253 | ;; NB// area-dat replaced by ttdat ;; (define (rmt:send-receive cmd run-id params #!key (attemptnum 1)(ttdat #f)) (assert (or (not run-id) (number? run-id)) "FATAL: run-id is required to be a number or #f") (assert *toppath* "FATAL: rmt:send-receive called with *toppath* not set.") (let* ((areapath *toppath*) ;; TODO - resolve from dbstruct to be compatible with multiple areas (readonly-mode (rmtmod:calc-ro-mode ttdat *toppath*)) | | > > > > > | | 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | ;; NB// area-dat replaced by ttdat ;; (define (rmt:send-receive cmd run-id params #!key (attemptnum 1)(ttdat #f)) (assert (or (not run-id) (number? run-id)) "FATAL: run-id is required to be a number or #f") (assert *toppath* "FATAL: rmt:send-receive called with *toppath* not set.") (let* ((areapath *toppath*) ;; TODO - resolve from dbstruct to be compatible with multiple areas (readonly-mode (rmtmod:calc-ro-mode ttdat *toppath*)) (testsuite (common:get-testsuite-name)) (tmode (if (rmt:on-homehost?) ;; use tmode instead of rmt:transport-mode to access /tmp db (to be implemented) (if (> (random 100) 80) ;; 20% of time 'tcp 'tmp) ;; this mode needs to be implemented (rmt:transport-mode)))) (case (rmt:transport-mode) ;; replace with tmode ((tcp) (let* ((start-time (current-seconds)) ;; snapshot time so all use cases get same value (attemptnum (+ 1 attemptnum)) (mtexe (common:find-local-megatest)) (dbfname (conc (dbfile:run-id->dbnum run-id)".db")) (ttdat (rmt:set-ttdat areapath ttdat)) (conn (tt:get-conn ttdat dbfname)) |
︙ | ︙ | |||
910 911 912 913 914 915 916 | (rmt:send-receive 'test-set-archive-block-id run-id (list run-id test-id archive-block-id))) (define (rmt:test-get-archive-block-info archive-block-id) (rmt:send-receive 'test-get-archive-block-info #f (list archive-block-id))) (define (rmtmod:calc-ro-mode runremote *toppath*) (case (rmt:transport-mode) | < < < < < < < < < < < < | | > > | 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 | (rmt:send-receive 'test-set-archive-block-id run-id (list run-id test-id archive-block-id))) (define (rmt:test-get-archive-block-info archive-block-id) (rmt:send-receive 'test-get-archive-block-info #f (list archive-block-id))) (define (rmtmod:calc-ro-mode runremote *toppath*) (case (rmt:transport-mode) ((tcp nfs) (if (and runremote (tt-ro-mode-checked runremote)) (tt-ro-mode runremote) (let* ((mtcfgfile (conc *toppath* "/megatest.config")) (ro-mode (not (file-write-access? mtcfgfile)))) ;; TODO: use dbstruct or runremote to figure this out in future (if runremote (begin (tt-ro-mode-set! runremote ro-mode) (tt-ro-mode-checked-set! runremote #t) ro-mode) ro-mode)))) (else (assert #f "FATAL: invalid rmt:transport-mode")))) ;;====================================================================== ;; S U P P O R T F U N C T I O N S ;;====================================================================== (define (rmt:on-homehost? #!optional (runremote-in #f)) |
︙ | ︙ | |||
1012 1013 1014 1015 1016 1017 1018 | ;;====================================================================== ;; Move me elsewhere ... ;; RADT => Why do we meed the version check here, this is called only if version misma ;; (define (common:cleanup-db dbstruct #!key (full #f)) (case (rmt:transport-mode) | < < < < < < < < < | 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 | ;;====================================================================== ;; Move me elsewhere ... ;; RADT => Why do we meed the version check here, this is called only if version misma ;; (define (common:cleanup-db dbstruct #!key (full #f)) (case (rmt:transport-mode) ((tcp nfs) (apply db:multi-db-sync dbstruct 'schema 'killservers 'adj-target 'new2old |
︙ | ︙ |
Modified runs.scm from [a37bb0ad46] to [647460790c].
︙ | ︙ | |||
27 28 29 30 31 32 33 | (declare (uses dbfile)) (declare (uses dbmod)) (declare (uses megatestmod)) (declare (uses mtmod)) (declare (uses tasksmod)) (declare (uses servermod)) | < | < | | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | (declare (uses dbfile)) (declare (uses dbmod)) (declare (uses megatestmod)) (declare (uses mtmod)) (declare (uses tasksmod)) (declare (uses servermod)) (declare (uses common)) (declare (uses runconfig)) (declare (uses server)) (declare (uses mt)) (declare (uses archive)) (use (prefix sqlite3 sqlite3:) srfi-1 posix regex regex-case srfi-69 (srfi 18) posix-extras directory-utils pathname-expand typed-records format sxml-serializer sxml-modifications matchable) (include "common_records.scm") ;; (include "key_records.scm") ;; (include "db_records.scm") (include "run_records.scm") ;; (include "test_records.scm") ;; (include "debugger.scm") (import commonmod processmod configfmod debugprint |
︙ | ︙ |
Modified runsmod.scm from [8832b594a9] to [98c156694e].
︙ | ︙ | |||
126 127 128 129 130 131 132 | testsmod subrunmod archivemod fsmod ) (include "common_records.scm") | | | | | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | testsmod subrunmod archivemod fsmod ) (include "common_records.scm") ;; (include "key_records.scm") ;; (include "db_records.scm") (include "run_records.scm") ;; (include "test_records.scm") ;; use this struct to facilitate refactoring ;; (defstruct runs:dat reglen regfull runname max-concurrent-jobs run-id |
︙ | ︙ |
Modified server.scm from [47fe94bb91] to [3cd1085ec7].
︙ | ︙ | |||
15 16 17 18 19 20 21 | ;; 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 server)) (declare (uses common)) | < | | 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 | ;; 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 server)) (declare (uses common)) (declare (uses debugprint)) (declare (uses commonmod)) (declare (uses configfmod)) (declare (uses rmtmod)) (declare (uses launch)) (declare (uses mtargs)) (use (srfi 18) extras s11n) (use srfi-1 posix regex regex-case srfi-69 hostinfo md5 message-digest) (use directory-utils posix-extras matchable utils) (use spiffy uri-common intarweb http-client spiffy-request-vars) (import commonmod configfmod debugprint (prefix mtargs args:)) (include "common_records.scm") ;; (include "db_records.scm") (define (db:kill-servers) (let* ((tl (launch:setup)) ;; need this to initialize *toppath* (servdir (conc *toppath* "/.servinfo")) (servfiles (glob (conc servdir "/*:*.db"))) (fmtstr "~10a~22a~10a~25a~25a~8a\n") (dbfiles (append (glob (conc *toppath* "/.mtdb/main.db")) (glob (conc *toppath* "/.mtdb/?.db"))(glob (conc *toppath* "/.mtdb/??.db")))) |
︙ | ︙ |
Modified servermod.scm from [cc0c6e8294] to [cbd4da6b54].
︙ | ︙ | |||
45 46 47 48 49 50 51 | configfmod debugprint (prefix mtargs args:) mtmod ) (include "common_records.scm") | | | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | configfmod debugprint (prefix mtargs args:) mtmod ) (include "common_records.scm") ;; (include "db_records.scm") (define (server:make-server-url hostport) (if (not hostport) #f (conc "http://" (car hostport) ":" (cadr hostport)))) (define *server-loop-heart-beat* (current-seconds)) |
︙ | ︙ |
Modified stml2/stml2.scm from [ee4c13898d] to [2ad7e0b3e0].
︙ | ︙ | |||
1148 1149 1150 1151 1152 1153 1154 | ;; (munged (s:process-cgi-input datstr))) ;; (print "datstr: " datstr " munged: " munged) (if (and (not (null? alldats)) (not (null? (car alldats))) (not (null? (caar alldats)))) (formdat:load formdat (s:process-cgi-input (caaar alldats))))) ;; munged)) ;; (format debugp "formdat : name: ~A content: ~A\n" name content) | | | 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 | ;; (munged (s:process-cgi-input datstr))) ;; (print "datstr: " datstr " munged: " munged) (if (and (not (null? alldats)) (not (null? (car alldats))) (not (null? (caar alldats)))) (formdat:load formdat (s:process-cgi-input (caaar alldats))))) ;; munged)) ;; (format debugp "formdat : name: ~A content: ~A\n" name content) ;; (if debugp (close-output-port debugp)) ;; (sdat-formdat-set! s:session formdat) formdat)))) #| (define inp (open-input-file "tests/example.post.in")) (define dat (read-string #f inp)) (define datstr (open-input-string dat)) |
︙ | ︙ |
Modified subrun.scm from [9cdab0a7ee] to [479d716ad5].
︙ | ︙ | |||
22 23 24 25 26 27 28 | (declare (uses debugprint)) (declare (uses commonmod)) (declare (uses configfmod)) (declare (uses tasksmod)) (declare (uses mt)) | < | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | (declare (uses debugprint)) (declare (uses commonmod)) (declare (uses configfmod)) (declare (uses tasksmod)) (declare (uses mt)) (declare (uses common)) (use (prefix sqlite3 sqlite3:) srfi-1 posix regex regex-case srfi-69 (srfi 18) posix-extras directory-utils pathname-expand typed-records format call-with-environment-variables) (import commonmod |
︙ | ︙ |
Modified subrunmod.scm from [ca23ed3335] to [ddf54f1377].
︙ | ︙ | |||
119 120 121 122 123 124 125 | mtmod megatestmod tasksmod ) ;(include "common_records.scm") ;;(include "key_records.scm") | | | 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | mtmod megatestmod tasksmod ) ;(include "common_records.scm") ;;(include "key_records.scm") ;; (include "db_records.scm") ;; provides db:test-get-id ;;(include "run_records.scm") ;;(include "test_records.scm") (define (subrun:subrun-test-initialized? test-run-dir) (if (and (common:file-exists? (conc test-run-dir "/subrun-area") ) (common:file-exists? (conc test-run-dir "/testconfig.subrun") )) #t |
︙ | ︙ |
Modified tasksmod.scm from [d76fceed95] to [11086d3914].
︙ | ︙ | |||
113 114 115 116 117 118 119 | processmod pgdb mtmod megatestmod ) (include "task_records.scm") | | | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | processmod pgdb mtmod megatestmod ) (include "task_records.scm") ;; (include "db_records.scm") ;;====================================================================== ;; Tasks db ;;====================================================================== (define (tasks:get-task-db-path) (let ((dbdir (or (configf:lookup *configdat* "setup" "monitordir") |
︙ | ︙ |
Modified tcmt.scm from [2cd967b1fa] to [114f35b4de].
︙ | ︙ | |||
37 38 39 40 41 42 43 | (import commonmod rmtmod (prefix mtargs args:)) (include "megatest-version.scm") (include "megatest-fossil-hash.scm") | | | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | (import commonmod rmtmod (prefix mtargs args:)) (include "megatest-version.scm") (include "megatest-fossil-hash.scm") ;; (include "db_records.scm") (define origargs (cdr (argv))) (define remargs (args:get-args (argv) `( "-target" "-reqtarg" "-runname" |
︙ | ︙ |
Modified tdb.scm from [bd74c70653] to [e7e7aee13a].
︙ | ︙ | |||
22 23 24 25 26 27 28 | ;; Database access ;;====================================================================== (declare (unit tdb)) (declare (uses debugprint)) (declare (uses common)) (declare (uses keys)) | < < | | | 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 48 49 50 51 52 53 | ;; Database access ;;====================================================================== (declare (unit tdb)) (declare (uses debugprint)) (declare (uses common)) (declare (uses keys)) (declare (uses mt)) (declare (uses commonmod)) (declare (uses mtargs)) (declare (uses rmtmod)) (require-extension (srfi 18) extras tcp) (use sqlite3 srfi-1 posix regex regex-case srfi-69 csv-xml s11n md5 message-digest base64) (import (prefix sqlite3 sqlite3:)) (import (prefix base64 base64:)) (import commonmod debugprint rmtmod (prefix mtargs args:)) (include "common_records.scm") ;; (include "db_records.scm") ;; (include "key_records.scm") (include "run_records.scm") ;;====================================================================== ;; ;; T E S T D A T A B A S E S ;; ;;====================================================================== |
︙ | ︙ |
Modified test_records.scm from [6f2c755d88] to [d106f3911c].
︙ | ︙ | |||
13 14 15 16 17 18 19 | ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; make-vector-record tests testqueue testname testconfig waitons priority items (define (make-tests:testqueue)(make-vector 7 #f)) | | | | | | | | | | | | | | | | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with Megatest. If not, see <http://www.gnu.org/licenses/>. ;; make-vector-record tests testqueue testname testconfig waitons priority items (define (make-tests:testqueue)(make-vector 7 #f)) (define (tests:testqueue-get-testname vec) (vector-ref vec 0)) (define (tests:testqueue-get-testconfig vec) (vector-ref vec 1)) (define (tests:testqueue-get-waitons vec) (vector-ref vec 2)) (define (tests:testqueue-get-priority vec) (vector-ref vec 3)) ;; items: #f=no items, list=list of items remaining, proc=need to call to get items (define (tests:testqueue-get-items vec) (vector-ref vec 4)) (define (tests:testqueue-get-itemdat vec) (vector-ref vec 5)) (define (tests:testqueue-get-item_path vec) (vector-ref vec 6)) (define (tests:testqueue-set-testname! vec val)(vector-set! vec 0 val)) (define (tests:testqueue-set-testconfig! vec val)(vector-set! vec 1 val)) (define (tests:testqueue-set-waitons! vec val)(vector-set! vec 2 val)) (define (tests:testqueue-set-priority! vec val)(vector-set! vec 3 val)) (define (tests:testqueue-set-items! vec val)(vector-set! vec 4 val)) (define (tests:testqueue-set-itemdat! vec val)(vector-set! vec 5 val)) (define (tests:testqueue-set-item_path! vec val)(vector-set! vec 6 val)) |
Deleted tests.scm version [26856cfcef].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Modified testsmod.scm from [9edcca0333] to [342c5ad45d].
︙ | ︙ | |||
124 125 126 127 128 129 130 | stml2 mtmod servermod fsmod ) (include "common_records.scm") | | | | | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | stml2 mtmod servermod fsmod ) (include "common_records.scm") ;; (include "key_records.scm") ;; (include "db_records.scm") (include "run_records.scm") ;; (include "test_records.scm") (include "js-path.scm") (define (init-java-script-lib) (set! *java-script-lib* (conc (common:get-install-area) "/share/js/jquery-3.1.0.slim.min.js")) ) (define (tests:summarize-items run-id test-id test-name force) ;; if not force then only update the record if one of these is true: |
︙ | ︙ |
Modified tree.scm from [c8bcf1dc7e] to [5b26f8b9f9].
︙ | ︙ | |||
19 20 21 22 23 24 25 | ;;====================================================================== (declare (unit tree)) (declare (uses mtargs)) (declare (uses debugprint)) (declare (uses launch)) (declare (uses gutils)) | < | | | 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 48 49 50 | ;;====================================================================== (declare (unit tree)) (declare (uses mtargs)) (declare (uses debugprint)) (declare (uses launch)) (declare (uses gutils)) (declare (uses server)) (declare (uses dcommon)) (use format) (require-library iup) (import (prefix iup iup:)) (use canvas-draw) (use sqlite3 srfi-1 posix regex regex-case srfi-69) (import (prefix sqlite3 sqlite3:)) (import (prefix mtargs args:) debugprint) (include "megatest-version.scm") (include "common_records.scm") ;; (include "db_records.scm") ;; (include "key_records.scm") ;;====================================================================== ;; T R E E S T U F F ;;====================================================================== ;; path is a list of nodes, each the child of the previous ;; this routine returns the id so another node can be added |
︙ | ︙ |