Check-in [8b3179d059]
Not logged in
Overview
SHA1 Hash:8b3179d059a22ce30d355a4b67654a7ba7a3443b
Date: 2012-04-23 11:07:23
User: mrwellan
Comment:Merged extend-test-get-path into trunk
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | manifest
Tags And Properties
Changes

Modified Makefile from [65935ed0bad2bd4f] to [baa18dd99f8c51c1].

1 1 2 PREFIX=. 2 PREFIX=. 3 CSCOPTS= 3 CSCOPTS= 4 INSTALL=install 4 INSTALL=install 5 SRCFILES = common.scm items.scm launch.scm \ 5 SRCFILES = common.scm items.scm launch.scm \ 6 ods.scm runconfig.scm server.scm configf.scm \ 6 ods.scm runconfig.scm server.scm configf.scm \ 7 db.scm keys.scm margs.scm megatest-version.scm \ 7 db.scm keys.scm margs.scm megatest-version.scm \ 8 process.scm runs.scm tasks.scm tests.scm | 8 process.scm runs.scm tasks.scm tests.scm genexample.scm 9 9 10 GUISRCF = dashboard.scm dashboard-tests.scm dashboard-guimonitor.scm dashboard- 10 GUISRCF = dashboard.scm dashboard-tests.scm dashboard-guimonitor.scm dashboard- 11 11 12 OFILES = $(SRCFILES:%.scm=%.o) 12 OFILES = $(SRCFILES:%.scm=%.o) 13 GOFILES = $(GUISRCF:%.scm=%.o) 13 GOFILES = $(GUISRCF:%.scm=%.o) 14 14 15 HELPERS=$(addprefix $(PREFIX)/bin/,mt_laststep mt_runstep mt_ezstep) 15 HELPERS=$(addprefix $(PREFIX)/bin/,mt_laststep mt_runstep mt_ezstep)

Modified configf.scm from [26cad9ffd1215520] to [2c4fe9609e82377a].

