build-tool 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.txt +28 -1
  3. data/Manifest.txt +91 -52
  4. data/README.txt +63 -0
  5. data/Rakefile +20 -23
  6. data/bin/build-tool +53 -0
  7. data/lib/build-tool.rb +7 -0
  8. data/lib/build-tool/GUI.rb +360 -0
  9. data/lib/build-tool/application.rb +84 -0
  10. data/lib/build-tool/build-system/autoconf.rb +60 -0
  11. data/lib/build-tool/build-system/base.rb +142 -0
  12. data/lib/build-tool/build-system/cmake.rb +119 -0
  13. data/lib/build-tool/build-system/custom.rb +115 -0
  14. data/lib/build-tool/build-system/qt.rb +113 -0
  15. data/lib/build-tool/cfg/lexer.rb +558 -0
  16. data/lib/build-tool/cfg/lexer.rex +248 -0
  17. data/lib/build-tool/cfg/lexer_base.rb +82 -0
  18. data/lib/build-tool/cfg/node.rb +94 -0
  19. data/lib/build-tool/cfg/parser.rb +871 -0
  20. data/lib/build-tool/cfg/parser.y +279 -0
  21. data/lib/build-tool/cfg/visitor.rb +471 -0
  22. data/lib/build-tool/commands.rb +639 -0
  23. data/lib/build-tool/commands/build.rb +120 -0
  24. data/lib/build-tool/commands/configure.rb +73 -0
  25. data/lib/build-tool/commands/ctags.rb +46 -0
  26. data/lib/build-tool/commands/environments.rb +29 -0
  27. data/lib/build-tool/commands/environments/list.rb +37 -0
  28. data/lib/build-tool/commands/environments/set.rb +33 -0
  29. data/lib/build-tool/commands/fetch.rb +50 -0
  30. data/lib/build-tool/commands/files.rb +73 -0
  31. data/lib/build-tool/commands/help.rb +22 -0
  32. data/lib/build-tool/commands/info.rb +48 -0
  33. data/lib/build-tool/commands/install.rb +56 -0
  34. data/lib/build-tool/commands/modules.rb +29 -0
  35. data/lib/build-tool/commands/modules/info.rb +75 -0
  36. data/lib/build-tool/commands/modules/list.rb +49 -0
  37. data/lib/build-tool/commands/modules/shell.rb +40 -0
  38. data/lib/build-tool/commands/rebase.rb +46 -0
  39. data/lib/build-tool/commands/recipes.rb +32 -0
  40. data/lib/build-tool/commands/recipes/info.rb +46 -0
  41. data/lib/build-tool/commands/recipes/install.rb +184 -0
  42. data/lib/build-tool/commands/recipes/list.rb +33 -0
  43. data/lib/build-tool/configuration.rb +115 -0
  44. data/lib/build-tool/environment.rb +119 -0
  45. data/lib/build-tool/errors.rb +9 -0
  46. data/lib/build-tool/module.rb +366 -0
  47. data/lib/build-tool/pluginbase.rb +43 -0
  48. data/lib/build-tool/recipe.rb +180 -0
  49. data/lib/build-tool/repository.rb +59 -0
  50. data/lib/build-tool/server.rb +43 -0
  51. data/lib/build-tool/singleton.rb +50 -0
  52. data/lib/build-tool/sshkey.rb +22 -0
  53. data/lib/build-tool/vcs/base.rb +105 -0
  54. data/lib/build-tool/vcs/git-svn.rb +154 -0
  55. data/lib/build-tool/vcs/git.rb +187 -0
  56. data/lib/build-tool/vcs/svn.rb +136 -0
  57. data/lib/mj/logging.rb +31 -0
  58. data/lib/mj/tools/ssh.rb +64 -0
  59. data/lib/{kde-build → mj/tools}/subprocess.rb +21 -16
  60. data/lib/mj/visitor.rb +21 -0
  61. data/recipes/kde/files/finish_installation.sh +16 -0
  62. data/recipes/kde/files/kde4.desktop +22 -0
  63. data/recipes/kde/files/xsession +89 -0
  64. data/recipes/kde/info.yaml +10 -0
  65. data/recipes/kde/recipe +585 -0
  66. data/recipes/kde/recipe-local +90 -0
  67. data/recipes/kde/settings.yaml +52 -0
  68. data/recipes/kde43/info.yaml +10 -0
  69. data/recipes/kde43/recipe +256 -0
  70. data/recipes/kde43/recipe-local +90 -0
  71. data/recipes/kde43/settings.yaml +32 -0
  72. data/recipes/kdeqt4.6/custom/qt/qtscriptgenerator/compile.sh +77 -0
  73. data/recipes/kdeqt4.6/custom/qt/qtscriptgenerator/configure.sh +70 -0
  74. data/recipes/kdeqt4.6/custom/qt/qtscriptgenerator/install.sh +39 -0
  75. data/recipes/kdeqt4.6/info.yaml +7 -0
  76. data/recipes/kdeqt4.6/recipe +155 -0
  77. data/recipes/kdeqt4.6/recipe-local +30 -0
  78. data/recipes/kdeqt4.6/settings.yaml +27 -0
  79. data/tags +745 -0
  80. data/tasks/genfiles.rake +28 -0
  81. data/tasks/rdoc.rake +34 -0
  82. data/tasks/rspec.rake +21 -0
  83. data/test.rb +28 -0
  84. data/test/commands/test_build.rb +29 -0
  85. data/test/test_build_system.rb +98 -0
  86. data/test/test_cli.rb +61 -0
  87. data/test/test_command.rb +175 -0
  88. data/test/test_configuration_parser.rb +542 -0
  89. data/test/test_environment.rb +82 -0
  90. data/test/test_helper.rb +39 -7
  91. data/test/test_module.rb +158 -0
  92. data/test/test_repository.rb +75 -0
  93. data/test/test_singleton.rb +51 -0
  94. data/test/test_ssh_key.rb +14 -0
  95. data/test/test_svn_parser.rb +28 -0
  96. data/test/test_vcs.rb +33 -0
  97. metadata +139 -90
  98. metadata.gz.sig +0 -0
  99. data/PostInstall.txt +0 -3
  100. data/TODO +0 -2
  101. data/bin/kde-build.rb +0 -21
  102. data/config/website.yml +0 -2
  103. data/config/website.yml.sample +0 -2
  104. data/lib/kde-build.rb +0 -18
  105. data/lib/kde-build/application.rb +0 -270
  106. data/lib/kde-build/build_system.rb +0 -28
  107. data/lib/kde-build/build_system/autoconf.rb +0 -108
  108. data/lib/kde-build/build_system/base.rb +0 -139
  109. data/lib/kde-build/build_system/cmake.rb +0 -94
  110. data/lib/kde-build/build_system/qtcopy.rb +0 -127
  111. data/lib/kde-build/command.rb +0 -42
  112. data/lib/kde-build/command/build.rb +0 -106
  113. data/lib/kde-build/command/compile.rb +0 -39
  114. data/lib/kde-build/command/configure.rb +0 -48
  115. data/lib/kde-build/command/ctags.rb +0 -41
  116. data/lib/kde-build/command/fetch.rb +0 -33
  117. data/lib/kde-build/command/help.rb +0 -71
  118. data/lib/kde-build/command/info.rb +0 -45
  119. data/lib/kde-build/command/install.rb +0 -39
  120. data/lib/kde-build/command/module_based.rb +0 -44
  121. data/lib/kde-build/command/rebase.rb +0 -50
  122. data/lib/kde-build/command/version.rb +0 -43
  123. data/lib/kde-build/configuration.rb +0 -209
  124. data/lib/kde-build/exception.rb +0 -6
  125. data/lib/kde-build/metaaid.rb +0 -18
  126. data/lib/kde-build/module.rb +0 -227
  127. data/lib/kde-build/module_configuration.rb +0 -107
  128. data/lib/kde-build/moduleregistry.rb +0 -85
  129. data/lib/kde-build/tools/ctags.rb +0 -59
  130. data/lib/kde-build/tools/logging.rb +0 -49
  131. data/lib/kde-build/tools/make.rb +0 -58
  132. data/lib/kde-build/tools/ssh.rb +0 -47
  133. data/lib/kde-build/vcs.rb +0 -28
  134. data/lib/kde-build/vcs/base.rb +0 -85
  135. data/lib/kde-build/vcs/git-svn.rb +0 -139
  136. data/lib/kde-build/vcs/git.rb +0 -121
  137. data/lib/kde-build/vcs/svn.rb +0 -102
  138. data/script/console +0 -10
  139. data/script/destroy +0 -14
  140. data/script/generate +0 -14
  141. data/script/txt2html +0 -71
  142. data/test.yaml.tmpl +0 -632
  143. data/test/test_kde-build.rb +0 -11
  144. data/test/test_vcs_svn.rb +0 -44
  145. data/website/index.html +0 -84
  146. data/website/index.txt +0 -59
  147. data/website/javascripts/rounded_corners_lite.inc.js +0 -285
  148. data/website/stylesheets/screen.css +0 -159
  149. data/website/template.html.erb +0 -50
