class TC_GenerationTypegen

Public Instance Methods

test_check_uptodate() click to toggle source
# File test/gen/test_typegen.rb, line 8
def test_check_uptodate
    build_typegen "simple", ["modules/typekit_simple/simple.h"], []

    in_wc("typekit_output") do
        # Touch the orogen file
        FileUtils.touch File.join("..", "types", "simple.h")

        # First check that the user is forbidden to go on with building
        Dir.chdir("build") do
            assert !call_make
        end
        # Now, verify that we can run make regen and build fine
        Dir.chdir("build") do
            assert call_make('regen')
            assert call_make
        end
    end
end
test_generate_and_install() click to toggle source
# File test/gen/test_typegen.rb, line 4
def test_generate_and_install
    build_typegen "simple", "modules/typekit_simple/simple.h", []
end