1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# -*- Mode: Makefile -*-
#
# Makefile.am - automake file for Ruby tests for Redland
#
# $Id: Makefile.am,v 1.10 2004/12/31 00:19:57 cmdjb Exp $
#
# Copyright (C) 2004 David Beckett - http://purl.org/net/dajobe/
# Institute for Learning and Research Technology - http://www.ilrt.bris.ac.uk/
# University of Bristol - http://www.bristol.ac.uk/
#
# This package is Free Software or Open Source available under the
# following licenses (these are alternatives):
# 1. GNU Lesser General Public License (LGPL)
# 2. GNU General Public License (GPL)
# 3. Mozilla Public License (MPL)
#
# See LICENSE.html or LICENSE.txt at the top of this package for the
# full license terms.
#
RUBY_TEST_FILES=test_model.rb test_node.rb test_parser.rb test_rdf.rb \
test_rdfs_resource.rb test_resource.rb test_serializer.rb \
test_statement.rb test_store.rb test_uri.rb
EXTRA_DIST=$(RUBY_TEST_FILES) README ical.rdf triples.rdf
CLEANFILES=*.db out_namespace.rdf
check-local: check-ruby
check-ruby: ../ruby-redland-stamp $(RUBY_TEST_FILES)
@result=0; fails=; \
$(ECHO) "Testing Ruby"; \
for test in $(RUBY_TEST_FILES); do \
$(ECHO) $(ECHO_N) "Checking $$test $(ECHO_C)"; \
arg="-I.. -I../lib"; \
$(RUBY) $$arg $(srcdir)/$$test; \
status=$$?; \
if test $$status != 0 -a $$status != 2 ; then \
$(ECHO) FAILED returned status $$status; result=1; \
echo $(RUBY) $$arg $(srcdir)/$$test; \
fails="$$fails $$test"; \
else \
$(ECHO) "ok"; \
fi; \
done; \
if test $$result = 1 ; then \
echo "FAILED tests:$$fails"; \
echo "NOTE: Ignoring failures - likely caused by missing test/unit.rb (ships with ruby 1.8.0+)"; \
result=0; \
fi; \
exit $$result
../ruby-redland-stamp:
cd .. && $(MAKE) ruby-redland-stamp
|