Sha256: 113b300c89ede41d8d188dab9dd9becfc4445303e8d0f2e3b412dadcd3864732

Contents?: true

Size: 1.42 KB

Versions: 137

Compression:

Stored size: 1.42 KB

Contents

$LOAD_PATH.unshift File.expand_path('../lib', File.dirname(__FILE__))
require 'test/unit'
require 'autoproj'
require 'set'

class TC_Manifest < Test::Unit::TestCase
    DATA_DIR = File.expand_path('data', File.dirname(__FILE__))
    include Autoproj

    def test_each_sources
        Dir.chdir(File.join(DATA_DIR, 'test_manifest', 'autoproj')) do
            manifest = Manifest.load(File.join(DATA_DIR, 'test_manifest', 'autoproj', 'manifest'))
            sources  = manifest.each_source.to_set

            test_data      = "#{DATA_DIR}/test_manifest"
            test_data_name = test_data.gsub '/', '_'

            expected = [
                 ["#{test_data_name}_autoproj_local", "local",
                    "#{test_data}/autoproj/local",
                    "#{test_data}/autoproj/local",
                    {}],
                 ["#{test_data_name}_remote1_git", "git",
                    "#{test_data}/remote1.git",
                    "#{test_data}/autoproj/remotes/_home_doudou_src_autoproj_test_data_test_manifest_remote1_git",
                    {}],
                 ["#{test_data_name}_remote2_git", "git",
                    "#{test_data}/remote2.git",
                    "#{test_data}/autoproj/remotes/_home_doudou_src_autoproj_test_data_test_manifest_remote2_git",
                    {:branch=>"next"}]
            ]

            assert_equal(expected.to_set, sources)
        end
    end

    def test_update_sources
    end
end

Version data entries

137 entries across 137 versions & 1 rubygems

Version Path
autoproj-1.6.0 test/test_manifest.rb
autoproj-1.6.0.rc6 test/test_manifest.rb
autoproj-1.6.0.rc5 test/test_manifest.rb
autoproj-1.6.0.rc4 test/test_manifest.rb
autoproj-1.6.0.rc3 test/test_manifest.rb
autoproj-1.6.0.rc2 test/test_manifest.rb
autoproj-1.6.0.rc1 test/test_manifest.rb
autoproj-1.5.8 test/test_manifest.rb
autoproj-1.5.7 test/test_manifest.rb
autoproj-1.5.6 test/test_manifest.rb
autoproj-1.5.5 test/test_manifest.rb
autoproj-1.5.4 test/test_manifest.rb
autoproj-1.5.3 test/test_manifest.rb
autoproj-1.5.2 test/test_manifest.rb
autoproj-1.5.1 test/test_manifest.rb
autoproj-1.5.0 test/test_manifest.rb
autoproj-1.4.4 test/test_manifest.rb
autoproj-1.4.3 test/test_manifest.rb
autoproj-1.4.2 test/test_manifest.rb
autoproj-1.4.1 test/test_manifest.rb