Class: GSL4r::Vector::Harness

Inherits:
Object
  • Object
show all
Includes:
Harness
Defined in:
lib/gsl4r/vector.rb

Constant Summary

Constants included from Harness

Harness::TEST_DIR

Instance Attribute Summary

Attributes included from Harness

#c_binary, #c_includes, #c_libs, #c_src_name, #c_tests, #r_footer, #r_header

Instance Method Summary collapse

Methods included from Harness

#compile_c_tests, #run_c_tests, #write_c_tests

Constructor Details

#initializeHarness

Returns a new instance of Harness.



336
337
338
339
340
341
342
343
344
345
346
# File 'lib/gsl4r/vector.rb', line 336

def initialize
	@c_compiler = "gcc"
	@c_src_name = "gsl_vector_tests_gen.c"
	@c_binary = "gsl_vector_tests_gen"
	@c_includes = ["gsl/gsl_vector.h"]
	@c_flags = [`gsl-config --libs`.chomp,`gsl-config --cflags`.chomp]
	@c_tests = ::GSL4r::Vector::Methods.methods.grep(/^c_test/)
	@r_header = %Q{$: << File.join('..','lib')\\nrequire 'test/unit'\\nrequire 'test/unit/autorunner'\\nrequire 'gsl4r/vector'\\ninclude GSL4r::Vector\\nclass VectorTests < Test::Unit::TestCase\\n  EPSILON = 5.0e-15}

	@r_footer = %Q{end}
end