From 39bbdd5f2fa9f429b94bab759fa2da4524b52708 Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Fri, 6 Jun 2014 21:46:58 +0900 Subject: Add bintest for `mrbc`. --- bintest/mrbc.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bintest/mrbc.rb (limited to 'bintest') diff --git a/bintest/mrbc.rb b/bintest/mrbc.rb new file mode 100644 index 000000000..b016378a1 --- /dev/null +++ b/bintest/mrbc.rb @@ -0,0 +1,12 @@ +require 'tempfile' + +assert('Compiling multiple files without new line in last line. #2361') do + a, b, out = Tempfile.new('a.rb'), Tempfile.new('b.rb'), Tempfile.new('out.mrb') + a.write('module A; end') + a.flush + b.write('module B; end') + b.flush + result = `bin/mrbc -c -o #{out.path} #{a.path} #{b.path} 2>&1` + assert_equal "bin/mrbc:#{a.path}:Syntax OK", result.chomp + assert_equal 0, $?.exitstatus +end -- cgit v1.2.3