Overview
Comment: | Added -test-paths query for getting paths to previous tests |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
e6213e8dbb92fb500d7a38531e70d825 |
User & Date: | matt on 2012-01-26 23:18:44 |
Other Links: | manifest | tags |
Context
2012-01-27
| ||
20:01 | Partial fix for test path retrival in test mode check-in: 502458b88d user: mrwellan tags: trunk | |
2012-01-26
| ||
23:18 | Added -test-paths query for getting paths to previous tests check-in: e6213e8dbb user: matt tags: trunk | |
09:32 | Merged in minor fix from fixing-logpro-test_data branch check-in: 8e7dd486e5 user: mrwellan tags: trunk | |
Changes
Modified db.scm from [cf37c2a3a0] to [5aeed6583f].
︙ | |||
478 479 480 481 482 483 484 485 486 487 488 489 490 491 | 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 | + + + + + + + + + + + + + + + + + + + + + + + + | ;; (define (db:test-set-rundir! db run-id testname item-path rundir) (sqlite3:execute db "UPDATE tests SET rundir=? WHERE run_id=? AND testname=? AND item_path=?;" rundir run-id testname item-path)) ;; Misc. test related queries (define (db:test-get-paths-matching db keyvallst runname keys keynames target) ;; (print "keyvallst: " keyvallst ", runname: " runname) ;; (print "keys: " keys " keynames: " keynames) (let ((res '()) (itempatt (if (args:get-arg "-itempatt")(args:get-arg "-itempatt") "%")) (testpatt (if (args:get-arg "-testpatt")(args:get-arg "-testpatt") "%")) (qrystr (string-intersperse (map (lambda (key val) (conc "r." key " like '" val "'")) keynames (string-split target "/")) " AND "))) ;; (print "qrystr: " qrystr) (sqlite3:for-each-row (lambda (p) (set! res (cons p res))) db (conc "SELECT t.rundir FROM tests AS t INNER JOIN runs AS r ON t.run_id=r.id WHERE " qrystr " AND r.runname LIKE '" runname "' AND item_path LIKE '" itempatt "' AND testname LIKE '" testpatt "' ORDER BY t.event_time ASC;")) res)) ;;====================================================================== ;; Tests meta data ;;====================================================================== ;; read the record given a testname (define (db:testmeta-get-record db testname) |
︙ |
Modified launch.scm from [a165297934] to [3d741a045b].
︙ | |||
215 216 217 218 219 220 221 | 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | - - - | (else 'fail)))) (debug:print 4 "Exit value received: " (vector-ref exit-info 2) " logpro-used: " logpro-used " this-step-status: " this-step-status " overall-status: " overall-status " next-status: " next-status " rollup-status: " rollup-status) (case next-status ((warn) (set! rollup-status 2) |
︙ |
Modified megatest.scm from [5624d22f1c] to [19704606e8].
︙ | |||
70 71 72 73 74 75 76 77 78 79 | 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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | + + - - - - + + + + + + | fields category,variable,value,comment Queries -list-runs patt : list runs matching pattern \"patt\", % is the wildcard -testpatt patt : in list-runs show only these tests, % is the wildcard -itempatt patt : in list-runs show only tests with items that match patt -showkeys : show the keys used in this megatest setup -test-paths targpatt : get the most recent test path(s) matching targpatt e.g. %/%... returns list sorted by age ascending, see examples below Misc -force : override some checks |
︙ | |||
156 157 158 159 160 161 162 163 164 165 166 167 168 169 | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | + + + | "-xterm" "-showkeys" "-test-status" "-set-values" "-load-test-data" "-summarize-items" "-gui" ;; queries "-test-paths" ;; get path(s) to a test, ordered by youngest first "-runall" ;; run all tests "-remove-runs" "-keepgoing" "-usequeue" "-rebuild-db" "-rollup" "-update-meta" |
︙ | |||
378 379 380 381 382 383 384 385 386 387 388 389 390 391 | 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 | + + + + + + + + + + + + + + + | "rollup tests" (lambda (db keys keynames keyvallst) (runs:rollup-run db keys (keys->alist keys "na") (args:get-arg ":runname") user)))) ;;====================================================================== ;; Get paths to tests ;;====================================================================== ;; run all tests are are Not COMPLETED and PASS or CHECK (if (args:get-arg "-test-paths") (general-run-call "-test-paths" "Get paths to tests" (lambda (db target runname keys keynames keyvallst) (let* ((itempatt (args:get-arg "-itempatt")) (paths (db:test-get-paths-matching db keyvallst runname keys keynames target))) (for-each (lambda (path) (print path)) paths))))) ;;====================================================================== ;; Extract a spreadsheet from the runs database ;;====================================================================== (if (args:get-arg "-extract-ods") (general-run-call |
︙ |