Overview
Comment: | Completed couple things for ods file extraction |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | v1.24 |
Files: | files | file ages | folders |
SHA1: |
9940aff1c0dfcb813a42fba37f284169 |
User & Date: | mrwellan on 2011-09-08 15:10:47 |
Other Links: | manifest | tags |
Context
2011-09-08
| ||
20:56 | Partial moved all values, expected, tol, units to test_data check-in: b846d139bd user: mrwellan tags: trunk | |
15:10 | Completed couple things for ods file extraction check-in: 9940aff1c0 user: mrwellan tags: trunk, v1.24 | |
2011-09-07
| ||
23:52 | Partial implemenation of writing out ods file from megatest.db check-in: 214b154bb2 user: mrwellan tags: trunk | |
Changes
Modified db.scm from [f6c0a6448e] to [4147bb9d6c].
︙ | |||
610 611 612 613 614 615 616 | 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 | - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - + - + + - + - + - + + + - + | ;;====================================================================== ;; Extract ods file from the db ;;====================================================================== ;; runspatt is a comma delimited list of run patterns ;; keypatt-alist must contain *all* keys with an associated pattern: '( ("KEY1" "%") .. ) (define (db:extract-ods-file db outputfile keypatt-alist runspatt) |
Modified keys.scm from [25e7738e04] to [e97ed0b788].
︙ | |||
83 84 85 86 87 88 89 | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | + - - + + - - - + - - - - + + + - - - + | ;; (debug:print 0 "x: " x " val: " val) (if (not val) ;; (debug:print 0 "WARNING: missing key " x ". Specified in database but not on command line, using \"unk\"") (set! val "default")) (if withkey (list x val) (list val)))) argkeys)))) ;; Given a list of keys (list of vectors) return an alist ((key argval) ...) |
︙ |
Modified megatest-version.scm from [0e4590aa3f] to [b05fa1ddeb].
1 2 | 1 2 3 | - + | ;; Always use two digit decimal ;; 1.01, 1.02...1.10,1.11 ... 1.99,2.00.. |
Modified megatest.scm from [410ce3edb9] to [4c09e8865f].
︙ | |||
70 71 72 73 74 75 76 77 78 79 80 81 82 83 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | + | -rerun FAIL,WARN... : re-run if called on a test that previously ran (nullified if -keepgoing is also specified) -rebuild-db : bring the database schema up to date -rollup : fill run (set by :runname) with latest test(s) from prior runs with same keys -rename-run <runb> : rename run (set by :runname) to <runb>, requires keys -update-meta : update the tests metadata for all tests -extract-ods : extract an open document spreadsheet from the database Helpers -runstep stepname ... : take remaining params as comand and execute as stepname log will be in stepname.log. Best to put command in quotes -logpro file : with -exec apply logpro file to stepname.log, creates stepname.html and sets log to same If using make use stepname_logpro.log as your target |
︙ | |||
115 116 117 118 119 120 121 122 123 124 125 126 127 128 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | + | ":first_err" ":first_warn" ":value" ":expected_value" ":tol" ":units" ;; misc "-extract-ods" "-debug" ;; for *verbosity* > 2 ) (list "-h" "-force" "-xterm" "-showkeys" "-test-status" |
︙ | |||
310 311 312 313 314 315 316 317 318 319 320 321 322 323 | 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 | + + + + + + + + + + + + + + | (general-run-call "-rollup" "rollup tests" (lambda (db keys keynames keyvallst) (let ((n (args:get-arg "-rollup"))) (runs:rollup-run db keys))))) ;;====================================================================== ;; Extract a spreadsheet from the runs database ;;====================================================================== (if (args:get-arg "-extract-ods") (general-run-call "-extract-ods" "Make ods spreadsheet" (lambda (db keys keynames keyvallst) (let ((outputfile (args:get-arg "-extract-ods")) (runspatt (args:get-arg ":runname")) (keyvalalist (keys->alist keys "%"))) (db:extract-ods-file db outputfile keyvalalist (if runspatt runspatt "%")))))) ;;====================================================================== ;; run one test ;;====================================================================== ;; 1. find the config file ;; 2. change to the test directory ;; 3. update the db with "test started" status, set running host |
︙ |
Modified ods.scm from [1a2ebfec3c] to [6e104f5f8a].
︙ | |||
130 131 132 133 134 135 136 | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | - + - - - - + + + - + - - - + + + + + + + + + | ;; sheetdat is '("sheetname" (r1c1 r2c2 ...)(r2c1 r2c2 ...) ...) (define (ods:sheet sheetdat) (let ((name (car sheetdat)) (rows (cdr sheetdat))) (conc "<table:table table:name=\"" name "\" table:style-name=\"ta1\" table:print=\"false\">\n" (conc (ods:column) |
︙ | |||
201 202 203 204 205 206 207 | 206 207 208 209 210 211 212 213 214 | - + | (ods:add-non-content-files path) (ods:make-thumbnail path) (map display ods:content-header) ;; process each sheet (map print (map ods:sheet data)) (map display ods:content-footer))) |