Megatest

Check-in [a24a1b2335]
Login
Overview
Comment:Updated path due to move of tests
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | extend-test-get-path
Files: files | file ages | folders
SHA1: a24a1b2335a73377f4301f9a32301c61b56530df
User & Date: mrwellan on 2012-04-23 09:27:34
Other Links: branch diff | manifest | tags
Context
2012-04-23
09:58
Made genexample a bit safer Closed-Leaf check-in: f067e02af4 user: mrwellan tags: extend-test-get-path
09:27
Updated path due to move of tests check-in: a24a1b2335 user: mrwellan tags: extend-test-get-path
02:47
Minor tweak check-in: 091e1dd192 user: matt tags: extend-test-get-path
Changes

Modified tests/fullrun/tests/sqlitespeed/runscript.rb from [4107e1724c] to [a573e1a656].

1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env ruby

require "#{ENV['MT_RUN_AREA_HOME']}/supportfiles/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"


|







1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env ruby

require "#{ENV['MT_RUN_AREA_HOME']}/../supportfiles/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"