class TC_GenerationErrorCases
Public Instance Methods
test_generation_requires_name_and_orogen()
click to toggle source
# File test/gen/test_generation.rb, line 13 def test_generation_requires_name_and_orogen project = Project.new # Should raise because there is no name assert_raises(ArgumentError) { project.generate } project.name "test" # Should raise because there is no orogen file assert_raises(ArgumentError) { project.generate } project.instance_variable_set(:@deffile, "bla.orogen") create_wc("tasks/generation_validation") in_wc do project.generate end end
test_simple(*transports)
click to toggle source
Test on a very simple project. This usually catches some buildsystem problems that are hidden by the complexity of full-fledged components
# File test/gen/test_generation.rb, line 6 def test_simple(*transports) build_test_project('modules/simple', transports) install end
test_simple_corba()
click to toggle source
# File test/gen/test_generation.rb, line 10 def test_simple_corba; test_simple('corba') end
test_simple_typelib()
click to toggle source
# File test/gen/test_generation.rb, line 11 def test_simple_typelib; test_simple('typelib') end