Sha256: a37e82c37cb783cd925e050c9368586fe3494a0d258e689caa74ae1f3bc12abe

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

#!/usr/bin/env ruby
#!/usr/local/bin/ruby -I.. -I.

require 'bundler/setup'
$LOAD_PATH.push '.'

require 'test/unit'
#require 'test/unit/testsuite'
DEBUG_LVL = 0
CONFIG_FILE='config.yaml'
require 'QooxView'
require 'st_dummy'

Permission.add('default', 'View,View.Login')
Permission.add('admin', '.*', '.*')
Permission.add('internet', 'Internet,PersonShow', 'default')
Permission.add('student', '', 'internet')
Permission.add('professor', '', 'student')
Permission.add('cybermanager', '', '')
Permission.add('secretary', 'PersonModify,FlagAddInternet', 'professor,cybermanager')

QooxView.init('entities', 'views')

tests = Dir.glob('qv_*.rb')
#tests = %w( permission )
#tests = %w( entity )
#tests = %w( configbase )

tests.each { |t|
  begin
    require "qv_#{t}"
  rescue LoadError => e
    require t
  end
}

$profiling = get_config(nil, :profiling)
if $profiling
  require 'rubygems'
  require 'perftools'
  PerfTools::CpuProfiler.start("/tmp/#{$profiling}") do
    Test::Unit::UI::Console::TestRunner.run(TC_Helpers)
  end
  puts "Now run the following:
    pprof.rb --pdf /tmp/#{$profiling} > /tmp/#{$profiling}.pdf
    open /tmp/#{$profiling}.pdf
    CPUPROFILE_FREQUENCY=500
  "
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qooxview-1.9.10 test/test.rb
qooxview-1.9.9 test/test.rb