Created
October 3, 2009 20:02
-
-
Save muddana/200834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#script for testing tiny | |
$PATH = "./tests/test-progs/" | |
format = ARGV[0] ||"pr2.{[a-z][0-9][0-9]}" | |
puts Dir.glob($PATH + format).sort | |
#ugly hack check wat the problem with gets | |
ARGV.clear | |
tiny_binary = "./tc" | |
Dir.glob($PATH + format).sort.each do |test_file| | |
puts "%%%%%%%%Entering #{test_file}:%%%%%%%%" | |
system("cat #{test_file}") | |
puts "%%%%%%%%Press a key to execute:%%%%%%%%" | |
gets | |
system("#{tiny_binary} #{test_file}") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment