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.8.2.rc3 test/test_manifest.rb
autoproj-1.8.2.rc2 test/test_manifest.rb
autoproj-1.8.2.rc1 test/test_manifest.rb
autoproj-1.8.2.b25 test/test_manifest.rb
autoproj-1.8.2.b24 test/test_manifest.rb
autoproj-1.8.2.b23 test/test_manifest.rb
autoproj-1.8.2.b22 test/test_manifest.rb
autoproj-1.8.2.b21 test/test_manifest.rb
autoproj-1.8.2.b20 test/test_manifest.rb
autoproj-1.8.2.b19 test/test_manifest.rb
autoproj-1.8.2.b18 test/test_manifest.rb
autoproj-1.8.2.b17 test/test_manifest.rb
autoproj-1.8.2.b16 test/test_manifest.rb
autoproj-1.8.2.b15 test/test_manifest.rb
autoproj-1.8.2.b14 test/test_manifest.rb
autoproj-1.8.2.b13 test/test_manifest.rb
autoproj-1.8.2.b12 test/test_manifest.rb
autoproj-1.8.2.b11 test/test_manifest.rb
autoproj-1.8.2.b10 test/test_manifest.rb
autoproj-1.8.2.b9 test/test_manifest.rb