Sha256: 7b5c35434f1f637a50884307cb9e81662f555bdcc7e42ce64617a3d499ba1324

Contents?: true

Size: 677 Bytes

Versions: 3

Compression:

Stored size: 677 Bytes

Contents

#!/usr/bin/env ratch

# simple load test

main :syntax do
  scripts = "lib/**/*.rb"
  libpath = [ 'lib/methods', 'lib/core', 'lib/more' ].join(':')

  checklist = []
  cnt = 0
  scripts = multiglob(*scripts) #- multiglob_r(ignore)
  scripts.each do |s|
    next unless File.file?(s)
    #if not system "ruby -c -Ibin:lib:test #{s} &> /dev/null" then
    if r = system "ruby -I#{libpath} #{s} > /dev/null"
      puts "#{s} [PASS]" #if verbose?
    else
      puts "Load Issue: #{s}"
      checklist << :load
      cnt += 1
    end
  end

  if cnt == 0
    puts "Load dependencies check out."
  else
    puts "#{cnt} Load Failures:\n  "
    puts checklist.join("\n  ")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-2.1.1 task/loadtest
facets-2.1.0 task/loadtest
facets-2.1.2 task/test/loadtest