Skip to content

Commit

Permalink
add make check-examples-ruby_modular target
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Aug 26, 2011
1 parent 0a8fcea commit 759fabb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/undocumented/ruby_modular/check.sh
Expand Up @@ -4,26 +4,26 @@ rm -f error.log

if test -z "$1"
then
for e in *.rb;
for e in $(ls -1 *.rb | grep -v ruby)
do
echo -n $e

if ruby -I../../../src/interfaces/ruby_modular $e >/dev/null 2>&1
if ruby $e >/dev/null 2>&1
then
echo " OK"
else
echo " ERROR"
echo "================================================================================" >>error.log
echo " error in $e ">>error.log
echo "================================================================================" >>error.log
ruby -I../../../src/interfaces/ruby_modular "$e" >>error.log 2>&1
ruby "$e" >>error.log 2>&1
echo "================================================================================" >>error.log
echo >>error.log
echo >>error.log
fi
done
else
ruby -I../../../src/interfaces/ruby_modular $1
ruby $1
fi

if test -f error.log
Expand Down
6 changes: 6 additions & 0 deletions src/Makefile.template
Expand Up @@ -406,6 +406,12 @@ check-examples-lua_modular:
cd $(CONFIGPATH)/../examples/undocumented/lua_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) \
LUA_CPATH="$(DESTDIR)$(LUA_EXTENSIONS_INSTALL_DIR)/?.so" ./check.sh )
run-testsuite-ruby_modular:
#TODO
check-examples-ruby_modular:
cd $(CONFIGPATH)/../examples/undocumented/ruby_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) \
RUBYLIB="$(DESTDIR)$(RUBY_EXTENSIONS_INSTALL_DIR)" ./check.sh )

lib/versionstring.h: $(SVNEntries)
sh $(CONFIGPATH)/.version.sh > $@
Expand Down

0 comments on commit 759fabb

Please sign in to comment.