Overview
Comment: | Minor improvements to the regression tests (fullrun) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.55 |
Files: | files | file ages | folders |
SHA1: |
a563ffe22b57ed26b562a5fc666ffc9e |
User & Date: | mrwellan on 2013-11-15 09:37:25 |
Other Links: | branch diff | manifest | tags |
Context
2013-11-15
| ||
09:39 | Minor improvements to the regression tests (fullrun) check-in: 19f753e7c6 user: mrwellan tags: v1.55, v1.5514 | |
09:37 | Minor improvements to the regression tests (fullrun) check-in: a563ffe22b user: mrwellan tags: v1.55 | |
05:12 | Fixed lazy run problem, added runame and testname env vars to testconfig env check-in: 0839aae8c8 user: matt tags: v1.55 | |
Changes
Modified tests/fullrun/megatest.config from [9ccb67a28b] to [678a84a2bf].
︙ | ︙ | |||
41 42 43 44 45 46 47 | # deadtime 600 # It is possible (but not recommended) to override the rsync command used # to populate the test directories. For test development the following # example can be useful # | | | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | # deadtime 600 # It is possible (but not recommended) to override the rsync command used # to populate the test directories. For test development the following # example can be useful # testcopycmd cp --remove-destination -rsv TEST_SRC_PATH/. TEST_TARG_PATH/. >> TEST_TARG_PATH/mt_launch.log 2>> TEST_TARG_PATH/mt_launch.log # or for hard links # testcopycmd cp --remove-destination -rlv TEST_SRC_PATH/. TEST_TARG_PATH/. # FULL or 2, NORMAL or 1, OFF or 0 synchronous OFF |
︙ | ︙ |
Modified tests/fullrun/tests/all_toplevel/testconfig from [a36e0b7a97] to [f7c88a5fa7].
1 2 3 4 | [ezsteps] calcresults megatest -list-runs $MT_RUNNAME -target $MT_TARGET [requirements] | > | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | [ezsteps] calcresults megatest -list-runs $MT_RUNNAME -target $MT_TARGET [requirements] waiton all_toplevel exit_0 exit_1 ez_exit2_fail ez_fail ez_pass ezlog_fail \ ezlog_fail_then_pass ezlog_pass ezlog_warn lineitem_fail lineitem_pass logpro_required_fail \ manual_example neverrun priority_1 priority_10 priority_10_waiton_1 priority_2 \ priority_3 priority_4 priority_5 priority_6 priority_7 priority_8 \ priority_9 runfirst singletest singletest2 sqlitespeed test_mt_vars \ no_items ez_fail_quick \ test1 test2 special blocktestxz testxz # This is a "toplevel" test, it does not require waitons to be non-FAIL to run mode toplevel |
Modified tests/fullrun/tests/sqlitespeed/runscript.rb from [45705f52bd] to [630bce8730].
1 2 | #! /usr/bin/env ruby | | | 1 2 3 4 5 6 7 8 9 10 | #! /usr/bin/env ruby require "#{ENV['MT_RUN_AREA_HOME']}/../resources/ruby/librunscript.rb" # run_record(stepname, cmd) - will record in db if exit code of script was zero or not run_and_record('create db',"sqlite3 testing.db << EOF\ncreate table if not exists blah(id INTEGER PRIMARY KEY,name TEXT);\n.q\nEOF","") if (! File.exists?("../../runfirst/I_was_here")) puts "ERROR: This test was started before the prerequisites ran!" system "megatest -test-status :state INCOMPLETE :status FAIL" |
︙ | ︙ |
Added tests/resources/ruby/librunscript.rb version [a529a5a104].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # This is the library of stuff for megatest def run_and_record(stepname, cmd, checks) system "megatest -step #{stepname} :state start :status n/a" system cmd exitcode=$? if exitcode==0 exitcode='pass' else exitcode='fail' end system "megatest -step #{stepname} :state end :status #{exitcode}" end def record_step(stepname,state,status) system "megatest -step #{stepname} :state #{state} :status #{status}" end def test_status(state,status) system "megatest -test-status :state #{state} :status #{status}" end # WARNING: This example is deprecated. Don't use the -test-status command # unless you know for sure what you are doing. def file_size_checker(stepname,filename,minsize,maxsize) fsize=File.size(filename) if fsize > maxsize or fsize < minsize system "megatest -test-status :state COMPLETED :status fail" else system "megatest -test-status :state COMPLETED :status pass" end end def wait_for_step(testname,stepname) end |