231 231 232 (define (configf:section-vars cfgdat section) 232 (define (configf:section-vars cfgdat section) 233 (let ((sectdat (hash-table-ref/default cfgdat section '()))) 233 (let ((sectdat (hash-table-ref/default cfgdat section '()))) 234 (if (null? sectdat) 234 (if (null? sectdat) 235 '() 235 '() 236 (map car sectdat)))) 236 (map car sectdat)))) 237 237 > 238 (define (configf:get-section cfdat section) > 239 (hash-table-ref/default cfgdat section '())) > 240 238 (define (setup) 241 (define (setup) 239 (let* ((configf (find-config)) 242 (let* ((configf (find-config)) 240 (config (if configf (read-config configf #f #t) #f))) 243 (config (if configf (read-config configf #f #t) #f))) 241 (if config 244 (if config 242 (setenv "RUN_AREA_HOME" (pathname-directory configf))) 245 (setenv "RUN_AREA_HOME" (pathname-directory configf))) 243 config)) 246 config)) 244 247

Modified db.scm from [2c88e7344f9bad2f] to [92d14b406bf60a5d].

609 logf test-id) 609 logf test-id) 610 (debug:print 0 "ERROR: db:test-set-log! called with non-string log file na 610 (debug:print 0 "ERROR: db:test-set-log! called with non-string log file na 611 611 612 ;;====================================================================== 612 ;;====================================================================== 613 ;; Misc. test related queries 613 ;; Misc. test related queries 614 ;;====================================================================== 614 ;;====================================================================== 615 615 616 (define (db:test-get-paths-matching db keynames target) | 616 (define (db:test-get-paths-matching db keynames target fnamepatt #!key (res '()) 617 (let* ((res '()) < 618 (itempatt (if (args:get-arg "-itempatt")(args:get-arg "-itempatt") "% | 617 (let* ((itempatt (if (args:get-arg "-itempatt")(args:get-arg "-itempatt") "% 619 (testpatt (if (args:get-arg "-testpatt")(args:get-arg "-testpatt") "% 618 (testpatt (if (args:get-arg "-testpatt")(args:get-arg "-testpatt") "% 620 (statepatt (if (args:get-arg ":state") (args:get-arg ":state") "% 619 (statepatt (if (args:get-arg ":state") (args:get-arg ":state") "% 621 (statuspatt (if (args:get-arg ":status") (args:get-arg ":status") "% 620 (statuspatt (if (args:get-arg ":status") (args:get-arg ":status") "% 622 (runname (if (args:get-arg ":runname") (args:get-arg ":runname") "% 621 (runname (if (args:get-arg ":runname") (args:get-arg ":runname") "% 623 (keystr (string-intersperse 622 (keystr (string-intersperse 624 (map (lambda (key val) 623 (map (lambda (key val) 625 (conc "r." key " like '" val "'")) 624 (conc "r." key " like '" val "'")) ................................................................................................................................................................................ 632 "'ORDER BY t.event_time ASC;"))) 631 "'ORDER BY t.event_time ASC;"))) 633 (debug:print 3 "qrystr: " qrystr) 632 (debug:print 3 "qrystr: " qrystr) 634 (sqlite3:for-each-row 633 (sqlite3:for-each-row 635 (lambda (p) 634 (lambda (p) 636 (set! res (cons p res))) 635 (set! res (cons p res))) 637 db 636 db 638 qrystr) 637 qrystr) > 638 (if fnamepatt > 639 (apply append > 640 (map (lambda (p) > 641 (glob (conc p "/" fnamepatt))) 639 res)) | 642 res)) > 643 res))) > 644 > 645 ;; look through tests from matching runs for a file > 646 (define (db:test-get-first-path-matching db keynames target fname) > 647 ;; [refpaths] is the section where references to other megatest databases are > 648 (let ((mt-paths (configf:get-section "refpaths")) > 649 (res (db:test-get-paths-matching db keynames target fname))) > 650 (let loop ((pathdat (if (null? paths) #f (car mt-paths))) > 651 (tal (if (null? paths) '()(cdr mt-paths)))) > 652 (if (not (null? res)) > 653 (car res) ;; return first found > 654 (if path > 655 (let* ((db (open-db path: (cadr pathdat))) > 656 (newres (db:test-get-paths-matching db keynames target fnam > 657 (debug:print 4 "INFO: Trying " (car pathdat) " at " (cadr pathda > 658 (sqlite3:finalize! db) > 659 (if (not (null? newres)) > 660 (car newres) > 661 (if (null? tal) > 662 #f > 663 (loop (car tal)(cdr tal)))))))))) > 664 640 665 641 (define (db:test-get-test-records-matching db keynames target) 666 (define (db:test-get-test-records-matching db keynames target) 642 (let* ((res '()) 667 (let* ((res '()) 643 (itempatt (if (args:get-arg "-itempatt")(args:get-arg "-itempatt") "% 668 (itempatt (if (args:get-arg "-itempatt")(args:get-arg "-itempatt") "% 644 (testpatt (if (args:get-arg "-testpatt")(args:get-arg "-testpatt") "% 669 (testpatt (if (args:get-arg "-testpatt")(args:get-arg "-testpatt") "% 645 (statepatt (if (args:get-arg ":state") (args:get-arg ":state") "% 670 (statepatt (if (args:get-arg ":state") (args:get-arg ":state") "% 646 (statuspatt (if (args:get-arg ":status") (args:get-arg ":status") "% 671 (statuspatt (if (args:get-arg ":status") (args:get-arg ":status") "%

Added genexample.scm version [2688ae0606e40ce3]

> 1 ;;====================================================================== > 2 ;; Copyright 2006-2012, Matthew Welland. > 3 ;; > 4 ;; This program is made available under the GNU GPL version 2.0 or > 5 ;; greater. See the accompanying file COPYING for details. > 6 ;; > 7 ;; This program is distributed WITHOUT ANY WARRANTY; without even the > 8 ;; implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR > 9 ;; PURPOSE. > 10 ;;====================================================================== > 11 > 12 (declare (unit genexample)) > 13 (use posix) > 14 > 15 (define genexample:example-logpro > 16 #<<EOF > 17 ;; You should have at least one expect:required. This ensures that your process > 18 (expect:required in "LogFileBody" > 0 "Put description here" #/put pattern here/ > 19 > 20 ;; You may need ignores to suppress false error or warning hits from the later e > 21 ;; NOTE: Order is important here! > 22 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ > 23 (expect:warning in "LogFileBody" = 0 "Any warning" #/warn/) > 24 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;; > 25 EOF > 26 ) > 27 > 28 (define genexample:example-script > 29 #<<EOF > 30 #!/usr/bin/env bash > 31 > 32 # Run your step here > 33 EOF > 34 ) > 35 > 36 (define (genexample:mk-megatest.config) > 37 (let ((keystr #f) > 38 (keys #f) > 39 (lntree #f) > 40 (path #f) > 41 (firstd #f)) > 42 (print "Note: don't worry too much about typos in this process, you will be > 43 the generated files before starting your first runs") > 44 > 45 ;; create the needed area > 46 (print "==================\nWhere can I create your Megatest regresssion/con > 47 "tests will not necessarily be run in this area, disk space needs are > 48 (display "Enter your megatest directory: ") > 49 (set! path (read-line)) > 50 > 51 (if (not (directory? path)) > 52 (begin > 53 (print "The path " path " does not exist or is not a directory. Attemp > 54 (create-directory path #t))) > 55 > 56 ;; First check that megatest.config does not exist! > 57 (if (file-exists? (conc path "/megatest.config")) > 58 (begin > 59 (print "WARNING: megatest.config already exists! Do you wish to clobbe > 60 (display "Enter y/n: ") > 61 (if (not (equal? "y" (read-line))) > 62 (begin > 63 (print "INFO: Creation of megatest files in " path " aborted") > 64 (exit 1))))) > 65 > 66 ;; first prompt user for fields > 67 ;; > 68 (print "==================\nNext you must specify fields or keys for your me > 69 be used to organise your runs. One field should probably be \"RELEASE\". > 70 Other examples of useful fields might be \"PLATFORM\", \"TARGET_OS\" or if you a > 71 semiconductor business perhaps things like \"TECHNOLOGY_NODE\", \"DESIGN_KIT\" o > 72 > 73 The all caps is a convention because the variables you choose will be available > 74 as environment variables. You can edit these values later but it is generally a > 75 settle on them and get them right early on. Your runs will be stored in director > 76 your keys. Example, if you have keys OSFAMILY/VARIANT/OSVER/RELEASE you may get > 77 in a directory like this: linux/ubuntu/11.04/rev_1.2/build > 78 > 79 Please enter your keys now, separated by spaces or slashes. Only alpha-numeric c > 80 Upper case recommended.") > 81 (display "Enter keys separated by spaces or slashes: ") > 82 (set! keystr (read-line)) > 83 (set! keys (apply append > 84 (map string-split (string-split keystr "/")))) > 85 > 86 ;; Now get the link tree location and a first disk > 87 (print "==================\nNow you need an initial place to store your runs > 88 can add more at any time. To get going provide a writeable directory name. ") > 89 (display "Enter your test runs directory: ") > 90 (set! firstd (read-line)) > 91 (if (not (directory? firstd)) > 92 (begin > 93 (print "WARNING: you have specified a path " firstd " that does not ex > 94 (create-directory firstd #t))) > 95 > 96 (print "==================\nMegatest uses a tree of symlinks to provide a un > 97 you run over time. Please provide a path where we can create this link tree.") > 98 (display "Enter link tree directory: ") > 99 (set! lntree (read-line)) > 100 (if (not (directory? lntree)) > 101 (begin > 102 (print "WARNING: you have specified a path " lntree "that does not exi > 103 (create-directory lntree #t))) > 104 > 105 (with-output-to-file (conc path "/megatest.config") > 106 (lambda () > 107 (print "[fields]") > 108 (map (lambda (k)(print k " TEXT")) keys) > 109 (print "") > 110 (print "[setup]") > 111 (print "# Adjust max_concurrent_jobs to limit how much you load your mac > 112 (print "max_concurrent_jobs 50\n") > 113 (print "# This is your link path, you can move it but it is generally be > 114 (print "linktree " lntree) > 115 (print "\n# Job tools are more advanced ways to control how your jobs ar > 116 (print "[jobtools]\nuseshell yes\nlauncher nbfind\n") > 117 (print "# You can override environment variables for all your tests here > 118 (print "[env-override]\nEXAMPLE_VAR example value\n") > 119 (print "# As you run more tests you may need to add additional disks, th > 120 (print "[disks]\ndisk0 " firstd))) > 121 > 122 (print "==================\nI'm now creating a runconfigs.config file for yo > 123 You can use this file to set variables for your tests based on the \"target\" (t > 124 of keys).") > 125 (with-output-to-file (conc path "/runconfigs.config") > 126 (lambda () > 127 (print "# The variables in the default category will be seen in all runs > 128 > 129 (print "# Your variables here are grouped by targets [" (string-interspe > 130 (let ((example-target (string-intersperse (map (lambda (k)(conc k "_val" > 131 (print "[" example-target "]") > 132 (print "ANOTHERVAR only defined if target is " example-target)))) > 133 > 134 ;; Now create a test and logpro file > 135 (print "You now have the basic common files for your megatest setup. Next ru > 136 "to create a test.\n\nThanks for using Megatest. You can edit your co > 137 "in the " path " directory"))) > 138 > 139 > 140 ;;====================================================================== > 141 ;; create skeleton files for a test > 142 ;;====================================================================== > 143 > 144 (define (genexample:mk-megatest-test testname) > 145 ;; Gather needed data > 146 (let ((waiton #f) > 147 (priority #f) > 148 (description #f) > 149 (steps '()) > 150 (scripts '()) > 151 (items '()) > 152 (rel-path #f)) > 153 > 154 (cond > 155 ((file-exists? "megatest.config") (set! rel-path "./")) > 156 ((file-exists? "../megatest.config") (set! rel-path "../")) > 157 ((file-exists? "../../megatest.config") (set! rel-path "../../")) > 158 ((file-exists? "../../../megatest.config")(set! rel-path "../../../"))) ;; > 159 > 160 ;; Don't gather data or continue if a) megatest.config can't be found or b) > 161 (if (not rel-path) > 162 (begin > 163 (print "ERROR: I could not find megatest.config, please run -get-megat > 164 (exit 1))) > 165 > 166 (if (file-exists? (conc rel-path "tests/" testname "/testconfig")) > 167 (begin > 168 (print "WARNING: You already have a testconfig in " rel-path "tests/" > 169 (display "Enter y/n: ") > 170 (if (not (equal? "y" (read-line))) > 171 (begin > 172 (print "INFO: user abort of creation of test " testname) > 173 (exit 1))))) > 174 > 175 (print "We are going to generate a skeleton set of files for your test " tes > 176 " *** Note: do not worry too much about typos, you can edit the files > 177 > 178 (print "\n\n==================\nPlease describe this test. The description w > 179 (display "Enter one line description for this test: ") > 180 (set! description (read-line)) > 181 > 182 (print "\n\n==================\nDoes this test, " testname ", require any ot > 183 (display (conc "Enter space delimited list of tests which " testname " must > 184 (set! waiton (read-line)) > 185 > 186 (print "\n\n==================\nDo you wish to prioritize the running of thi > 187 (print "enter a number greater than zero here") > 188 (display "Enter a priority of 0 (default) or higher: ") > 189 (set! priority (read-line)) > 190 > 191 ;; Get the steps > 192 (print "\n\n==================\nNow to enter the one or more steps that make > 193 (print "Hint; use .sh extension on the script names and we'll create placeho > 194 > 195 (let ((stepname #f) > 196 (scriptname #f)) > 197 (let loop ((done #f)) > 198 (display "Enter the name for this step (blank to stop): ") > 199 (set! stepname (read-line)) > 200 (if (not (equal? stepname "")) > 201 (begin > 202 (display "Enter the script or progam to run: ") > 203 (set! scriptname (read-line)) > 204 (set! steps (append steps (list (list stepname scriptname)))))) > 205 (if (not (equal? stepname "")) > 206 (loop #f)))) > 207 > 208 ;; Get the items > 209 (print "\n\n==================\nNext we need to get the variables and values > 210 (let ((varname #f) > 211 (values #f)) > 212 (let loop ((done #f)) > 213 (display "Enter the variable name: ") > 214 (set! varname (read-line)) > 215 (if (not (equal? varname "")) > 216 (begin > 217 (display (conc "Enter the space separated list of values for " var > 218 (set! values (read-line)) > 219 (set! items (append items (list (conc varname " " values)))))) > 220 (if (not (equal? varname "")) > 221 (loop #f)))) > 222 > 223 ;; Now create the test > 224 (if (not rel-path) > 225 (begin > 226 (print "ERROR: You must run this command in a megatest area under wher > 227 (exit 1)) > 228 (let ((testdir (conc rel-path "tests/" testname))) > 229 (create-directory testdir #t) > 230 (with-output-to-file (conc testdir "/testconfig") > 231 (lambda () > 232 (print "# Add additional steps here. Format is \"stepname script\" > 233 (map (lambda (stp)(print (string-intersperse stp " "))) steps) > 234 (print "") > 235 (print "# Test requirements are specified here\n[requirements]") > 236 (print "waiton " waiton) > 237 (print "priority " priority "\n") > 238 (print "# Iteration for your tests are controlled by the items sec > 239 (map print items) > 240 (print "") > 241 (print "# test_meta is a section for storing additional data on yo > 242 (print "author " (get-environment-variable "USER")) > 243 (print "owner " (get-environment-variable "USER")) > 244 (print "description " description) > 245 (print "tags tagone,tagtwo") > 246 (print "reviewed never"))) > 247 ;; Now create shell scripts (if extension is .sh) and logpro files > 248 (for-each (lambda (stp) > 249 (let ((stepname (car stp)) > 250 (script (cadr stp))) > 251 (with-output-to-file (conc testdir "/" stepname ".logpro > 252 (lambda () > 253 (print genexample:example-logpro))) > 254 (with-output-to-file (conc testdir "/" script ".sh") > 255 (lambda () > 256 (print genexample:example-script))) > 257 (system (conc "chmod ug+r " (conc testdir "/" script ".s > 258 steps)))))) > 259 ;;

Modified megatest.scm from [7edaf0bfca18d3a1] to [4e1718db7636140d].

17 (declare (uses common)) 17 (declare (uses common)) 18 (declare (uses megatest-version)) 18 (declare (uses megatest-version)) 19 (declare (uses margs)) 19 (declare (uses margs)) 20 (declare (uses runs)) 20 (declare (uses runs)) 21 (declare (uses launch)) 21 (declare (uses launch)) 22 (declare (uses server)) 22 (declare (uses server)) 23 (declare (uses tests)) 23 (declare (uses tests)) > 24 (declare (uses genexample)) 24 25 25 (define *db* #f) ;; this is only for the repl, do not use in general!!!! 26 (define *db* #f) ;; this is only for the repl, do not use in general!!!! 26 27 27 (include "common_records.scm") 28 (include "common_records.scm") 28 (include "key_records.scm") 29 (include "key_records.scm") 29 (include "db_records.scm") 30 (include "db_records.scm") 30 31 ................................................................................................................................................................................ 71 -set-values : update or set values in the testdata table 72 -set-values : update or set values in the testdata table 72 :category : set the category field (optional) 73 :category : set the category field (optional) 73 :variable : set the variable name (optional) 74 :variable : set the variable name (optional) 74 :value : value measured (required) 75 :value : value measured (required) 75 :expected : value expected (required) 76 :expected : value expected (required) 76 :tol : |value-expect| <= tol (required, can be <, >, >=, <= 77 :tol : |value-expect| <= tol (required, can be <, >, >=, <= 77 :units : name of the units for value, expected_value etc. (op 78 :units : name of the units for value, expected_value etc. (op 78 < 79 -load-test-data : read test specific data for storage in the test_data 79 -load-test-data : read test specific data for storage in the test_data 80 from standard in. Each line is comma delimited with 80 from standard in. Each line is comma delimited with 81 fields category,variable,value,comment 81 fields category,variable,value,comment 82 82 83 Queries 83 Queries 84 -list-runs patt : list runs matching pattern \"patt\", % is the wildca 84 -list-runs patt : list runs matching pattern \"patt\", % is the wildca 85 -showkeys : show the keys used in this megatest setup 85 -showkeys : show the keys used in this megatest setup 86 -test-paths targpatt : get the most recent test path(s) matching targpatt e | 86 -test-path targpatt : get the most recent test path(s) matching targpatt e. 87 returns list sorted by age ascending, see examples b 87 returns list sorted by age ascending, see examples b 88 88 89 Misc 89 Misc 90 -rebuild-db : bring the database schema up to date 90 -rebuild-db : bring the database schema up to date 91 -update-meta : update the tests metadata for all tests 91 -update-meta : update the tests metadata for all tests 92 -env2file fname : write the environment to fname.csh and fname.sh 92 -env2file fname : write the environment to fname.csh and fname.sh 93 -setvars VAR1=val1,VAR2=val2 : Add environment variables to a run NB// these a 93 -setvars VAR1=val1,VAR2=val2 : Add environment variables to a run NB// these a ................................................................................................................................................................................ 98 98 99 Spreadsheet generation 99 Spreadsheet generation 100 -extract-ods fname.ods : extract an open document spreadsheet from the databa 100 -extract-ods fname.ods : extract an open document spreadsheet from the databa 101 -pathmod path : insert path, i.e. path/runame/itempath/logfile.html 101 -pathmod path : insert path, i.e. path/runame/itempath/logfile.html 102 will clear the field if no rundir/testname/itempath/ 102 will clear the field if no rundir/testname/itempath/ 103 if it contains forward slashes the path will be conv 103 if it contains forward slashes the path will be conv 104 to windows style 104 to windows style 105 < > 105 Getting started 106 Helpers (these only apply in test run mode) | 106 -gen-megatest-area : create a skeleton megatest area. You will be prompte > 107 -gen-megatest-test : create a skeleton megatest test. You will be prompte 107 108 108 Examples 109 Examples 109 110 110 # Get test paths | 111 # Get test path, the '.' is required, could use '*' or a specific path/file 111 megatest -test-paths -target ubuntu/n%/no% :runname w49% -testpatt test_mt% | 112 megatest -test-path . -target ubuntu/n%/no% :runname w49% -testpatt test_mt% 112 113 113 Called as " (string-intersperse (argv) " "))) 114 Called as " (string-intersperse (argv) " "))) 114 115 115 ;; -gui : start a gui interface 116 ;; -gui : start a gui interface 116 ;; -config fname : override the runconfig file with fname 117 ;; -config fname : override the runconfig file with fname 117 118 118 ;; process args 119 ;; process args ................................................................................................................................................................................ 152 "-server" 153 "-server" 153 "-extract-ods" 154 "-extract-ods" 154 "-pathmod" 155 "-pathmod" 155 "-env2file" 156 "-env2file" 156 "-setvars" 157 "-setvars" 157 "-set-state-status" 158 "-set-state-status" 158 "-debug" ;; for *verbosity* > 2 159 "-debug" ;; for *verbosity* > 2 > 160 "-gen-megatest-test" 159 "-override-timeout" 161 "-override-timeout" 160 ) 162 ) 161 (list "-h" 163 (list "-h" 162 "-force" 164 "-force" 163 "-xterm" 165 "-xterm" 164 "-showkeys" 166 "-showkeys" 165 "-test-status" 167 "-test-status" ................................................................................................................................................................................ 170 ;; misc 172 ;; misc 171 "-archive" 173 "-archive" 172 "-repl" 174 "-repl" 173 "-lock" 175 "-lock" 174 "-unlock" 176 "-unlock" 175 ;; queries 177 ;; queries 176 "-test-paths" ;; get path(s) to a test, ordered by young 178 "-test-paths" ;; get path(s) to a test, ordered by young > 179 "-test-path" ;; -test-paths is deprecated 177 180 178 "-runall" ;; run all tests 181 "-runall" ;; run all tests 179 "-remove-runs" 182 "-remove-runs" 180 "-usequeue" 183 "-usequeue" 181 "-rebuild-db" 184 "-rebuild-db" 182 "-rollup" 185 "-rollup" 183 "-update-meta" 186 "-update-meta" > 187 "-gen-megatest-area" 184 188 185 "-v" ;; verbose 2, more than normal (normal is 1) 189 "-v" ;; verbose 2, more than normal (normal is 1) 186 "-q" ;; quiet 0, errors/warnings only 190 "-q" ;; quiet 0, errors/warnings only 187 ) 191 ) 188 args:arg-hash 192 args:arg-hash 189 0)) 193 0)) 190 194 ................................................................................................................................................................................ 445 (args:get-arg "-unlock") 449 (args:get-arg "-unlock") 446 user)))) 450 user)))) 447 451 448 ;;====================================================================== 452 ;;====================================================================== 449 ;; Get paths to tests 453 ;; Get paths to tests 450 ;;====================================================================== 454 ;;====================================================================== 451 ;; Get test paths matching target, runname, testpatt, and itempatt 455 ;; Get test paths matching target, runname, testpatt, and itempatt 452 (if (args:get-arg "-test-paths") | 456 (if (or (args:get-arg "-test-path")(args:get-arg "-test-paths")) 453 ;; if we are in a test use the MT_CMDINFO data 457 ;; if we are in a test use the MT_CMDINFO data 454 (if (getenv "MT_CMDINFO") 458 (if (getenv "MT_CMDINFO") 455 (let* ((startingdir (current-directory)) 459 (let* ((startingdir (current-directory)) 456 (cmdinfo (read (open-input-string (base64:base64-decode (getenv 460 (cmdinfo (read (open-input-string (base64:base64-decode (getenv 457 (testpath (assoc/default 'testpath cmdinfo)) 461 (testpath (assoc/default 'testpath cmdinfo)) 458 (test-name (assoc/default 'test-name cmdinfo)) 462 (test-name (assoc/default 'test-name cmdinfo)) 459 (runscript (assoc/default 'runscript cmdinfo)) 463 (runscript (assoc/default 'runscript cmdinfo)) ................................................................................................................................................................................ 467 (change-directory testpath) 471 (change-directory testpath) 468 (if (not target) 472 (if (not target) 469 (begin 473 (begin 470 (debug:print 0 "ERROR: -target is required.") 474 (debug:print 0 "ERROR: -target is required.") 471 (exit 1))) 475 (exit 1))) 472 (if (not (setup-for-run)) 476 (if (not (setup-for-run)) 473 (begin 477 (begin 474 (debug:print 0 "Failed to setup, giving up on -test-paths, exiti | 478 (debug:print 0 "Failed to setup, giving up on -test-path, exitin 475 (exit 1))) 479 (exit 1))) 476 (set! db (open-db)) 480 (set! db (open-db)) 477 (if (not (args:get-arg "-server")) 481 (if (not (args:get-arg "-server")) 478 (server:client-setup db)) 482 (server:client-setup db)) 479 (let* ((itempatt (args:get-arg "-itempatt")) 483 (let* ((itempatt (args:get-arg "-itempatt")) 480 (keys (rdb:get-keys db)) 484 (keys (rdb:get-keys db)) 481 (keynames (map key:get-fieldname keys)) 485 (keynames (map key:get-fieldname keys)) ................................................................................................................................................................................ 482 (paths (rdb:test-get-paths-matching db keynames target))) 486 (paths (rdb:test-get-paths-matching db keynames target))) 483 (set! *didsomething* #t) 487 (set! *didsomething* #t) 484 (for-each (lambda (path) 488 (for-each (lambda (path) 485 (print path)) 489 (print path)) 486 paths))) 490 paths))) 487 ;; else do a general-run-call 491 ;; else do a general-run-call 488 (general-run-call 492 (general-run-call 489 "-test-paths" | 493 "-test-path" 490 "Get paths to tests" | 494 "Get paths to test" 491 (lambda (db target runname keys keynames keyvallst) 495 (lambda (db target runname keys keynames keyvallst) 492 (let* ((itempatt (args:get-arg "-itempatt")) 496 (let* ((itempatt (args:get-arg "-itempatt")) 493 (paths (rdb:test-get-paths-matching db keynames target))) 497 (paths (rdb:test-get-paths-matching db keynames target))) 494 (for-each (lambda (path) 498 (for-each (lambda (path) 495 (print path)) 499 (print path)) 496 paths)))))) 500 paths)))))) 497 501 ................................................................................................................................................................................ 753 (set! *didsomething* #t))) 757 (set! *didsomething* #t))) 754 758 755 (if (args:get-arg "-gui") 759 (if (args:get-arg "-gui") 756 (begin 760 (begin 757 (debug:print 0 "Look at the dashboard for now") 761 (debug:print 0 "Look at the dashboard for now") 758 ;; (megatest-gui) 762 ;; (megatest-gui) 759 (set! *didsomething* #t))) 763 (set! *didsomething* #t))) > 764 > 765 (if (args:get-arg "-gen-megatest-area") > 766 (begin > 767 (genexample:mk-megatest.config) > 768 (set! *didsomething* #t))) > 769 > 770 (if (args:get-arg "-gen-megatest-test") > 771 (let ((testname (args:get-arg "-gen-megatest-test"))) > 772 (genexample:mk-megatest-test testname) > 773 (set! *didsomething* #t))) 760 774 761 ;;====================================================================== 775 ;;====================================================================== 762 ;; Update the database schema on request 776 ;; Update the database schema on request 763 ;;====================================================================== 777 ;;====================================================================== 764 778 765 (if (args:get-arg "-rebuild-db") 779 (if (args:get-arg "-rebuild-db") 766 (begin 780 (begin

Modified tests.scm from [e315223b6123a087] to [ce4320f87b4210c8].

74 (not (null? tal))) 74 (not (null? tal))) 75 (loop (car tal)(cdr tal)) 75 (loop (car tal)(cdr tal)) 76 (if (null? results) #f 76 (if (null? results) #f 77 (car results)))))))))) 77 (car results)))))))))) 78 78 79 ;; get the previous records for when these tests were run where all keys match b 79 ;; get the previous records for when these tests were run where all keys match b 80 ;; NB// Merge this with test:get-previous-test-run-records? This one looks for a 80 ;; NB// Merge this with test:get-previous-test-run-records? This one looks for a 81 ;; can use wildcards. | 81 ;; can use wildcards. Also can likely be factored in with get test paths? 82 (define (test:get-matching-previous-test-run-records db run-id test-name item-pa 82 (define (test:get-matching-previous-test-run-records db run-id test-name item-pa 83 (let* ((keys (db:get-keys db)) 83 (let* ((keys (db:get-keys db)) 84 (selstr (string-intersperse (map (lambda (x)(vector-ref x 0)) keys) ", 84 (selstr (string-intersperse (map (lambda (x)(vector-ref x 0)) keys) ", 85 (qrystr (string-intersperse (map (lambda (x)(conc (vector-ref x 0) "=? 85 (qrystr (string-intersperse (map (lambda (x)(conc (vector-ref x 0) "=? 86 (keyvals #f) 86 (keyvals #f) 87 (tests-hash (make-hash-table))) 87 (tests-hash (make-hash-table))) 88 ;; first look up the key values from the run selected by run-id 88 ;; first look up the key values from the run selected by run-id

Modified tests/Makefile from [13b200064df75c38] to [02211f7dd5a59bb9].

7 IPADDR := "-" 7 IPADDR := "-" 8 # Set SERVER to "-server -" 8 # Set SERVER to "-server -" 9 SERVER := 9 SERVER := 10 10 11 runall : test1 test2 11 runall : test1 test2 12 12 13 test1 : cleanprep 13 test1 : cleanprep 14 $(MEGATEST) -runtests ez_pass -reqtarg ubuntu/nfs/none :runname $(RUNNAM | 14 cd fullrun;$(MEGATEST) -runtests ez_pass -reqtarg ubuntu/nfs/none :runna 15 15 16 test2 : cleanprep 16 test2 : cleanprep 17 $(MEGATEST) -runtests runfirst -reqtarg ubuntu/nfs/none :runname $(RUNNA | 17 cd fullrun;$(MEGATEST) -runtests runfirst -reqtarg ubuntu/nfs/none :runn 18 18 19 test3 : cleanprep 19 test3 : cleanprep 20 $(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNAME)_b -m "T | 20 cd fullrun;$(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNA 21 21 22 test4 : cleanprep 22 test4 : cleanprep 23 $(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNAME)_aa -v $ | 23 cd fullrun;$(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNA 24 $(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNAME)_ab -v $ | 24 cd fullrun;$(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNA 25 $(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNAME)_ac -v $ | 25 cd fullrun;$(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNA 26 $(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNAME)_ad -v $ | 26 cd fullrun;$(MEGATEST) -runall -reqtarg ubuntu/nfs/none :runname $(RUNNA 27 $(MEGATEST) -runtests runfirst -itempatt %/1 -reqtarg ubuntu/nfs/none :r | 27 cd fullrun;$(MEGATEST) -runtests runfirst -itempatt %/1 -reqtarg ubuntu/ 28 $(MEGATEST) -runtests runfirst -itempatt %blahha% -reqtarg ubuntu/nfs/no | 28 cd fullrun;$(MEGATEST) -runtests runfirst -itempatt %blahha% -reqtarg ub 29 29 30 cleanprep : ../*.scm Makefile *.config 30 cleanprep : ../*.scm Makefile *.config 31 sqlite3 megatest.db "delete from metadat where var='SERVER';" 31 sqlite3 megatest.db "delete from metadat where var='SERVER';" 32 mkdir -p /tmp/mt_runs /tmp/mt_links 32 mkdir -p /tmp/mt_runs /tmp/mt_links 33 cd ..;make install 33 cd ..;make install 34 $(MEGATEST) -remove-runs :runname $(RUNNAME)% -target %/%/% -testpatt % | 34 cd fullrun;$(MEGATEST) -remove-runs :runname $(RUNNAME)% -target %/%/% - 35 $(BINPATH)/dboard -rows 15 & | 35 cd fullrun;$(BINPATH)/dboard -rows 15 & 36 touch cleanprep 36 touch cleanprep 37 37 38 test : 38 test : 39 csi -b -I .. ../megatest.scm -- -runall -target ubuntu/afs/tmp :runname 39 csi -b -I .. ../megatest.scm -- -runall -target ubuntu/afs/tmp :runname 40 cd ../;make test 40 cd ../;make test 41 make runall 41 make runall 42 42 43 dashboard : 43 dashboard : 44 cd ../;make install 44 cd ../;make install 45 $(BINPATH)/dboard & | 45 cd fullrun;$(BINPATH)/dboard & 46 46 47 remove : 47 remove : 48 (cd ../;make);$(MEGATEST) -remove-runs :runname $(RUN) -testpatt % -ite | 48 (cd ../;make);cd fullrun;$(MEGATEST) -remove-runs :runname $(RUN) -test 49 49 50 clean : 50 clean : 51 rm cleanprep 51 rm cleanprep 52 52 53 runforever : 53 runforever : 54 while(ls); do runname=`date +%F-%R:%S`;$(MEGATEST) -runall -target ubunt | 54 while(ls); do runname=`date +%F-%R:%S`;(cd fullrun;$(MEGATEST) -runall -

Deleted tests/common_runconfigs.config version [bf3b671e75fc19a4]

1 [default] < 2 FOOBARBAZZZZ not a useful value < 3 BIGBOB $FOOBARBAZZZZ/bobby < 4 FREDDY $sysname/$fsname < 5 TOMMY [system pwd] < 6 < 7 [/tmp/mrwellan/env/ubuntu/afs] < 8 BOGOUS Bob < 9 < 10 [default/ubuntu/nfs] < 11 CURRENT /blah < 12 ALT_VAR we should not see this one < 13 < 14 [ubuntu/nfs/none] < 15 CURRENT /tmp/nada < 16 UNIQUEVAR this one should be set < 17 <

Name change from from tests/common_runconfigs.config to tests/fullrun/common_runconfigs.config.

Modified tests/fullrun/megatest.config from [1f4eabb06da802cd] to [507b18874c445a0c].

1 [fields] 1 [fields] 2 sysname TEXT 2 sysname TEXT 3 fsname TEXT 3 fsname TEXT 4 datapath TEXT 4 datapath TEXT > 5 > 6 # refareas can be searched to find previous runs > 7 # the path points to where megatest.db exists > 8 [refareas] > 9 area1 /tmp/oldarea/megatest 5 10 6 [setup] 11 [setup] 7 # exectutable /path/to/megatest 12 # exectutable /path/to/megatest 8 max_concurrent_jobs 200 13 max_concurrent_jobs 200 9 linktree /tmp/mt_links 14 linktree /tmp/mt_links 10 15 11 [jobtools] 16 [jobtools]

Name change from from tests/runconfigs.config to tests/fullrun/runconfigs.config.

Added tests/fullrun/tests/exit_0/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/exit_0/testconfig version [475b97c77b7e5862]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [test_meta] > 5 author matt > 6 owner bob > 7 description This test checks that a multi-lineitem test with mix of pass and non > 8 > 9 tags first,single > 10 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/exit_1/main.sh version [c5651ffc6c781dd4]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 1

Added tests/fullrun/tests/exit_1/testconfig version [b41a76aacb4fad14]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 9 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/ez_exit2_fail/testconfig version [fc174ee7f23ff12a]

> 1 [setup] > 2 > 3 [ezsteps] > 4 exit2 exit 2 > 5 lookithome ls /home > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test runs two steps; the first exits with > 11 code 2 (a fail because not using logpro) and the second > 12 is a pass > 13 > 14 tags first,single > 15 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/ez_fail/testconfig version [d90c6719c8b12efa]

> 1 [setup] > 2 > 3 [requirements] > 4 priority 10 > 5 > 6 [ezsteps] > 7 lookittmp sleep 5s;ls /tmp > 8 lookithome sleep 2;ls /home > 9 # should fail on next step > 10 lookitnada sleep 3;ls /nada > 11 lookitusr sleep 2;ls /usr > 12 > 13 [test_meta] > 14 author matt > 15 owner bob > 16 description This test runs a single ezstep which is expected to pass, no logpro > 17 > 18 tags first,single > 19 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/ez_pass/testconfig version [55e83172e9b4587f]

> 1 [setup] > 2 > 3 [ezsteps] > 4 lookittmp ls /tmp > 5 lookithome ls /home > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test runs a single ezstep which is expected to pass, no logpro > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/ezlog_fail/example.logpro version [e50a47bd5d58e571]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 ;; define your hooks > 6 (hook:first-error "echo \"Error hook activated: #{escaped errmsg}\"") > 7 (hook:first-warning "echo \"Got warning: #{escaped warnmsg}\"") > 8 (hook:value "echo \"Value hook activated: expected=#{expected}, measured=#{measu > 9 > 10 ;; first ensure your run at least started > 11 ;; > 12 (trigger "Init" #/This is a header/) > 13 (trigger "InitEnd" #/^\s*$/) > 14 (section "Init" "Init" "InitEnd") > 15 > 16 (trigger "Body" #/^.*$/) ;; anything starts the body > 17 ;; (trigger "EndBody" #/This had better never match/) > 18 > 19 (section "Body" "Body" "EndBody") > 20 > 21 (trigger "Blah2" #/^begin Blah2/) > 22 (trigger "Blah2End" #/^end Blah2/) > 23 (section "Blah2" "Blah2" "Blah2End") > 24 > 25 (expect:required in "Init" = 1 "Header" #/This is a header/) > 26 (expect:required in "LogFileBody" > 0 "Something required but not found" #/This > 27 (expect:value in "LogFileBody" 1.9 0.1 "Output voltage" #/Measured voltage ou > 28 (expect:value in "LogFileBody" 0.5 0.1 "Output current" #/Measured output cur > 29 (expect:value in "LogFileBody" 110e9 2e9 "A big number (first)" #/Freq:\s*([\ > 30 (expect:value in "LogFileBody" 110e9 1e9 "A big number (second), hook not cal > 31 (expect:value in "LogFileBody" 110e9 1e9 "A big number (never activated)" #/F > 32 > 33 ;; Using match number > 34 (expect:value in "LogFileBody" 1.9 0.1 "Time Voltage" #/out: (\d+)\s+(\d+)/ m > 35 > 36 ;; Comparison instead of tolerance > 37 (expect:value in "LogFileBody" 1.9 > "Time voltage" #/out: (\d+)\s+(\d+)/ m > 38 > 39 (expect:ignore in "Blah2" < 99 "FALSE ERROR" #/ERROR/) > 40 (expect:ignore in "Body" < 99 "Ignore the word error in comments" #/^\/\/.*er > 41 (expect:warning in "Body" = 0 "Any warning" #/WARNING/) > 42 (expect:error in "Body" = 0 "ERROR BLAH" (list #/ERROR/ #/error/)) ;; but d > 43 > 44 ;(expect in "Init" < 1 "Junk" #/This is bogus/)

Added tests/fullrun/tests/ezlog_fail/lookithome.logpro version [1d9c0ef873fc449b]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 > 6 (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) > 7 > 8 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ > 9 (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) > 10 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;;

Added tests/fullrun/tests/ezlog_fail/lookittmp.logpro version [961ab4aef4db7591]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) > 6 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/.*/)) ;; fo

Added tests/fullrun/tests/ezlog_fail/testconfig version [39388ec16fd6a556]

> 1 [setup] > 2 > 3 [ezsteps] > 4 lookittmp ls /tmp > 5 lookithome ls /home > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test runs two ezstep, the first of which is expected to fail us > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/ezlog_fail_then_pass/firststep.logpro version [1d9c0ef873fc449b]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 > 6 (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) > 7 > 8 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ > 9 (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) > 10 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;;

Added tests/fullrun/tests/ezlog_fail_then_pass/main.sh version [e978ba6f879fe603]

> 1 #!/bin/bash > 2 > 3 megatest -step yepstep :state start :status n/a > 4 ls /tmp > 5 megatest -step yepstep :state end :status $? > 6 > 7 megatest -load-test-data << EOF > 8 OPER,du, 1.2, 1.2, < , GBytes ,System didn't use too much space > 9 EOF > 10 > 11 # a bunch of steps in 2 second increments > 12 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 13 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 14 sleep 2 > 15 $MT_MEGATEST -step step$i :state end :status 0 > 16 done > 17 > 18 megatest -test-status :state COMPLETED :status AUTO

Added tests/fullrun/tests/ezlog_fail_then_pass/testconfig version [be9f816262caf64c]

> 1 [setup] > 2 > 3 [ezsteps] > 4 firststep main.sh > 5 > 6 [test_meta] > 7 author matt > 8 owner bob > 9 description This test runs a single ezstep which is logpro clean > 10 but fails based on -test-data loaded. > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/ezlog_pass/example.logpro version [e50a47bd5d58e571]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 ;; define your hooks > 6 (hook:first-error "echo \"Error hook activated: #{escaped errmsg}\"") > 7 (hook:first-warning "echo \"Got warning: #{escaped warnmsg}\"") > 8 (hook:value "echo \"Value hook activated: expected=#{expected}, measured=#{measu > 9 > 10 ;; first ensure your run at least started > 11 ;; > 12 (trigger "Init" #/This is a header/) > 13 (trigger "InitEnd" #/^\s*$/) > 14 (section "Init" "Init" "InitEnd") > 15 > 16 (trigger "Body" #/^.*$/) ;; anything starts the body > 17 ;; (trigger "EndBody" #/This had better never match/) > 18 > 19 (section "Body" "Body" "EndBody") > 20 > 21 (trigger "Blah2" #/^begin Blah2/) > 22 (trigger "Blah2End" #/^end Blah2/) > 23 (section "Blah2" "Blah2" "Blah2End") > 24 > 25 (expect:required in "Init" = 1 "Header" #/This is a header/) > 26 (expect:required in "LogFileBody" > 0 "Something required but not found" #/This > 27 (expect:value in "LogFileBody" 1.9 0.1 "Output voltage" #/Measured voltage ou > 28 (expect:value in "LogFileBody" 0.5 0.1 "Output current" #/Measured output cur > 29 (expect:value in "LogFileBody" 110e9 2e9 "A big number (first)" #/Freq:\s*([\ > 30 (expect:value in "LogFileBody" 110e9 1e9 "A big number (second), hook not cal > 31 (expect:value in "LogFileBody" 110e9 1e9 "A big number (never activated)" #/F > 32 > 33 ;; Using match number > 34 (expect:value in "LogFileBody" 1.9 0.1 "Time Voltage" #/out: (\d+)\s+(\d+)/ m > 35 > 36 ;; Comparison instead of tolerance > 37 (expect:value in "LogFileBody" 1.9 > "Time voltage" #/out: (\d+)\s+(\d+)/ m > 38 > 39 (expect:ignore in "Blah2" < 99 "FALSE ERROR" #/ERROR/) > 40 (expect:ignore in "Body" < 99 "Ignore the word error in comments" #/^\/\/.*er > 41 (expect:warning in "Body" = 0 "Any warning" #/WARNING/) > 42 (expect:error in "Body" = 0 "ERROR BLAH" (list #/ERROR/ #/error/)) ;; but d > 43 > 44 ;(expect in "Init" < 1 "Junk" #/This is bogus/)

Added tests/fullrun/tests/ezlog_pass/lookittmp.logpro version [1d9c0ef873fc449b]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 > 6 (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) > 7 > 8 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ > 9 (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) > 10 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;;

Added tests/fullrun/tests/ezlog_pass/testconfig version [13eb33bb909175be]

> 1 [setup] > 2 > 3 [ezsteps] > 4 lookittmp ls /tmp > 5 lookithome ls /home > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test runs a single ezstep which is expected to pass using a sim > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/ezlog_warn/lookithome.logpro version [b2a6575abfd9002b]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 > 6 ;; Force a warn for this test > 7 (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) > 8 > 9 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ > 10 (expect:warning in "LogFileBody" = 0 "Any warning" #/warn/) > 11 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;;

Added tests/fullrun/tests/ezlog_warn/lookittmp.logpro version [5323023529b0d316]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 > 6 (expect:warning in "LogFileBody" = 0 "Any warning" #/.*/) > 7 ;; Can't have a required since it will mask the warns! Could make the warn non-o > 8 ;; required I suppose... > 9 ;; (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) > 10 > 11 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ > 12 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;;

Added tests/fullrun/tests/ezlog_warn/testconfig version [bb1f94c96fdda7b0]

> 1 [setup] > 2 > 3 [ezsteps] > 4 lookittmp ls /tmp > 5 lookithome ls $HOME > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test runs two ezsteps the first of which is expected to fail us > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/lineitem_fail/main.sh version [b8aaccbe35feea16]

> 1 #!/bin/bash > 2 > 3 $MT_MEGATEST -load-test-data << EOF > 4 foo,bar, 1.2, 1.9, > > 5 foo,rab, 1.0e9, 10e9, 1e9 > 6 foo,bla, 1.2, 1.9, < > 7 foo,bal, 1.2, 1.2, < , ,Check for overload > 8 foo,alb, 1.2, 1.2, <= , Amps,This is the high power circuit test > 9 foo,abl, 1.2, 1.3, 0.1 > 10 foo,bra, 1.2, pass, silly stuff > 11 faz,bar, 10, 8mA, , ,"this is a comment" > 12 EOF > 13 > 14 # a bunch of steps in 2 second increments > 15 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 16 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 17 sleep 2 > 18 $MT_MEGATEST -step step$i :state end :status 0 > 19 done > 20 > 21 # Needed to force rolling up the results and set the test to COMPLETED > 22 $MT_MEGATEST -test-status :state COMPLETED :status AUTO > 23

Added tests/fullrun/tests/lineitem_fail/testconfig version [475b97c77b7e5862]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [test_meta] > 5 author matt > 6 owner bob > 7 description This test checks that a multi-lineitem test with mix of pass and non > 8 > 9 tags first,single > 10 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/lineitem_pass/main.sh version [c43fd19ef0fbd9d4]

> 1 #!/bin/bash > 2 > 3 # category variable value expected tol/comp units comment > 4 $MT_MEGATEST -load-test-data << EOF > 5 foo, bar, 1.9, 1.8, > > 6 foo, rab, 1.0e9, 2e9, 1e9 > 7 foo, bla, 1.2, 1.9, < > 8 foo, bal, -1.1, 0, < , , Check for overload > 9 foo, alb, 1.2, 1.2, <= , Amps, This is the high power circu > 10 foo, abl, 1.2, 1.3, 0.1 > 11 foo, bra, 1.2, pass, silly stuff > 12 faz, bar, 10, 8mA, , ,"this is a comment" > 13 EOF > 14 > 15 # a bunch of steps in 2 second increments > 16 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 17 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 18 sleep 2 > 19 $MT_MEGATEST -step step$i :state end :status 0 > 20 done > 21 # Needed to force rolling up the results and set the test to COMPLETED > 22 $MT_MEGATEST -test-status :state COMPLETED :status AUTO

Added tests/fullrun/tests/lineitem_pass/testconfig version [475b97c77b7e5862]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [test_meta] > 5 author matt > 6 owner bob > 7 description This test checks that a multi-lineitem test with mix of pass and non > 8 > 9 tags first,single > 10 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/logpro_required_fail/lookittmp.logpro version [312a36066eb58ea2]

> 1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com > 2 ;; > 3 ;; License GPL. > 4 > 5 (expect:required in "LogFileBody" > 0 "A file name that should never exist!" #/T > 6 > 7 ;; (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) > 8 ;; (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/.*/)) ;;

Added tests/fullrun/tests/logpro_required_fail/testconfig version [e006dc1513b22c88]

> 1 [setup] > 2 > 3 [ezsteps] > 4 lookittmp ls /tmp > 5 > 6 [test_meta] > 7 author matt > 8 owner bob > 9 description This test runs two ezstep, the first of which is expected to fail us > 10 > 11 tags logpro > 12 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/manual_example/results/results.csv version [5aae106e5bc8f38f]

> 1 category, variable, expected, value, tol, units, comment

Added tests/fullrun/tests/manual_example/runsetupxterm.sh version [de48b1c9d6f4bdc5]

> 1 #!/bin/bash > 2 > 3 if [[ $TARGETDISPLAY = "" || $TARGETHOST = "" || $TARGETDIR = "" || $TARGETUSER > 4 msg="You must set the TARGETDISPLAY, TARGETHOST, TARGETDIR and TARGETUSER va > 5 echo $msg > 6 megatest -test-status :state COMPLETED :status FAIL -m $msg > 7 exit 1 > 8 else > 9 megatest -step setup :state start :status n/a > 10 xterm -display $TARGETDISPLAY -e ./setupremote.sh > 11 megatest -step setup :state end :status $? > 12 fi > 13

Added tests/fullrun/tests/manual_example/setupremote.sh version [4f3f90bb148f2f9f]

> 1 #!/bin/bash > 2 > 3 megatest -step rsyncto :state start :status n/a > 4 echo "First, lets populate your area with necessary files, you may be prompted f > 5 rsync -avz $MT_TEST_RUN_DIR/ $TARGETUSER@$TARGETHOST:$TARGETDIR > 6 megatest -step rsyncto :state end :status n/a > 7 > 8 megatest -step runtest :state start :status n/a > 9 remotecmd="cd $TARGETDIR;xterm -display $TARGETDISPLAY" > 10 echo Launching $remotecmd on $TARGETHOST as $TARGETUSER > 11 ssh $TARGETUSER@$TARGETHOST $remotecmd > 12 megatest -step runtest :state end :status $? > 13 > 14 megatest -step gatherdata :state start :status n/a > 15 rsync -avz $TARGETUSER@$TARGETHOST:$TARGETDIR/results/ $MT_TEST_RUN_DIR/results/ > 16 if [[ -e $MT_TEST_RUN_DIR/results/results.csv ]]; then > 17 megatest -load-test-data < $MT_TEST_RUN_DIR/results/results.csv > 18 fi > 19 > 20 if [[ -e $MT_TEST_RUN_DIR/results/final_results.log && $MT_TEST_RUN_DIR/final_re > 21 logpro $MT_TEST_RUN_DIR/final_results.logpro $MT_TEST_RUN_DIR/final_results. > 22 if [[ $? = 0 ]]; then > 23 finalstatus=PASS > 24 else > 25 finalstatus=FAIL > 26 fi > 27 megatest -test-status :state COMPLETED :status $finalstatus -setlog final_re > 28 fi

Added tests/fullrun/tests/manual_example/testconfig version [a183e2009373e700]

> 1 [setup] > 2 > 3 [ezsteps] > 4 setup ./runsetupxterm.sh > 5 # launch launchxterm > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test runs a single ezstep which is expected to pass > 11 using a simple logpro file. > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/neverrun/testconfig version [88f71844f474220c]

> 1 [setup] > 2 runscript idontexist > 3 > 4

Added tests/fullrun/tests/priority_1/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_1/testconfig version [a4d944cb23cc1aa7]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 1 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_10/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_10/testconfig version [393387936a6af8fb]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 10 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_10_waiton_1/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_10_waiton_1/testconfig version [b7686d9e519fad10]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 10 > 6 waiton priority_1 > 7 > 8 [test_meta] > 9 author matt > 10 owner bob > 11 description This test checks that a multi-lineitem test with mix of pass and non > 12 > 13 tags first,single > 14 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_2/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_2/testconfig version [62b7ebcc8f320a02]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 2 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_3/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_3/testconfig version [3693d6b2eda212ed]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 3 > 6 > 7 > 8 [test_meta] > 9 author matt > 10 owner bob > 11 description This test checks that a multi-lineitem test with mix of pass and non > 12 > 13 tags first,single > 14 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_4/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_4/testconfig version [331e061c453b620a]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 4 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_5/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_5/testconfig version [ef11eb14931487ed]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 5 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_6/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_6/testconfig version [b12d3ed5db3ad067]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 6 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_7/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_7/testconfig version [3208e349900f4965]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 7 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_8/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_8/testconfig version [cce675c7476664cf]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 8 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/priority_9/main.sh version [0536bc3eb1c8bd2b]

> 1 #!/bin/bash > 2 > 3 # a bunch of steps in 2 second increments > 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do > 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html > 6 sleep 2 > 7 $MT_MEGATEST -step step$i :state end :status 0 > 8 done > 9 > 10 exit 0

Added tests/fullrun/tests/priority_9/testconfig version [b41a76aacb4fad14]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 priority 9 > 6 > 7 [test_meta] > 8 author matt > 9 owner bob > 10 description This test checks that a multi-lineitem test with mix of pass and non > 11 > 12 tags first,single > 13 reviewed 09/10/2011, by Matt

Added tests/fullrun/tests/runfirst/main.sh version [e4be557feb9d3853]

> 1 #!/bin/bash > 2 > 3 # megatest -step wasting_time :state start :status n/a -m "This is a test step c > 4 # sleep 20 > 5 # megatest -step wasting_time :state end :status $? > 6 > 7 touch ../I_was_here > 8 mkdir -p $MT_RUN_AREA_HOME/tmp/$USER/$sysname/$fsname/$datapath/$MT_RUNNAME > 9 echo 1 2 3 4 5 > $MT_RUN_AREA_HOME/tmp/$USER/$sysname/$fsname/$datapath/$MT_RUNN > 10 > 11 $MT_MEGATEST -runstep wasting_time -logpro wasting_time.logpro "sleep 8;echo all > 12 > 13 $MT_MEGATEST -load-test-data << EOF > 14 foo,bar,1.2,1.9,> > 15 foo,rab,1.0e9,10e9,1e9 > 16 foo,bla,1.2,1.9,< > 17 foo,bal,1.2,1.2,<,,Check for overload > 18 foo,alb,1.2,1.2,<=,Amps,This is the high power circuit test > 19 foo,abl,1.2,1.3,0.1 > 20 foo,bra,1.2,pass,silly stuff > 21 faz,bar,10,8mA,,,"this is a comment" > 22 EOF > 23 > 24 $MT_MEGATEST -load-test-data << EOF > 25 cat, var, val, exp, comp, units, comment, status, type > 26 ameas,iout,1.2,1.9,>,Amps,Comment,,meas > 27 EOF > 28 > 29 $MT_MEGATEST -test-status :state COMPLETED :status $? -m "This is a test level c > 30 > 31 # $MT_MEGATEST -test-status :state COMPLETED :status FAIL

Added tests/fullrun/tests/runfirst/testconfig version [f0b52bc3c637a69f]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [pre-launch-env-vars] > 5 # These are set before the test is launched on the originating > 6 # host. This can be used to control remote launch tools, e.g. to > 7 # to choose the target host, select the launch tool etc. > 8 SPECIAL_ENV_VAR override with everything after the first space. > 9 > 10 [items] > 11 SEASON summer winter fall spring > 12 > 13 [itemstable] > 14 BLOCK a b > 15 TOCK 1 2 > 16 > 17 [test_meta] > 18 author matt > 19 owner bob > 20 description This test must > 21 be run before the other tests > 22 > 23 tags first,single > 24 reviewed 1/1/1965

Added tests/fullrun/tests/runfirst/wasting_time.logpro version [1c532ab9c977dded]

> 1 ;; put stuff here > 2 > 3 ;; NOTE: This is not legit logpro code!!! > 4 > 5 ;; Test for 0=PASS, 1=WARN, >2 = FAIL > 6 > 7 ;; (define season (get-environment-variable "SEASON")) > 8 ;; > 9 ;; (exit > 10 ;; (case (string->symbol season) > 11 ;; ((summer) 0) > 12 ;; ((winter) 1) > 13 ;; ((fall) 2) > 14 ;; (else 0))) > 15

Added tests/fullrun/tests/singletest/main.sh version [e63ffb76fadbc087]

> 1 #!/bin/bash > 2 > 3 # megatest -step wasting_time :state start :status n/a -m "This is a test step c > 4 # sleep 20 > 5 # megatest -step wasting_time :state end :status $? > 6 > 7 $MT_MEGATEST -runstep wasting_time -logpro wasting_time.logpro "sleep 5;echo all > 8 > 9 $MT_MEGATEST -test-status :state COMPLETED :status $? -m "This is a test level c

Added tests/fullrun/tests/singletest/testconfig version [e1b002dc2e126a2c]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 diskspace 1M > 6 memory 1G > 7 > 8 [pre-launch-env-vars] > 9 # These are set before the test is launched on the originating > 10 # host. This can be used to control remote launch tools, e.g. to > 11 # to choose the target host, select the launch tool etc. > 12 SPECIAL_ENV_VAR override with everything after the first space. > 13

Added tests/fullrun/tests/singletest/wasting_time.logpro version [1c532ab9c977dded]

> 1 ;; put stuff here > 2 > 3 ;; NOTE: This is not legit logpro code!!! > 4 > 5 ;; Test for 0=PASS, 1=WARN, >2 = FAIL > 6 > 7 ;; (define season (get-environment-variable "SEASON")) > 8 ;; > 9 ;; (exit > 10 ;; (case (string->symbol season) > 11 ;; ((summer) 0) > 12 ;; ((winter) 1) > 13 ;; ((fall) 2) > 14 ;; (else 0))) > 15

Added tests/fullrun/tests/singletest2/main.sh version [54d3e4ef494bd371]

> 1 #!/bin/bash > 2 > 3 # megatest -step wasting_time :state start :status n/a -m "This is a test step c > 4 # sleep 20 > 5 # megatest -step wasting_time :state end :status $? > 6 > 7 $MT_MEGATEST -runstep wasting_time -logpro wasting_time.logpro "sleep 5;echo all > 8 > 9 $MT_MEGATEST -test-status :state COMPLETED :status $? -m "This is a test level c

Added tests/fullrun/tests/singletest2/testconfig version [2527ed76274d3207]

> 1 [setup] > 2 runscript main.sh > 3 > 4 [requirements] > 5 diskspace 1M > 6 memory 1G > 7 waiton singletest > 8 > 9 [pre-launch-env-vars] > 10 # These are set before the test is launched on the originating > 11 # host. This can be used to control remote launch tools, e.g. to > 12 # to choose the target host, select the launch tool etc. > 13 SPECIAL_ENV_VAR override with everything after the first space. > 14

Added tests/fullrun/tests/singletest2/wasting_time.logpro version [1c532ab9c977dded]

> 1 ;; put stuff here > 2 > 3 ;; NOTE: This is not legit logpro code!!! > 4 > 5 ;; Test for 0=PASS, 1=WARN, >2 = FAIL > 6 > 7 ;; (define season (get-environment-variable "SEASON")) > 8 ;; > 9 ;; (exit > 10 ;; (case (string->symbol season) > 11 ;; ((summer) 0) > 12 ;; ((winter) 1) > 13 ;; ((fall) 2) > 14 ;; (else 0))) > 15

Added tests/fullrun/tests/sqlitespeed/runscript.rb version [a573e1a6563b3391]

> 1 #! /usr/bin/env ruby > 2 > 3 require "#{ENV['MT_RUN_AREA_HOME']}/../supportfiles/ruby/librunscript.rb" > 4 > 5 # run_record(stepname, cmd) - will record in db if exit code of script was zero > 6 run_and_record('create db',"sqlite3 testing.db << EOF\ncreate table if not exist > 7 > 8 if (! File.exists?("../../runfirst/I_was_here")) > 9 puts "ERROR: This test was started before the prerequisites ran!" > 10 system "megatest -test-status :state INCOMPLETE :status FAIL" > 11 exit 1 > 12 end > 13 > 14 # file_size_checker(stepname, filename, minsize, maxsize) - negative means ignor > 15 # file_size_checker('create db','testing.db',100,-1) > 16 > 17 num_records=rand(5) # 0000 > 18 record_step("add #{num_records}","start","n/a") > 19 status=false > 20 (0..num_records).each do |i| > 21 randstring="a;lskdfja;sdfj;alsdfj;aslfdj;alsfja;lsfdj;alsfja;lsjfd;lasfjl;asdf > 22 # status=system "sqlite3 testing.db \"insert into blah (name) values ('#{rands > 23 system "megatest -step testing :state wrote_junk :status #{num_records}" > 24 sleep(5) > 25 puts "i=#{i}" > 26 end > 27 if status==0 > 28 status='pass' > 29 else > 30 status='fail' > 31 end > 32 > 33 record_step("add #{num_records}","end",status) > 34 > 35 > 36 > 37

Added tests/fullrun/tests/sqlitespeed/testconfig version [a64305aaab1b8f88]

> 1 [setup] > 2 runscript runscript.rb > 3 tags non important,dumb junk > 4 > 5 [requirements] > 6 waiton runfirst > 7 > 8 [items] > 9 MANYITEMS [system (env > envfile.txt;echo aa ab ac ad ae af ag ah ai)] > 10 # BORKED > 11

Added tests/fullrun/tests/test_mt_vars/altvarnotset.sh version [e1b639c562bb397b]

> 1 #!/usr/bin/env bash > 2 > 3 ! grep ALT_VAR megatest.sh

Added tests/fullrun/tests/test_mt_vars/bogousnotset.sh version [25167b86d9235427]

> 1 #!/usr/bin/env bash > 2 > 3 ! grep BOGOUS megatest.sh

Added tests/fullrun/tests/test_mt_vars/currentisblah.sh version [38498b5b33c53947]

> 1 #!/usr/bin/env bash > 2 > 3 grep CURRENT megatest.sh | grep /tmp/nada

Added tests/fullrun/tests/test_mt_vars/testconfig version [601765abe8c766ef]

> 1 [setup] > 2 > 3 [ezsteps] > 4 lookittmp ls /tmp > 5 lookithome ls /home > 6 # $CURRENT should be /tmp/nada > 7 currentisblah currentisblah.sh > 8 > 9 # $BOGOUS should NOT be set > 10 bogousnotset bogousnotset.sh > 11 > 12 # ALT_VAR should NOT be set > 13 altvarnotset altvarnotset.sh > 14 > 15 [requirements] > 16 waiton runfirst > 17 priority 0 > 18 > 19 [items] > 20 NUMNUM [system cat $MT_RUN_AREA_HOME/tmp/$USER/$sysname/$fsname/$datapath/$MT_RU > 21 > 22 [test_meta] > 23 author matt > 24 owner bob > 25 description This test runs a single ezstep which is expected to pass, no logpro > 26 > 27 tags first,single > 28 reviewed 09/10/2011, by Matt

Deleted tests/megatest.config version [1f4eabb06da802cd]

1 [fields] < 2 sysname TEXT < 3 fsname TEXT < 4 datapath TEXT < 5 < 6 [setup] < 7 # exectutable /path/to/megatest < 8 max_concurrent_jobs 200 < 9 linktree /tmp/mt_links < 10 < 11 [jobtools] < 12 useshell yes < 13 # ## launcher launches jobs, the job is managed on the target host < 14 ## by megatest, comment out launcher to run local < 15 # workhosts localhost hermes < 16 launcher nbfake < 17 # launcher nodanggood < 18 < 19 ## use "xterm -e csi -- " as a launcher to examine the launch environment. < 20 ## exit with (exit) < 21 ## get a shell with (system "bash") < 22 # launcher xterm -e csi -- < 23 < 24 [validvalues] < 25 state start end < 26 status pass fail n/a 0 1 running < 27 < 28 # These are set before all tests, override them < 29 # in the testconfig [pre-launch-env-overrides] section < 30 [env-override] < 31 SPECIAL_ENV_VARS overide them here - should be seen at launch and in the runs < 32 TESTVAR [system realpath .] < 33 DEADVAR [system ls] < 34 VARWITHDOLLAR $HOME/.zshrc < 35 WACKYVAR #{system ls > /dev/null} < 36 WACKYVAR2 #{get validvalues state} < 37 WACKYVAR3 #{getenv USER} < 38 WACKYVAR4 #{scheme (+ 5 6 7)} < 39 WACKYVAR5 #{getenv sysname}/#{getenv fsname}/#{getenv datapath} < 40 WACKYVAR6 #{scheme (args:get-arg "-target")} < 41 PREDICTABLE the_ans < 42 < 43 # XTERM [system xterm] < 44 # RUNDEAD [system exit 56] < 45 < 46 ## disks are: < 47 ## name host:/path/to/area < 48 ## -or- < 49 ## name /path/to/area < 50 [disks] < 51 1 /tmp/mt_runs < 52 < 53 [include #{getenv USER}_testing.config] <

Deleted tests/runconfigs.config version [bc079a5fba591d61]

1 [include common_runconfigs.config] < 2 < 3 WACKYVAR0 #{get ubuntu/nfs/none CURRENT} < 4 WACKYVAR1 #{scheme (args:get-arg "-target")} < 5 < 6 [default/ubuntu/nfs] < 7 WACKYVAR2 #{runconfigs-get CURRENT} < 8 <

Added tests/simplerun/megatest.config version [12e33187cae74b02]

> 1 [fields] > 2 SYSTEM TEXT > 3 RELEASE TEXT > 4 > 5 [setup] > 6 # Adjust max_concurrent_jobs to limit how much you load your machines > 7 max_concurrent_jobs 50 > 8 > 9 # This is your link path, you can move it but it is generally better to keep it > 10 linktree ../simplelinks > 11 > 12 # Job tools are more advanced ways to control how your jobs are launched > 13 [jobtools] > 14 useshell yes > 15 launcher nbfind > 16 > 17 # You can override environment variables for all your tests here > 18 [env-override] > 19 EXAMPLE_VAR example value > 20 > 21 # As you run more tests you may need to add additional disks, the names are arbi > 22 [disks] > 23 disk0 ../simpleruns

Added tests/simplerun/runconfigs.config version [346ed471549b7fd9]

> 1 [default] > 2 ALLTESTS see this variable > 3 > 4 # Your variables here are grouped by targets [SYSTEM/RELEASE] > 5 [SYSTEM_val/RELEASE_val] > 6 ANOTHERVAR only defined if target is SYSTEM_val/RELEASE_val

Added tests/simplerun/tests/test1/testconfig version [9ddcfab86d548c4a]

> 1 # Add additional steps here. Format is "stepname script" > 2 [ezsteps] > 3 step1 step1.sh > 4 step2 step2.sh > 5 > 6 # Test requirements are specified here > 7 [requirements] > 8 waiton setup > 9 priority 0 > 10 > 11 # Iteration for your tests are controlled by the items section > 12 [items] > 13 PARTOFDAY morning noon afternoon evening night > 14 > 15 # test_meta is a section for storing additional data on your test > 16 [test_meta] > 17 author matt > 18 owner matt > 19 description An example test > 20 tags tagone,tagtwo > 21 reviewed never

Added tests/simplerun/tests/test2/step1.logpro version [22f12ee837d77ff8]

> 1 ;; You should have at least one expect:required. This ensures that your process > 2 (expect:required in "LogFileBody" > 0 "Put description here" #/put pattern here/ > 3 > 4 ;; You may need ignores to suppress false error or warning hits from the later e > 5 ;; NOTE: Order is important here! > 6 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ > 7 (expect:warning in "LogFileBody" = 0 "Any warning" #/warn/) > 8 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;;

Added tests/simplerun/tests/test2/step1.sh.sh version [67f9a133dc133b12]

> 1 #!/usr/bin/env bash > 2 > 3 # Run your step here

Added tests/simplerun/tests/test2/step2.logpro version [22f12ee837d77ff8]

> 1 ;; You should have at least one expect:required. This ensures that your process > 2 (expect:required in "LogFileBody" > 0 "Put description here" #/put pattern here/ > 3 > 4 ;; You may need ignores to suppress false error or warning hits from the later e > 5 ;; NOTE: Order is important here! > 6 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ > 7 (expect:warning in "LogFileBody" = 0 "Any warning" #/warn/) > 8 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;;

Added tests/simplerun/tests/test2/step2.sh.sh version [67f9a133dc133b12]

> 1 #!/usr/bin/env bash > 2 > 3 # Run your step here

Added tests/simplerun/tests/test2/testconfig version [704f9b3ec459865e]

> 1 # Add additional steps here. Format is "stepname script" > 2 [ezsteps] > 3 step1 step1.sh > 4 step2 step2.sh > 5 > 6 # Test requirements are specified here > 7 [requirements] > 8 waiton test1 > 9 priority 0 > 10 > 11 # Iteration for your tests are controlled by the items section > 12 [items] > 13 LANDTYPE desert plains forest jungle beach > 14 > 15 # test_meta is a section for storing additional data on your test > 16 [test_meta] > 17 author matt > 18 owner matt > 19 description Yet another example test > 20 tags tagone,tagtwo > 21 reviewed never

Deleted tests/tests/exit_0/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/exit_0/testconfig version [475b97c77b7e5862]

1 [setup] < 2 runscript main.sh < 3 < 4 [test_meta] < 5 author matt < 6 owner bob < 7 description This test checks that a multi-lineitem test with mix of pass and non < 8 < 9 tags first,single < 10 reviewed 09/10/2011, by Matt <

Deleted tests/tests/exit_1/main.sh version [c5651ffc6c781dd4]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 1 <

Deleted tests/tests/exit_1/testconfig version [b41a76aacb4fad14]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 9 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/ez_exit2_fail/testconfig version [fc174ee7f23ff12a]

1 [setup] < 2 < 3 [ezsteps] < 4 exit2 exit 2 < 5 lookithome ls /home < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test runs two steps; the first exits with < 11 code 2 (a fail because not using logpro) and the second < 12 is a pass < 13 < 14 tags first,single < 15 reviewed 09/10/2011, by Matt <

Deleted tests/tests/ez_fail/testconfig version [d90c6719c8b12efa]

1 [setup] < 2 < 3 [requirements] < 4 priority 10 < 5 < 6 [ezsteps] < 7 lookittmp sleep 5s;ls /tmp < 8 lookithome sleep 2;ls /home < 9 # should fail on next step < 10 lookitnada sleep 3;ls /nada < 11 lookitusr sleep 2;ls /usr < 12 < 13 [test_meta] < 14 author matt < 15 owner bob < 16 description This test runs a single ezstep which is expected to pass, no logpro < 17 < 18 tags first,single < 19 reviewed 09/10/2011, by Matt <

Deleted tests/tests/ez_pass/testconfig version [55e83172e9b4587f]

1 [setup] < 2 < 3 [ezsteps] < 4 lookittmp ls /tmp < 5 lookithome ls /home < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test runs a single ezstep which is expected to pass, no logpro < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/ezlog_fail/example.logpro version [e50a47bd5d58e571]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 ;; define your hooks < 6 (hook:first-error "echo \"Error hook activated: #{escaped errmsg}\"") < 7 (hook:first-warning "echo \"Got warning: #{escaped warnmsg}\"") < 8 (hook:value "echo \"Value hook activated: expected=#{expected}, measured=#{measu < 9 < 10 ;; first ensure your run at least started < 11 ;; < 12 (trigger "Init" #/This is a header/) < 13 (trigger "InitEnd" #/^\s*$/) < 14 (section "Init" "Init" "InitEnd") < 15 < 16 (trigger "Body" #/^.*$/) ;; anything starts the body < 17 ;; (trigger "EndBody" #/This had better never match/) < 18 < 19 (section "Body" "Body" "EndBody") < 20 < 21 (trigger "Blah2" #/^begin Blah2/) < 22 (trigger "Blah2End" #/^end Blah2/) < 23 (section "Blah2" "Blah2" "Blah2End") < 24 < 25 (expect:required in "Init" = 1 "Header" #/This is a header/) < 26 (expect:required in "LogFileBody" > 0 "Something required but not found" #/This < 27 (expect:value in "LogFileBody" 1.9 0.1 "Output voltage" #/Measured voltage ou < 28 (expect:value in "LogFileBody" 0.5 0.1 "Output current" #/Measured output cur < 29 (expect:value in "LogFileBody" 110e9 2e9 "A big number (first)" #/Freq:\s*([\ < 30 (expect:value in "LogFileBody" 110e9 1e9 "A big number (second), hook not cal < 31 (expect:value in "LogFileBody" 110e9 1e9 "A big number (never activated)" #/F < 32 < 33 ;; Using match number < 34 (expect:value in "LogFileBody" 1.9 0.1 "Time Voltage" #/out: (\d+)\s+(\d+)/ m < 35 < 36 ;; Comparison instead of tolerance < 37 (expect:value in "LogFileBody" 1.9 > "Time voltage" #/out: (\d+)\s+(\d+)/ m < 38 < 39 (expect:ignore in "Blah2" < 99 "FALSE ERROR" #/ERROR/) < 40 (expect:ignore in "Body" < 99 "Ignore the word error in comments" #/^\/\/.*er < 41 (expect:warning in "Body" = 0 "Any warning" #/WARNING/) < 42 (expect:error in "Body" = 0 "ERROR BLAH" (list #/ERROR/ #/error/)) ;; but d < 43 < 44 ;(expect in "Init" < 1 "Junk" #/This is bogus/) <

Deleted tests/tests/ezlog_fail/lookithome.logpro version [1d9c0ef873fc449b]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 < 6 (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) < 7 < 8 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ < 9 (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) < 10 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;; <

Deleted tests/tests/ezlog_fail/lookittmp.logpro version [961ab4aef4db7591]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) < 6 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/.*/)) ;; fo <

Deleted tests/tests/ezlog_fail/testconfig version [39388ec16fd6a556]

1 [setup] < 2 < 3 [ezsteps] < 4 lookittmp ls /tmp < 5 lookithome ls /home < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test runs two ezstep, the first of which is expected to fail us < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/ezlog_fail_then_pass/firststep.logpro version [1d9c0ef873fc449b]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 < 6 (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) < 7 < 8 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ < 9 (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) < 10 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;; <

Deleted tests/tests/ezlog_fail_then_pass/main.sh version [e978ba6f879fe603]

1 #!/bin/bash < 2 < 3 megatest -step yepstep :state start :status n/a < 4 ls /tmp < 5 megatest -step yepstep :state end :status $? < 6 < 7 megatest -load-test-data << EOF < 8 OPER,du, 1.2, 1.2, < , GBytes ,System didn't use too much space < 9 EOF < 10 < 11 # a bunch of steps in 2 second increments < 12 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 13 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 14 sleep 2 < 15 $MT_MEGATEST -step step$i :state end :status 0 < 16 done < 17 < 18 megatest -test-status :state COMPLETED :status AUTO <

Deleted tests/tests/ezlog_fail_then_pass/testconfig version [be9f816262caf64c]

1 [setup] < 2 < 3 [ezsteps] < 4 firststep main.sh < 5 < 6 [test_meta] < 7 author matt < 8 owner bob < 9 description This test runs a single ezstep which is logpro clean < 10 but fails based on -test-data loaded. < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/ezlog_pass/example.logpro version [e50a47bd5d58e571]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 ;; define your hooks < 6 (hook:first-error "echo \"Error hook activated: #{escaped errmsg}\"") < 7 (hook:first-warning "echo \"Got warning: #{escaped warnmsg}\"") < 8 (hook:value "echo \"Value hook activated: expected=#{expected}, measured=#{measu < 9 < 10 ;; first ensure your run at least started < 11 ;; < 12 (trigger "Init" #/This is a header/) < 13 (trigger "InitEnd" #/^\s*$/) < 14 (section "Init" "Init" "InitEnd") < 15 < 16 (trigger "Body" #/^.*$/) ;; anything starts the body < 17 ;; (trigger "EndBody" #/This had better never match/) < 18 < 19 (section "Body" "Body" "EndBody") < 20 < 21 (trigger "Blah2" #/^begin Blah2/) < 22 (trigger "Blah2End" #/^end Blah2/) < 23 (section "Blah2" "Blah2" "Blah2End") < 24 < 25 (expect:required in "Init" = 1 "Header" #/This is a header/) < 26 (expect:required in "LogFileBody" > 0 "Something required but not found" #/This < 27 (expect:value in "LogFileBody" 1.9 0.1 "Output voltage" #/Measured voltage ou < 28 (expect:value in "LogFileBody" 0.5 0.1 "Output current" #/Measured output cur < 29 (expect:value in "LogFileBody" 110e9 2e9 "A big number (first)" #/Freq:\s*([\ < 30 (expect:value in "LogFileBody" 110e9 1e9 "A big number (second), hook not cal < 31 (expect:value in "LogFileBody" 110e9 1e9 "A big number (never activated)" #/F < 32 < 33 ;; Using match number < 34 (expect:value in "LogFileBody" 1.9 0.1 "Time Voltage" #/out: (\d+)\s+(\d+)/ m < 35 < 36 ;; Comparison instead of tolerance < 37 (expect:value in "LogFileBody" 1.9 > "Time voltage" #/out: (\d+)\s+(\d+)/ m < 38 < 39 (expect:ignore in "Blah2" < 99 "FALSE ERROR" #/ERROR/) < 40 (expect:ignore in "Body" < 99 "Ignore the word error in comments" #/^\/\/.*er < 41 (expect:warning in "Body" = 0 "Any warning" #/WARNING/) < 42 (expect:error in "Body" = 0 "ERROR BLAH" (list #/ERROR/ #/error/)) ;; but d < 43 < 44 ;(expect in "Init" < 1 "Junk" #/This is bogus/) <

Deleted tests/tests/ezlog_pass/lookittmp.logpro version [1d9c0ef873fc449b]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 < 6 (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) < 7 < 8 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ < 9 (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) < 10 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;; <

Deleted tests/tests/ezlog_pass/testconfig version [13eb33bb909175be]

1 [setup] < 2 < 3 [ezsteps] < 4 lookittmp ls /tmp < 5 lookithome ls /home < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test runs a single ezstep which is expected to pass using a sim < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/ezlog_warn/lookithome.logpro version [b2a6575abfd9002b]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 < 6 ;; Force a warn for this test < 7 (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) < 8 < 9 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ < 10 (expect:warning in "LogFileBody" = 0 "Any warning" #/warn/) < 11 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;; <

Deleted tests/tests/ezlog_warn/lookittmp.logpro version [5323023529b0d316]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 < 6 (expect:warning in "LogFileBody" = 0 "Any warning" #/.*/) < 7 ;; Can't have a required since it will mask the warns! Could make the warn non-o < 8 ;; required I suppose... < 9 ;; (expect:required in "LogFileBody" > 0 "Must be some files in the dir" #/.*/) < 10 < 11 (expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\ < 12 (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;; <

Deleted tests/tests/ezlog_warn/testconfig version [bb1f94c96fdda7b0]

1 [setup] < 2 < 3 [ezsteps] < 4 lookittmp ls /tmp < 5 lookithome ls $HOME < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test runs two ezsteps the first of which is expected to fail us < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/lineitem_fail/main.sh version [b8aaccbe35feea16]

1 #!/bin/bash < 2 < 3 $MT_MEGATEST -load-test-data << EOF < 4 foo,bar, 1.2, 1.9, > < 5 foo,rab, 1.0e9, 10e9, 1e9 < 6 foo,bla, 1.2, 1.9, < < 7 foo,bal, 1.2, 1.2, < , ,Check for overload < 8 foo,alb, 1.2, 1.2, <= , Amps,This is the high power circuit test < 9 foo,abl, 1.2, 1.3, 0.1 < 10 foo,bra, 1.2, pass, silly stuff < 11 faz,bar, 10, 8mA, , ,"this is a comment" < 12 EOF < 13 < 14 # a bunch of steps in 2 second increments < 15 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 16 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 17 sleep 2 < 18 $MT_MEGATEST -step step$i :state end :status 0 < 19 done < 20 < 21 # Needed to force rolling up the results and set the test to COMPLETED < 22 $MT_MEGATEST -test-status :state COMPLETED :status AUTO < 23 <

Deleted tests/tests/lineitem_fail/testconfig version [475b97c77b7e5862]

1 [setup] < 2 runscript main.sh < 3 < 4 [test_meta] < 5 author matt < 6 owner bob < 7 description This test checks that a multi-lineitem test with mix of pass and non < 8 < 9 tags first,single < 10 reviewed 09/10/2011, by Matt <

Deleted tests/tests/lineitem_pass/main.sh version [c43fd19ef0fbd9d4]

1 #!/bin/bash < 2 < 3 # category variable value expected tol/comp units comment < 4 $MT_MEGATEST -load-test-data << EOF < 5 foo, bar, 1.9, 1.8, > < 6 foo, rab, 1.0e9, 2e9, 1e9 < 7 foo, bla, 1.2, 1.9, < < 8 foo, bal, -1.1, 0, < , , Check for overload < 9 foo, alb, 1.2, 1.2, <= , Amps, This is the high power circu < 10 foo, abl, 1.2, 1.3, 0.1 < 11 foo, bra, 1.2, pass, silly stuff < 12 faz, bar, 10, 8mA, , ,"this is a comment" < 13 EOF < 14 < 15 # a bunch of steps in 2 second increments < 16 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 17 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 18 sleep 2 < 19 $MT_MEGATEST -step step$i :state end :status 0 < 20 done < 21 # Needed to force rolling up the results and set the test to COMPLETED < 22 $MT_MEGATEST -test-status :state COMPLETED :status AUTO <

Deleted tests/tests/lineitem_pass/testconfig version [475b97c77b7e5862]

1 [setup] < 2 runscript main.sh < 3 < 4 [test_meta] < 5 author matt < 6 owner bob < 7 description This test checks that a multi-lineitem test with mix of pass and non < 8 < 9 tags first,single < 10 reviewed 09/10/2011, by Matt <

Deleted tests/tests/logpro_required_fail/lookittmp.logpro version [312a36066eb58ea2]

1 ;; (c) 2006,2007,2008,2009 Matthew Welland matt@kiatoa.com < 2 ;; < 3 ;; License GPL. < 4 < 5 (expect:required in "LogFileBody" > 0 "A file name that should never exist!" #/T < 6 < 7 ;; (expect:warning in "LogFileBody" = 0 "Any warning" #/WARNING/) < 8 ;; (expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/.*/)) ;; <

Deleted tests/tests/logpro_required_fail/testconfig version [e006dc1513b22c88]

1 [setup] < 2 < 3 [ezsteps] < 4 lookittmp ls /tmp < 5 < 6 [test_meta] < 7 author matt < 8 owner bob < 9 description This test runs two ezstep, the first of which is expected to fail us < 10 < 11 tags logpro < 12 reviewed 09/10/2011, by Matt <

Deleted tests/tests/manual_example/results/results.csv version [5aae106e5bc8f38f]

1 category, variable, expected, value, tol, units, comment <

Deleted tests/tests/manual_example/runsetupxterm.sh version [de48b1c9d6f4bdc5]

1 #!/bin/bash < 2 < 3 if [[ $TARGETDISPLAY = "" || $TARGETHOST = "" || $TARGETDIR = "" || $TARGETUSER < 4 msg="You must set the TARGETDISPLAY, TARGETHOST, TARGETDIR and TARGETUSER va < 5 echo $msg < 6 megatest -test-status :state COMPLETED :status FAIL -m $msg < 7 exit 1 < 8 else < 9 megatest -step setup :state start :status n/a < 10 xterm -display $TARGETDISPLAY -e ./setupremote.sh < 11 megatest -step setup :state end :status $? < 12 fi < 13 <

Deleted tests/tests/manual_example/setupremote.sh version [4f3f90bb148f2f9f]

1 #!/bin/bash < 2 < 3 megatest -step rsyncto :state start :status n/a < 4 echo "First, lets populate your area with necessary files, you may be prompted f < 5 rsync -avz $MT_TEST_RUN_DIR/ $TARGETUSER@$TARGETHOST:$TARGETDIR < 6 megatest -step rsyncto :state end :status n/a < 7 < 8 megatest -step runtest :state start :status n/a < 9 remotecmd="cd $TARGETDIR;xterm -display $TARGETDISPLAY" < 10 echo Launching $remotecmd on $TARGETHOST as $TARGETUSER < 11 ssh $TARGETUSER@$TARGETHOST $remotecmd < 12 megatest -step runtest :state end :status $? < 13 < 14 megatest -step gatherdata :state start :status n/a < 15 rsync -avz $TARGETUSER@$TARGETHOST:$TARGETDIR/results/ $MT_TEST_RUN_DIR/results/ < 16 if [[ -e $MT_TEST_RUN_DIR/results/results.csv ]]; then < 17 megatest -load-test-data < $MT_TEST_RUN_DIR/results/results.csv < 18 fi < 19 < 20 if [[ -e $MT_TEST_RUN_DIR/results/final_results.log && $MT_TEST_RUN_DIR/final_re < 21 logpro $MT_TEST_RUN_DIR/final_results.logpro $MT_TEST_RUN_DIR/final_results. < 22 if [[ $? = 0 ]]; then < 23 finalstatus=PASS < 24 else < 25 finalstatus=FAIL < 26 fi < 27 megatest -test-status :state COMPLETED :status $finalstatus -setlog final_re < 28 fi <

Deleted tests/tests/manual_example/testconfig version [a183e2009373e700]

1 [setup] < 2 < 3 [ezsteps] < 4 setup ./runsetupxterm.sh < 5 # launch launchxterm < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test runs a single ezstep which is expected to pass < 11 using a simple logpro file. < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/neverrun/testconfig version [88f71844f474220c]

1 [setup] < 2 runscript idontexist < 3 < 4 <

Deleted tests/tests/priority_1/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_1/testconfig version [a4d944cb23cc1aa7]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 1 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_10/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_10/testconfig version [393387936a6af8fb]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 10 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_10_waiton_1/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_10_waiton_1/testconfig version [b7686d9e519fad10]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 10 < 6 waiton priority_1 < 7 < 8 [test_meta] < 9 author matt < 10 owner bob < 11 description This test checks that a multi-lineitem test with mix of pass and non < 12 < 13 tags first,single < 14 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_2/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_2/testconfig version [62b7ebcc8f320a02]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 2 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_3/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_3/testconfig version [3693d6b2eda212ed]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 3 < 6 < 7 < 8 [test_meta] < 9 author matt < 10 owner bob < 11 description This test checks that a multi-lineitem test with mix of pass and non < 12 < 13 tags first,single < 14 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_4/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_4/testconfig version [331e061c453b620a]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 4 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_5/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_5/testconfig version [ef11eb14931487ed]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 5 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_6/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_6/testconfig version [b12d3ed5db3ad067]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 6 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_7/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_7/testconfig version [3208e349900f4965]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 7 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_8/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_8/testconfig version [cce675c7476664cf]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 8 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/priority_9/main.sh version [0536bc3eb1c8bd2b]

1 #!/bin/bash < 2 < 3 # a bunch of steps in 2 second increments < 4 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17;do < 5 $MT_MEGATEST -step step$i :state start :status running -setlog results$i.html < 6 sleep 2 < 7 $MT_MEGATEST -step step$i :state end :status 0 < 8 done < 9 < 10 exit 0 <

Deleted tests/tests/priority_9/testconfig version [b41a76aacb4fad14]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 priority 9 < 6 < 7 [test_meta] < 8 author matt < 9 owner bob < 10 description This test checks that a multi-lineitem test with mix of pass and non < 11 < 12 tags first,single < 13 reviewed 09/10/2011, by Matt <

Deleted tests/tests/runfirst/main.sh version [e4be557feb9d3853]

1 #!/bin/bash < 2 < 3 # megatest -step wasting_time :state start :status n/a -m "This is a test step c < 4 # sleep 20 < 5 # megatest -step wasting_time :state end :status $? < 6 < 7 touch ../I_was_here < 8 mkdir -p $MT_RUN_AREA_HOME/tmp/$USER/$sysname/$fsname/$datapath/$MT_RUNNAME < 9 echo 1 2 3 4 5 > $MT_RUN_AREA_HOME/tmp/$USER/$sysname/$fsname/$datapath/$MT_RUNN < 10 < 11 $MT_MEGATEST -runstep wasting_time -logpro wasting_time.logpro "sleep 8;echo all < 12 < 13 $MT_MEGATEST -load-test-data << EOF < 14 foo,bar,1.2,1.9,> < 15 foo,rab,1.0e9,10e9,1e9 < 16 foo,bla,1.2,1.9,< < 17 foo,bal,1.2,1.2,<,,Check for overload < 18 foo,alb,1.2,1.2,<=,Amps,This is the high power circuit test < 19 foo,abl,1.2,1.3,0.1 < 20 foo,bra,1.2,pass,silly stuff < 21 faz,bar,10,8mA,,,"this is a comment" < 22 EOF < 23 < 24 $MT_MEGATEST -load-test-data << EOF < 25 cat, var, val, exp, comp, units, comment, status, type < 26 ameas,iout,1.2,1.9,>,Amps,Comment,,meas < 27 EOF < 28 < 29 $MT_MEGATEST -test-status :state COMPLETED :status $? -m "This is a test level c < 30 < 31 # $MT_MEGATEST -test-status :state COMPLETED :status FAIL <

Deleted tests/tests/runfirst/testconfig version [f0b52bc3c637a69f]

1 [setup] < 2 runscript main.sh < 3 < 4 [pre-launch-env-vars] < 5 # These are set before the test is launched on the originating < 6 # host. This can be used to control remote launch tools, e.g. to < 7 # to choose the target host, select the launch tool etc. < 8 SPECIAL_ENV_VAR override with everything after the first space. < 9 < 10 [items] < 11 SEASON summer winter fall spring < 12 < 13 [itemstable] < 14 BLOCK a b < 15 TOCK 1 2 < 16 < 17 [test_meta] < 18 author matt < 19 owner bob < 20 description This test must < 21 be run before the other tests < 22 < 23 tags first,single < 24 reviewed 1/1/1965 <

Deleted tests/tests/runfirst/wasting_time.logpro version [1c532ab9c977dded]

1 ;; put stuff here < 2 < 3 ;; NOTE: This is not legit logpro code!!! < 4 < 5 ;; Test for 0=PASS, 1=WARN, >2 = FAIL < 6 < 7 ;; (define season (get-environment-variable "SEASON")) < 8 ;; < 9 ;; (exit < 10 ;; (case (string->symbol season) < 11 ;; ((summer) 0) < 12 ;; ((winter) 1) < 13 ;; ((fall) 2) < 14 ;; (else 0))) < 15 <

Deleted tests/tests/singletest/main.sh version [e63ffb76fadbc087]

1 #!/bin/bash < 2 < 3 # megatest -step wasting_time :state start :status n/a -m "This is a test step c < 4 # sleep 20 < 5 # megatest -step wasting_time :state end :status $? < 6 < 7 $MT_MEGATEST -runstep wasting_time -logpro wasting_time.logpro "sleep 5;echo all < 8 < 9 $MT_MEGATEST -test-status :state COMPLETED :status $? -m "This is a test level c <

Deleted tests/tests/singletest/testconfig version [e1b002dc2e126a2c]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 diskspace 1M < 6 memory 1G < 7 < 8 [pre-launch-env-vars] < 9 # These are set before the test is launched on the originating < 10 # host. This can be used to control remote launch tools, e.g. to < 11 # to choose the target host, select the launch tool etc. < 12 SPECIAL_ENV_VAR override with everything after the first space. < 13 <

Deleted tests/tests/singletest/wasting_time.logpro version [1c532ab9c977dded]

1 ;; put stuff here < 2 < 3 ;; NOTE: This is not legit logpro code!!! < 4 < 5 ;; Test for 0=PASS, 1=WARN, >2 = FAIL < 6 < 7 ;; (define season (get-environment-variable "SEASON")) < 8 ;; < 9 ;; (exit < 10 ;; (case (string->symbol season) < 11 ;; ((summer) 0) < 12 ;; ((winter) 1) < 13 ;; ((fall) 2) < 14 ;; (else 0))) < 15 <

Deleted tests/tests/singletest2/main.sh version [54d3e4ef494bd371]

1 #!/bin/bash < 2 < 3 # megatest -step wasting_time :state start :status n/a -m "This is a test step c < 4 # sleep 20 < 5 # megatest -step wasting_time :state end :status $? < 6 < 7 $MT_MEGATEST -runstep wasting_time -logpro wasting_time.logpro "sleep 5;echo all < 8 < 9 $MT_MEGATEST -test-status :state COMPLETED :status $? -m "This is a test level c <

Deleted tests/tests/singletest2/testconfig version [2527ed76274d3207]

1 [setup] < 2 runscript main.sh < 3 < 4 [requirements] < 5 diskspace 1M < 6 memory 1G < 7 waiton singletest < 8 < 9 [pre-launch-env-vars] < 10 # These are set before the test is launched on the originating < 11 # host. This can be used to control remote launch tools, e.g. to < 12 # to choose the target host, select the launch tool etc. < 13 SPECIAL_ENV_VAR override with everything after the first space. < 14 <

Deleted tests/tests/singletest2/wasting_time.logpro version [1c532ab9c977dded]

1 ;; put stuff here < 2 < 3 ;; NOTE: This is not legit logpro code!!! < 4 < 5 ;; Test for 0=PASS, 1=WARN, >2 = FAIL < 6 < 7 ;; (define season (get-environment-variable "SEASON")) < 8 ;; < 9 ;; (exit < 10 ;; (case (string->symbol season) < 11 ;; ((summer) 0) < 12 ;; ((winter) 1) < 13 ;; ((fall) 2) < 14 ;; (else 0))) < 15 <

Deleted tests/tests/sqlitespeed/runscript.rb version [4107e1724c9945f4]

1 #! /usr/bin/env ruby < 2 < 3 require "#{ENV['MT_RUN_AREA_HOME']}/supportfiles/ruby/librunscript.rb" < 4 < 5 # run_record(stepname, cmd) - will record in db if exit code of script was zero < 6 run_and_record('create db',"sqlite3 testing.db << EOF\ncreate table if not exist < 7 < 8 if (! File.exists?("../../runfirst/I_was_here")) < 9 puts "ERROR: This test was started before the prerequisites ran!" < 10 system "megatest -test-status :state INCOMPLETE :status FAIL" < 11 exit 1 < 12 end < 13 < 14 # file_size_checker(stepname, filename, minsize, maxsize) - negative means ignor < 15 # file_size_checker('create db','testing.db',100,-1) < 16 < 17 num_records=rand(5) # 0000 < 18 record_step("add #{num_records}","start","n/a") < 19 status=false < 20 (0..num_records).each do |i| < 21 randstring="a;lskdfja;sdfj;alsdfj;aslfdj;alsfja;lsfdj;alsfja;lsjfd;lasfjl;asdf < 22 # status=system "sqlite3 testing.db \"insert into blah (name) values ('#{rands < 23 system "megatest -step testing :state wrote_junk :status #{num_records}" < 24 sleep(5) < 25 puts "i=#{i}" < 26 end < 27 if status==0 < 28 status='pass' < 29 else < 30 status='fail' < 31 end < 32 < 33 record_step("add #{num_records}","end",status) < 34 < 35 < 36 < 37 <

Deleted tests/tests/sqlitespeed/testconfig version [a64305aaab1b8f88]

1 [setup] < 2 runscript runscript.rb < 3 tags non important,dumb junk < 4 < 5 [requirements] < 6 waiton runfirst < 7 < 8 [items] < 9 MANYITEMS [system (env > envfile.txt;echo aa ab ac ad ae af ag ah ai)] < 10 # BORKED < 11 <

Deleted tests/tests/test_mt_vars/altvarnotset.sh version [e1b639c562bb397b]

1 #!/usr/bin/env bash < 2 < 3 ! grep ALT_VAR megatest.sh <

Deleted tests/tests/test_mt_vars/bogousnotset.sh version [25167b86d9235427]

1 #!/usr/bin/env bash < 2 < 3 ! grep BOGOUS megatest.sh <

Deleted tests/tests/test_mt_vars/currentisblah.sh version [38498b5b33c53947]

1 #!/usr/bin/env bash < 2 < 3 grep CURRENT megatest.sh | grep /tmp/nada <

Deleted tests/tests/test_mt_vars/testconfig version [601765abe8c766ef]

1 [setup] < 2 < 3 [ezsteps] < 4 lookittmp ls /tmp < 5 lookithome ls /home < 6 # $CURRENT should be /tmp/nada < 7 currentisblah currentisblah.sh < 8 < 9 # $BOGOUS should NOT be set < 10 bogousnotset bogousnotset.sh < 11 < 12 # ALT_VAR should NOT be set < 13 altvarnotset altvarnotset.sh < 14 < 15 [requirements] < 16 waiton runfirst < 17 priority 0 < 18 < 19 [items] < 20 NUMNUM [system cat $MT_RUN_AREA_HOME/tmp/$USER/$sysname/$fsname/$datapath/$MT_RU < 21 < 22 [test_meta] < 23 author matt < 24 owner bob < 25 description This test runs a single ezstep which is expected to pass, no logpro < 26 < 27 tags first,single < 28 reviewed 09/10/2011, by Matt <