Overview
Comment: | Adding html file as .wiki |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
513285e1174f21359c464c27d0d2ae5b |
User & Date: | matt on 2011-09-21 00:45:17 |
Other Links: | manifest | tags |
Context
2011-09-21
| ||
00:53 | Manually tweaked megatest.wiki, remove top 10 or so lines, added missing title text back in. Removed last two lines check-in: b6762fdadf user: matt tags: trunk | |
00:45 | Adding html file as .wiki check-in: 513285e117 user: matt tags: trunk | |
00:12 | Added starting docs for dashboard check-in: 04bf62110e user: matt tags: trunk | |
Changes
Modified docs/megatest.html from [50f0ba7bf3] to [ecf823ced4].
︙ | |||
59 60 61 62 63 64 65 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - + | </div> <div class="Standard"> <p><br/> </p> </div> <h1 class="Section-"> |
︙ | |||
90 91 92 93 94 95 96 | 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - + | <td align="center" valign="top"> v1.25 </td> <td align="center" valign="top"> matt </td> <td align="justify" valign="top"> |
︙ | |||
112 113 114 115 116 117 118 | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | - + | </div> <div class="fulltoc"> <div class="tocheader"> Table of Contents </div> <div class="tocindent"> <div class="toc"> |
︙ | |||
200 201 202 203 204 205 206 207 208 209 210 211 | 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 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 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | + + + + + + - + + + + - + - + - + - + - + - + - + - + - + - + - + - + | </div> <div class="toc"> <a class="Link" href="#toc-Subsection-6.2">Subsection 6.2: Rewrite your main.csh for iteration</a> </div> <div class="toc"> <a class="Link" href="#toc-Subsection-6.3">Subsection 6.3: Tests with Inter-test dependencies</a> </div> <div class="toc"> <a class="Link" href="#toc-Subsection-6.4">Subsection 6.4: Rolling up Miscellaneous Data</a> </div> <div class="toc"> <a class="Link" href="#toc-Subsection-6.5">Subsection 6.5: Rolling up Runs</a> </div> </div> <div class="toc"> <a class="Link" href="#toc-Section-7">Section 7: Dashboard</a> </div> <div class="toc"> |
︙ | |||
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 | 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 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + | waiton cpu mem </div> </pre> </div> </div> <h2 class="Subsection"> <a class="toc" name="toc-Subsection-6.4">6.4</a> Rolling up Miscellaneous Data </h2> <div class="Standard"> Use the -load-test-data switch to roll up arbitrary data from a test into the test_data table. </div> <div class="Standard"> <div class="listing"> <pre class="listing"># Fields are: # category,variable,value,expected,tol,units,comment,status $MT_MEGATEST -load-test-data << EOF foo,bar,1.2,1.9,> foo,rab,1.0e9,10e9,1e9 foo,bla,1.2,1.9,< foo,bal,1.2,1.2,<,,Check for overload foo,alb,1.2,1.2,<=,Amps,This is the high power circuit test foo,abl,1.2,1.3,0.1 foo,bra,1.2,pass,silly stuff faz,bar,10,8mA,,,"this is a comment" EOF </pre> </div> </div> <div class="Standard"> New entries are keyed on the category and variable. If a new record is inserted with a category and variable that have already been used the new record will replace the old record. </div> <div class="Standard"> Where value, expected and tol are specified the behavior is as follows. </div> <ul> <li> If value, expected and tol are numbers then status is calculated as PASS if (expected-tol) <= value <= (expected+tol) </li> <li> If value and expected are numbers and tol is >, <, >= or <= then value is compared with expected using the operator given by tol </li> <li> If status is specified its value overrides the above calculations. </li> </ul> <h2 class="Subsection"> <a class="toc" name="toc-Subsection-6.5">6.5</a> Rolling up Runs </h2> <div class="Standard"> To roll up a number of tests in a sequence of runs to a single run use the -rollup command. </div> <div class="Standard"> <div class="listing"> <pre class="listing">megatest -rollup :sysname ubuntu :fsname nfs :datapath none :runname rollup_ww38 </pre> </div> </div> <div class="Standard"> All keys must be specified and the runname is the name of the run that will be created. All paths are kept original inside the database. When -remove-runs is used to delete runs the data is not deleted if there are rollups that refer to the data. </div> <h1 class="Section"> <a class="toc" name="toc-Section-7">7</a> Dashboard </h1> <div class="Standard"> <div class="listing"> <pre class="listing">> dashboard & </pre> </div> </div> <div class="Standard"> <img class="embedded" src="dashboard.png" alt="figure dashboard.png" style="width: 730px; max-width: 913px; height: 626px; max-height: 783px; "/> </div> <div class="Standard"> Pushing one of the buttons on the main dashboard will bring up the test specific dashboard. Values are updated in semi-real time as the test runs. </div> <div class="Standard"> <img class="embedded" src="dashboard-test.png" alt="figure dashboard-test.png" style="width: 643px; max-width: 804px; height: 571px; max-height: 714px; "/> </div> <h1 class="Section"> <a class="toc" name="toc-Section-8">8</a> Generating an OpenDocument Spreadsheet from the Database </h1> <div class="Standard"> And OpenDocument multi-paned spreadsheet can be generated from the megatest.db file by running -extract-ods </div> <div class="Standard"> <div class="listing"> <pre class="listing">megatest -extract-ods results.ods :runname % </pre> </div> </div> <div class="Standard"> You can optionally specify the keys for your database to limit further the runs to extract into the spreadsheet. The first sheet contains all the run data and subsequent sheets contain data rolled up for the individual tests. </div> <h1 class="Section"> |
︙ | |||
782 783 784 785 786 787 788 | 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 | - + | </tr> </table> </div> <h2 class="Subsection"> |
︙ | |||
953 954 955 956 957 958 959 | 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 | - + | </tr> </table> </div> <h2 class="Subsection"> |
︙ | |||
1056 1057 1058 1059 1060 1061 1062 | 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 | - + - + | <div class="Code"> ENCRYPTION true </div> <div class="Code"> TESTPATH /nfs/testing/megacorp_runs </div> <h2 class="Subsection"> |
︙ | |||
1140 1141 1142 1143 1144 1145 1146 | 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 | - + | </tr> </table> </div> <h3 class="Subsubsection"> |
︙ | |||
1487 1488 1489 1490 1491 1492 1493 | 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 | - + | </h1> <h1 class="Section"> <a class="toc" name="toc-Section-B">B</a> References </h1> <hr class="footer"/> <div class="footer" id="generated-by"> |
Modified docs/megatest.lyx from [23c11249c1] to [89493499f6].
︙ | |||
324 325 326 327 328 329 330 | 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | - + | \begin_inset Newpage newpage \end_inset \end_layout \begin_layout Section* |
︙ | |||
405 406 407 408 409 410 411 | 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | - + | \end_inset </cell> <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none"> \begin_inset Text \begin_layout Plain Layout |
︙ | |||
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 | 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | waiton cpu mem \end_layout \end_inset \end_layout \begin_layout Subsection Rolling up Miscellaneous Data \end_layout \begin_layout Standard Use the -load-test-data switch to roll up arbitrary data from a test into the test_data table. \end_layout \begin_layout Standard \begin_inset listings inline false status open \begin_layout Plain Layout # Fields are: \end_layout \begin_layout Plain Layout # category,variable,value,expected,tol,units,comment,status \end_layout \begin_layout Plain Layout \end_layout \begin_layout Plain Layout $MT_MEGATEST -load-test-data << EOF \end_layout \begin_layout Plain Layout foo,bar,1.2,1.9,> \end_layout \begin_layout Plain Layout foo,rab,1.0e9,10e9,1e9 \end_layout \begin_layout Plain Layout foo,bla,1.2,1.9,< \end_layout \begin_layout Plain Layout foo,bal,1.2,1.2,<,,Check for overload \end_layout \begin_layout Plain Layout foo,alb,1.2,1.2,<=,Amps,This is the high power circuit test \end_layout \begin_layout Plain Layout foo,abl,1.2,1.3,0.1 \end_layout \begin_layout Plain Layout foo,bra,1.2,pass,silly stuff \end_layout \begin_layout Plain Layout faz,bar,10,8mA,,,"this is a comment" \end_layout \begin_layout Plain Layout EOF \end_layout \end_inset \end_layout \begin_layout Standard New entries are keyed on the category and variable. If a new record is inserted with a category and variable that have already been used the new record will replace the old record. \end_layout \begin_layout Standard Where value, expected and tol are specified the behavior is as follows. \end_layout \begin_layout Itemize If value, expected and tol are numbers then status is calculated as PASS if (expected-tol) <= value <= (expected+tol) \end_layout \begin_layout Itemize If value and expected are numbers and tol is >, <, >= or <= then value is compared with expected using the operator given by tol \end_layout \begin_layout Itemize If status is specified its value overrides the above calculations. \end_layout \begin_layout Subsection Rolling up Runs \end_layout \begin_layout Standard To roll up a number of tests in a sequence of runs to a single run use the -rollup command. \end_layout \begin_layout Standard \begin_inset listings inline false status open \begin_layout Plain Layout megatest -rollup :sysname ubuntu :fsname nfs :datapath none :runname rollup_ww38 \end_layout \end_inset \end_layout \begin_layout Standard All keys must be specified and the runname is the name of the run that will be created. All paths are kept original inside the database. When -remove-runs is used to delete runs the data is not deleted if there are rollups that refer to the data. \end_layout \begin_layout Section Dashboard \end_layout \begin_layout Standard \begin_inset listings inline false status open \begin_layout Plain Layout > dashboard & \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Graphics filename dashboard.png scale 80 \end_inset \end_layout \begin_layout Standard Pushing one of the buttons on the main dashboard will bring up the test specific dashboard. Values are updated in semi-real time as the test runs. \end_layout \begin_layout Standard \begin_inset Graphics filename dashboard-test.png scale 80 \end_inset \end_layout \begin_layout Section Generating an OpenDocument Spreadsheet from the Database \end_layout \begin_layout Standard And OpenDocument multi-paned spreadsheet can be generated from the megatest.db file by running -extract-ods \end_layout \begin_layout Standard \begin_inset listings inline false status open \begin_layout Plain Layout megatest -extract-ods results.ods :runname % \end_layout \end_inset \end_layout \begin_layout Standard You can optionally specify the keys for your database to limit further the runs to extract into the spreadsheet. The first sheet contains all the run data and subsequent sheets contain data rolled up for the individual tests. \end_layout \begin_layout Section Reference \end_layout \begin_layout Subsection Configuration file Syntax |
︙ |
Added docs/megatest.wiki version [50f0ba7bf3].