PageRenderTime 14ms CodeModel.GetById 2ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/Makefile.in

#
Autoconf | 72 lines | 48 code | 13 blank | 11 comment | 1 complexity | 57291a7deb75a2737c8324d817486673 MD5 | raw file
 1#######################################################################
 2# Makefile for ruby test-suite
 3#######################################################################
 4
 5LANGUAGE     = ruby
 6RUBY         = @RUBY@
 7SCRIPTSUFFIX = _runme.rb
 8srcdir       = @srcdir@
 9top_srcdir   = @top_srcdir@
10top_builddir = @top_builddir@
11
12CPP_TEST_CASES = \
13	kwargs_feature \
14	li_cdata \
15	li_cstring \
16	li_factory \
17	li_std_functors \
18	li_std_multimap \
19	li_std_pair_lang_object \
20	li_std_queue \
21	li_std_set \
22	li_std_stack \
23	primitive_types \
24	ruby_keywords \
25	ruby_naming \
26	ruby_track_objects \
27	ruby_track_objects_directors \
28	std_containers
29#	ruby_li_std_speed
30#	stl_new
31
32C_TEST_CASES += \
33	li_cdata \
34	li_cstring
35
36include $(srcdir)/../common.mk
37
38# Overridden variables here
39SWIGOPT += -w801 -noautorename -features autodoc=4
40
41# Custom tests - tests with additional commandline options
42ruby_naming.cpptest: SWIGOPT += -autorename
43
44# Rules for the different types of tests
45%.cpptest: 
46	$(setup)
47	+$(swig_and_compile_cpp)
48	$(run_testcase)
49
50%.ctest:
51	$(setup)
52	+$(swig_and_compile_c)
53	$(run_testcase)
54
55%.multicpptest: 
56	$(setup)
57	+$(swig_and_compile_multi_cpp)
58	$(run_testcase)
59
60# Runs the testcase. A testcase is only run if
61# a file is found which has _runme.rb appended after the testcase name.
62run_testcase = \
63	if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
64	  env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(RUBY) $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
65	fi
66
67# Clean
68%.clean:
69	
70
71clean:
72	$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile ruby_clean