@@ -0,0 +1,82 @@
1
+ require 'pathname'
2
+ require Pathname.new( File.dirname(__FILE__)).join( 'test_helper' ).cleanpath
3
+
4
+ require 'build-tool/commands'
5
+ require 'build-tool/environment'
6
+
7
+ class TestEnvironment < Test::Unit::TestCase
8
+
9
+ # Test a simple default created object
10
+ def test_simple_creation
11
+ env = BuildTool::Environment.new('kde4')
12
+ # Check that all available properties are initialized correctly
13
+ assert_equal env.name, 'kde4'
14
+
15
+ assert_raise StandardError do
16
+ BuildTool::Environment.new(nil)
17
+ end
18
+ end
19
+
20
+ # Test all properties for required behaviour
21
+ def test_properties
22
+ env = BuildTool::Environment.new('kde4')
23
+
24
+ # It's not allowed to change the name
25
+ assert !env.respond_to?( 'name=' )
26
+ end
27
+
28
+ # Test variables
29
+ def test_variables
30
+ env = BuildTool::Environment.new('kde4')
31
+
32
+ # Set a value by symbol
33
+ env.set( :PATH, "/usr/bin:bin" )
34
+ assert_equal "/usr/bin:bin", env[:PATH]
35
+ assert_equal "/usr/bin:bin", env["PATH"]
36
+
37
+ # Set a value by string
38
+ env.set( "PATH", "/usr/bin:bin" )
39
+ assert_equal "/usr/bin:bin", env[:PATH]
40
+ assert_equal "/usr/bin:bin", env["PATH"]
41
+
42
+ # Add another variable
43
+ env.set( :MANPATH, "/usr/man" )
44
+ assert_equal "/usr/man", env[:MANPATH]
45
+ assert_equal "/usr/man", env["MANPATH"]
46
+
47
+ # Make sure the variables are independent
48
+ assert_equal "/usr/bin:bin", env[:PATH]
49
+ end
50
+
51
+ # Test setting and adding to variables
52
+ def test_setting_variables
53
+ env = BuildTool::Environment.new('kde4')
54
+
55
+ # Make sure it's empty to start with
56
+ assert_equal "", env[:PATH]
57
+
58
+ # Set a value by symbol
59
+ env.set( :PATH, "/usr/bin:bin" )
60
+ assert_equal "/usr/bin:bin", env[:PATH]
61
+ assert_equal "/usr/bin:bin", env["PATH"]
62
+
63
+ # Set a value by string
64
+ env.set( "PATH", "/usr/bin:bin" )
65
+ assert_equal "/usr/bin:bin", env[:PATH]
66
+ assert_equal "/usr/bin:bin", env["PATH"]
67
+
68
+ # Append a value
69
+ env.set( :PATH, "/usr/bin:/bin:/usr/local/bin" )
70
+ assert_equal "/usr/bin:/bin:/usr/local/bin", env[:PATH]
71
+
72
+ # Prepend a value
73
+ env.prepend( :PATH, "/usr/X11R6/bin" )
74
+ assert_equal "/usr/X11R6/bin:/usr/bin:/bin:/usr/local/bin", env[:PATH]
75
+
76
+ # Both at once
77
+ env.append( :PATH, "/opt/kde4/bin" )
78
+ assert_equal "/usr/X11R6/bin:/usr/bin:/bin:/usr/local/bin:/opt/kde4/bin", env[:PATH]
79
+
80
+ end
81
+
82
+ end
@@ -1,12 +1,44 @@
1
+ require 'pathname'
2
+ require Pathname.new( File.dirname(__FILE__)).join( '../lib/build-tool' ).cleanpath
3
+
4
+ require 'rubygems'
5
+ require 'logging'
1
6
  require 'stringio'
