openbsd-ports/devel/ragel/patches/patch-test_runtests_in
jeremy 06db121ff3 Import ragel 6.7.
Ragel compiles executable finite state machines from regular languages.
It targets C, C++, and Ruby. Ragel state machines can not only recognize
byte sequences as regular expression machines do, but can also execute
code at arbitrary points in the recognition of a regular language. Code
embedding is done using inline operators that do not disrupt the regular
language syntax.

OK robert@
2011-11-15 16:35:15 +00:00

23 lines
832 B
Plaintext

$OpenBSD: patch-test_runtests_in,v 1.1.1.1 2011/11/15 16:35:15 jeremy Exp $
Fix bug not respecting ruby version you pass to configure.
Use gdiff since our diff doesn't implement --strip-trailing-cr.
--- test/runtests.in.orig Mon Nov 14 16:38:12 2011
+++ test/runtests.in Mon Nov 14 16:41:51 2011
@@ -118,11 +118,11 @@ function run_test()
exec_cmd=./$binary
[ $lang = java ] && exec_cmd="java ${root}"
- [ $lang = ruby ] && exec_cmd="ruby ${code_src}"
+ [ $lang = ruby ] && exec_cmd="${ruby_engine} ${code_src}"
[ $lang = csharp ] && [ "$csharp_compiler" = gmcs ] && exec_cmd="mono ${exec_cmd}"
$exec_cmd 2>&1 > $output;
- if diff --strip-trailing-cr $expected_out $output > /dev/null; then
+ if gdiff --strip-trailing-cr $expected_out $output > /dev/null; then
echo "passed";
else
echo "FAILED";