Sha256: 5fca5246754cc00a061fa3ffb7fade55d3465a24e5ece704150d39461cd041fa
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Tue Jan 2 13:14:37 JST 2007 # #require 'profile' require 'flowtestbase' require 'openwfe/expressions/raw_prog' include OpenWFE class FlowTest26c < Test::Unit::TestCase include FlowTestBase #def setup #end #def teardown #end # # Test 0 # N = 10000 class TestDefinition0 < ProcessDefinition sequence do N.times do count end end end #def xxxx_load_0 def test_load_0 #require 'openwfe/expool/journal' #@engine.application_context[:keep_journals] = true #@engine.init_service("journal", Journal) # # very heavy #require 'openwfe/expool/errorjournal' #@engine.init_service("journal", ErrorJournal) # # light, almost inexistent (when there are no errors) $count = 0 @engine.register_participant("count") do |workitem| $count += 1 #print "." end fei = @engine.launch(LaunchItem.new(TestDefinition0)) puts "launched #{fei}" @engine.wait_for fei assert_equal $count, N end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.12 | test/ft_26c_load.rb |