2
7
  require 'test/unit'
3
- require 'log4r'
4
- require File.dirname(__FILE__) + '/../lib/kde-build'
5
8
 
6
- $noop = true
9
+ Logging.init :debug, :verbose, :trace, :info, :warn, :error
10
+ include Logging.globally
11
+ Logging.logger.root.level = :debug
12
+ Logging.logger.root.clear_appenders()
13
+
14
+
15
+ def keep_stdout(&block)
16
+ begin
17
+ orig_stream, $stdout = $stdout, StringIO.new
18
+ block.call($stdout)
19
+ ensure
20
+ s, $stdout = $stdout.string, orig_stream
21
+ s
22
+ end
23
+ end
24
+
25
+ def assert_signals( obj, signal, &block )
26
+ called = false
27
+
28
+ proc = obj.connect( signal ) { called = true }
29
+ yield
30
+ obj.disconnect( signal, &proc )
31
+ assert called, "Slot was called"
32
+ end
7
33
 
8
- with_warnings_suppressed do
9
- include Log4r
10
- $log = Logger.new('')
11
- $log.outputters = StdoutOutputter.new( "log_stdout", :level => DEBUG )
34
+ def assert_output(expected, &block)
35
+ keep_stdout do |stdout|
36
+ block.call
37
+ if expected.is_a?(Regexp)
38
+ assert_match expected, stdout.string
39
+ else
40
+ assert_equal expected.to_s, stdout.string
41
+ end
42
+ end
12
43
  end
