Check-in [423f168820]
Not logged in
Overview
SHA1 Hash:423f16882099abe17165b1533f8d5eb6cf9668f3
Date: 2012-04-22 00:03:24
User: matt
Comment:Arduously moved tests to the tests dir
Timelines: family | ancestors | descendants | both | extend-test-get-path
Diffs: root of this branch
Downloads: Tarball | ZIP archive
Other Links: files | file ages | manifest
Tags And Properties
Changes

Deleted tests/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/manual_example/results/results.csv version [5aae106e5bc8f38f]

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

Deleted tests/fullrun/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/fullrun/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/fullrun/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/fullrun/neverrun/testconfig version [88f71844f474220c]

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

Deleted tests/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/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/fullrun/test_mt_vars/altvarnotset.sh version [e1b639c562bb397b]

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

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

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

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

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

Deleted tests/fullrun/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 <

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 [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

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