44
+
@@ -0,0 +1,158 @@
1
+ require 'pathname'
2
+ require Pathname.new( File.dirname(__FILE__)).join( 'test_helper' ).cleanpath
3
+
4
+ require 'build-tool/module'
5
+ require 'build-tool/repository'
6
+ require 'build-tool/errors'
7
+ require 'build-tool/vcs/git-svn'
8
+ require 'build-tool/environment'
9
+ require 'build-tool/build-system/cmake'
10
+
11
+ class TestModule < Test::Unit::TestCase
12
+
13
+ # Test a simple default created object
14
+ def test_simple_creation
15
+ mod = BuildTool::Module.new('kdelibs')
16
+ assert_raise StandardError do
17
+ BuildTool::Module.new(nil)
18
+ end
19
+ end
20
+
21
+ def test_template
22
+ mod = BuildTool::Module.new('kdelibs')
23
+ mod.is_template = true
24
+ assert_raise BuildTool::ConfigurationError do
25
+ mod.local_path = "/kde/trunk"
26
+ end
27
+ assert_raise BuildTool::ConfigurationError do
28
+ mod.remote_path = "/kde/trunk"
29
+ end
30
+ end
31
+
32
+ # Test all properties for required behaviour
33
+ def test_properties
34
+ mod = BuildTool::Module.new('kdelibs')
35
+ # It's not allowed to change the name
36
+ assert !mod.respond_to?( 'name=' )
37
+ # The name
38
+ assert_equal mod.name, 'kdelibs'
39
+ # defaults to name
40
+ assert_equal mod.local_path, 'kdelibs'
41
+ # defaults to name
42
+ assert_equal mod.remote_path, 'kdelibs'
43
+ end
44
+
45
+ # Test checking out the module
46
+ def test_checkout
47
+ mod = BuildTool::Module.new('kdelibs')
48
+ assert_raise BuildTool::ConfigurationError do
49
+ mod.rebase( nil )
50
+ end
51
+ end
52
+
53
+ # Test checking error message because of missing configuration
54
+ def test_build_prefix
55
+ mod = BuildTool::Module.new('kdelibs')
56
+ assert_raise BuildTool::ConfigurationError do
57
+ mod.build_prefix_required
58
+ end
59
+ assert_nothing_raised do
60
+ mod.build_prefix
61
+ end
62
+ assert_nothing_raised do
63
+ mod.build_prefix= "/kde/src"
64
+ mod.build_prefix_required
65
+ end
66
+ end
67
+
68
+ # Test checking error message because of missing configuration
69
+ def test_build_system
70
+ mod = BuildTool::Module.new('kdelibs')
71
+ assert_raise BuildTool::ConfigurationError do
72
+ mod.build_system_required
73
+ end
74
+ assert_nothing_raised do
75
+ mod.build_system
76
+ end
77
+ assert_nothing_raised do
78
+ mod.build_system= BuildTool::BuildSystem::CMake.new
79
+ mod.build_system_required
80
+ end
81
+ end
82
+
83
+ # Test checking error message because of missing configuration
84
+ def test_environment
85
+ mod = BuildTool::Module.new('kdelibs')
86
+ assert_raise BuildTool::ConfigurationError do
87
+ mod.environment_required
88
+ end
89
+ assert_nothing_raised do
90
+ mod.environment
91
+ end
92
+ assert_nothing_raised do
93
+ mod.environment= BuildTool::Environment.new( 'kde' )
94
+ mod.environment_required
95
+ end
96
+ end
97
+
98
+ # Test checking error message because of missing configuration
99
+ def test_install_prefix
100
+ mod = BuildTool::Module.new('kdelibs')
101
+ # It's nil
102
+ assert_nil mod.install_prefix
103
+ # Raises an expression if required
104
+ assert_raise BuildTool::ConfigurationError do
105
+ mod.install_prefix_required
106
+ end
107
+ # But not on the normal accessor
108
+ assert_nothing_raised do
109
+ mod.install_prefix
110
+ end
111
+
112
+ # Set a value
113
+ mod.install_prefix= "/opt/kde"
114
+ assert_kind_of Pathname, mod.install_prefix
115
+ # It's available on the normal accessor
116
+ assert_equal "/opt/kde", mod.install_prefix.to_s
117
+ # Does not throw an expception
118
+ assert_nothing_raised do
119
+ mod.install_prefix_required
120
+ end
121
+ # It's available on the normal accessor
122
+ assert_equal mod.install_prefix, mod.install_prefix_required
123
+ end
124
+
125
+ # Test checking error message because of missing configuration
126
+ def test_repository
127
+ mod = BuildTool::Module.new('kdelibs')
128
+ assert_raise BuildTool::ConfigurationError do
129
+ mod.repository_required
130
+ end
131
+ assert_nothing_raised do
132
+ mod.repository
133
+ end
134
+ assert_nothing_raised do
135
+ mod.repository= BuildTool::Repository.new( 'kde' )
136
+ mod.repository_required
137
+ end
138
+ end
139
+
140
+ # Test checking error message because of missing configuration
141
+ def test_vcs
142
+ mod = BuildTool::Module.new('kdelibs')
143
+ assert_raise BuildTool::ConfigurationError do
144
+ mod.vcs_required
145
+ end
146
+ assert_nothing_raised do
147
+ mod.vcs
148
+ end
149
+ mod.repository = BuildTool::Repository.new( "repo" )
150
+ mod.build_prefix = "$HOME/build"
151
+ assert_nothing_raised do
152
+ mod.vcs_configuration = BuildTool::VCS::GitSvnConfiguration.new
153
+ mod.vcs_required
154
+ end
155
+ end
156
+
157
+
158
+ end
@@ -0,0 +1,75 @@
1
+ require 'pathname'
2
+ require Pathname.new( File.dirname(__FILE__)).join( 'test_helper' ).cleanpath
3
+
4
+ require 'build-tool/repository'
5
+ require 'build-tool/server'
6
+ require 'build-tool/sshkey'
7
+
8
+ class TestRepository < Test::Unit::TestCase
9
+
10
+ # Test a simple default created object
11
+ def test_simple_creation
12
+ repo = BuildTool::Repository.new('anonsvn.kde.org')
13
+ # Check that all available properties are initialized correctly
14
+ assert_nil repo.server
15
+ assert_nil repo.path
16
+ assert_equal repo.name, 'anonsvn.kde.org'
17
+
18
+ assert_raise StandardError do
19
+ BuildTool::Repository.new(nil)
20
+ end
21
+ end
22
+
23
+ # Test all properties for required behaviour
24
+ def test_properties
25
+ repo = BuildTool::Repository.new('kde.org')
26
+ server = BuildTool::Server.new('anonsvn.kde.org')
27
+
28
+ # It's not allowed to change the name
29
+ assert !repo.respond_to?( 'name=' )
30
+
31
+ server.protocol = "http"
32
+ assert_equal server.protocol, "http"
33
+
34
+ repo.server = server
35
+ assert_equal repo.server, server
36
+
37
+ repo.path = "home/kde"
38
+ assert_equal repo.path, "home/kde"
39
+
40
+ sshkey = BuildTool::SshKey.new( "user@example.com", "~/.ssh/id_dsa" )
41
+ assert_nil repo.sshkey
42
+ repo.sshkey = sshkey
43
+ assert_equal repo.sshkey, sshkey
44
+ end
45
+
46
+ def test_url
47
+ repo = BuildTool::Repository.new "kde"
48
+ server = BuildTool::Server.new('anonsvn.kde.org')
49
+
50
+ assert_raises BuildTool::ConfigurationError do
51
+ repo.url
52
+ end
53
+
54
+ repo.server = server
55
+ assert_raises BuildTool::ConfigurationError do
56
+ repo.url
57
+ end
58
+ server.host = "anonsvn.kde.org"
59
+ assert_equal "anonsvn.kde.org", repo.url
60
+
61
+ repo.user = "mjansen"
62
+ assert_equal "mjansen@anonsvn.kde.org", repo.url
63
+
64
+ server.protocol = "http"
65
+ assert_equal "http://mjansen@anonsvn.kde.org", repo.url
66
+
67
+ repo.user = nil
68
+ assert_equal "http://anonsvn.kde.org", repo.url
69
+
70
+ repo.path = "home/kde"
71
+ assert_equal "http://anonsvn.kde.org/home/kde", repo.url
72
+ end
73
+
74
+
75
+ end
@@ -0,0 +1,51 @@
1
+ require 'pathname'
2
+ require Pathname.new( File.dirname(__FILE__)).join( 'test_helper' ).cleanpath
3
+
4
+ require 'build-tool/singleton'
5
+
6
+ class TestSingleton < Test::Unit::TestCase
7
+
8
+ class Child1 < BuildTool::Singleton
9
+ end
10
+
11
+ class GrandChild1 < Child1
12
+ end
13
+
14
+ class Child2 < BuildTool::Singleton
15
+ end
16
+
17
+ class GrandChild2 < Child2
18
+ end
19
+ def test_singletion
20
+
21
+
22
+ c1 = Child1.new
23
+ c1.instance
24
+ assert_equal c1.instance, Child1.instance
25
+
26
+ assert_raise StandardError do
27
+ Child1.new
28
+ end
29
+
30
+ assert_raise StandardError do
31
+ gc = GrandChild1.new
32
+ end
33
+
34
+
35
+ gc2 = GrandChild2.new
36
+ assert_equal gc2.instance, Child2.instance
37
+ assert_equal gc2.instance, GrandChild2.instance
38
+
39
+ assert_not_equal Child1.instance, GrandChild2.instance
40
+
41
+ gc2.destroy
42
+ assert_nil gc2.instance
43
+ assert_nil Child2.instance
44
+ assert_nil GrandChild2.instance
45
+
46
+ gc2_new = GrandChild2.new
47
+ assert_equal gc2_new.instance, Child2.instance
48
+ assert_equal gc2_new.instance, GrandChild2.instance
49
+ end
50
+
51
+ end
@@ -0,0 +1,14 @@
1
+ require 'pathname'
2
+ require Pathname.new( File.dirname(__FILE__)).join( 'test_helper' ).cleanpath
3
+
4
+ require 'build-tool/sshkey'
5
+
6
+ class TestSshKey < Test::Unit::TestCase
7
+
8
+ def test_initialization
9
+ sshkey = BuildTool::SshKey.new( "user@domain", "~/.ssh/id_dsa" )
10
+ assert_equal "user@domain", sshkey.name
11
+ assert_equal "~/.ssh/id_dsa", sshkey.file
12
+ end
13
+
14
+ end
@@ -0,0 +1,28 @@
1
+ require 'pathname'
2
+ require Pathname.new( File.dirname(__FILE__)).join( 'test_helper' ).cleanpath
3
+
4
+ # require 'build-tool/cfg/svn_parser'
5
+
6
+ class TestSvnParser < Test::Unit::TestCase
7
+
8
+ @@test_config_1 = <<-EOS
9
+ vcs svn
10
+ repository kde
11
+ server "anonsvn.kde.org"
12
+ protocol "svn"
13
+ host "anonsvn.kde.org"
14
+ end
15
+ path "home/kde/trunk"
16
+ end
17
+ end
18
+ EOS
19
+
20
+
21
+ def test_configuration
22
+ # parser = BuildTool::Cfg::SvnParser.new
23
+ # # puts parser.methods.sort
24
+ # parser.parse_string( @@test_config_1, "test_config_1" )
25
+ end
26
+
27
+ end
28
+