autoproj 1.12.6 → 1.13.0.b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +14 -0
- data/Rakefile +1 -1
- data/bin/autoproj +4 -0
- data/bin/autoproj-bootstrap +16 -0
- data/bin/autoproj-commit +10 -0
- data/bin/autoproj-list +4 -3
- data/bin/autoproj-log +5 -0
- data/bin/autoproj-reset +13 -0
- data/bin/autoproj-show +3 -1
- data/bin/autoproj-snapshot +18 -29
- data/bin/autoproj-tag +13 -0
- data/bin/autoproj-test +15 -20
- data/bin/autoproj-versions +20 -0
- data/bin/autoproj_bootstrap +149 -28
- data/bin/autoproj_bootstrap.in +1 -2
- data/lib/autoproj.rb +2 -0
- data/lib/autoproj/autobuild.rb +41 -17
- data/lib/autoproj/cli.rb +7 -0
- data/lib/autoproj/cli/reset.rb +79 -0
- data/lib/autoproj/cli/snapshot.rb +63 -0
- data/lib/autoproj/cli/tag.rb +82 -0
- data/lib/autoproj/cli/test.rb +90 -0
- data/lib/autoproj/cli/versions.rb +94 -0
- data/lib/autoproj/cmdline.rb +127 -140
- data/lib/autoproj/configuration.rb +95 -0
- data/lib/autoproj/default.osdeps +3 -0
- data/lib/autoproj/gitorious.rb +25 -37
- data/lib/autoproj/manifest.rb +46 -9
- data/lib/autoproj/ops/cache.rb +1 -1
- data/lib/autoproj/ops/configuration.rb +7 -8
- data/lib/autoproj/ops/snapshot.rb +258 -0
- data/lib/autoproj/ops/tools.rb +36 -3
- data/lib/autoproj/osdeps.rb +28 -16
- data/lib/autoproj/package_definition.rb +13 -0
- data/lib/autoproj/package_manifest.rb +35 -32
- data/lib/autoproj/package_set.rb +74 -17
- data/lib/autoproj/system.rb +23 -10
- data/lib/autoproj/test.rb +60 -0
- data/lib/autoproj/version.rb +1 -1
- data/test/ops/test_configuration.rb +20 -0
- metadata +39 -7
@@ -0,0 +1,60 @@
|
|
1
|
+
# simplecov must be loaded FIRST. Only the files required after it gets loaded
|
2
|
+
# will be profiled !!!
|
3
|
+
if ENV['TEST_ENABLE_COVERAGE'] == '1'
|
4
|
+
begin
|
5
|
+
require 'simplecov'
|
6
|
+
SimpleCov.start
|
7
|
+
rescue LoadError
|
8
|
+
require 'dummy_project'
|
9
|
+
Autoproj.warn "coverage is disabled because the 'simplecov' gem cannot be loaded"
|
10
|
+
rescue Exception => e
|
11
|
+
require 'dummy_project'
|
12
|
+
Autoproj.warn "coverage is disabled: #{e.message}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
require 'autoproj'
|
17
|
+
## Uncomment this to enable flexmock
|
18
|
+
require 'flexmock/test_unit'
|
19
|
+
require 'minitest/spec'
|
20
|
+
|
21
|
+
if ENV['TEST_ENABLE_PRY'] != '0'
|
22
|
+
begin
|
23
|
+
require 'pry'
|
24
|
+
rescue Exception
|
25
|
+
Autoproj.warn "debugging is disabled because the 'pry' gem cannot be loaded"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
module Autoproj
|
30
|
+
# This module is the common setup for all tests
|
31
|
+
#
|
32
|
+
# It should be included in the toplevel describe blocks
|
33
|
+
#
|
34
|
+
# @example
|
35
|
+
# require 'rubylib/test'
|
36
|
+
# describe Autoproj do
|
37
|
+
# include Autoproj::SelfTest
|
38
|
+
# end
|
39
|
+
#
|
40
|
+
module SelfTest
|
41
|
+
if defined? FlexMock
|
42
|
+
include FlexMock::ArgumentTypes
|
43
|
+
include FlexMock::MockContainer
|
44
|
+
end
|
45
|
+
|
46
|
+
def setup
|
47
|
+
# Setup code for all the tests
|
48
|
+
end
|
49
|
+
|
50
|
+
def teardown
|
51
|
+
if defined? FlexMock
|
52
|
+
flexmock_teardown
|
53
|
+
end
|
54
|
+
super
|
55
|
+
# Teardown code for all the tests
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
|
data/lib/autoproj/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'autoproj/test'
|
2
|
+
require 'autoproj/ops/configuration'
|
3
|
+
|
4
|
+
describe Autoproj::Ops::Configuration do
|
5
|
+
describe "#sort_package_sets_by_import_order" do
|
6
|
+
attr_reader :ops
|
7
|
+
|
8
|
+
before do
|
9
|
+
@ops = Autoproj::Ops::Configuration.new(nil, nil)
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should handle standalone package sets that are both explicit and dependencies of other package sets gracefully (issue#30)" do
|
13
|
+
pkg_set0 = flexmock('set0', imports: [], explicit?: true)
|
14
|
+
pkg_set1 = flexmock('set1', imports: [pkg_set0], explicit?: true)
|
15
|
+
root_pkg_set = flexmock('root', imports: [pkg_set0, pkg_set1], explicit?: true)
|
16
|
+
assert_equal [pkg_set0, pkg_set1, root_pkg_set],
|
17
|
+
ops.sort_package_sets_by_import_order([pkg_set1, pkg_set0], root_pkg_set)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0.b1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rock Core Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autobuild
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
22
|
+
version: 1.9.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.9'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
32
|
+
version: 1.9.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: utilrb
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,16 +99,21 @@ executables:
|
|
93
99
|
- autoproj-bootstrap
|
94
100
|
- autoproj-cache
|
95
101
|
- autoproj-clean
|
102
|
+
- autoproj-commit
|
96
103
|
- autoproj-create-set
|
97
104
|
- autoproj-doc
|
98
105
|
- autoproj-envsh
|
99
106
|
- autoproj-list
|
100
107
|
- autoproj-locate
|
108
|
+
- autoproj-log
|
101
109
|
- autoproj-query
|
110
|
+
- autoproj-reset
|
102
111
|
- autoproj-show
|
103
112
|
- autoproj-snapshot
|
104
113
|
- autoproj-switch-config
|
114
|
+
- autoproj-tag
|
105
115
|
- autoproj-test
|
116
|
+
- autoproj-versions
|
106
117
|
- autoproj_bootstrap
|
107
118
|
- autoproj_bootstrap.in
|
108
119
|
- autoproj_stress_test
|
@@ -126,16 +137,21 @@ files:
|
|
126
137
|
- bin/autoproj-bootstrap
|
127
138
|
- bin/autoproj-cache
|
128
139
|
- bin/autoproj-clean
|
140
|
+
- bin/autoproj-commit
|
129
141
|
- bin/autoproj-create-set
|
130
142
|
- bin/autoproj-doc
|
131
143
|
- bin/autoproj-envsh
|
132
144
|
- bin/autoproj-list
|
133
145
|
- bin/autoproj-locate
|
146
|
+
- bin/autoproj-log
|
134
147
|
- bin/autoproj-query
|
148
|
+
- bin/autoproj-reset
|
135
149
|
- bin/autoproj-show
|
136
150
|
- bin/autoproj-snapshot
|
137
151
|
- bin/autoproj-switch-config
|
152
|
+
- bin/autoproj-tag
|
138
153
|
- bin/autoproj-test
|
154
|
+
- bin/autoproj-versions
|
139
155
|
- bin/autoproj_bootstrap
|
140
156
|
- bin/autoproj_bootstrap.in
|
141
157
|
- bin/autoproj_stress_test
|
@@ -143,6 +159,12 @@ files:
|
|
143
159
|
- lib/autoproj/autobuild.rb
|
144
160
|
- lib/autoproj/base.rb
|
145
161
|
- lib/autoproj/build_option.rb
|
162
|
+
- lib/autoproj/cli.rb
|
163
|
+
- lib/autoproj/cli/reset.rb
|
164
|
+
- lib/autoproj/cli/snapshot.rb
|
165
|
+
- lib/autoproj/cli/tag.rb
|
166
|
+
- lib/autoproj/cli/test.rb
|
167
|
+
- lib/autoproj/cli/versions.rb
|
146
168
|
- lib/autoproj/cmdline.rb
|
147
169
|
- lib/autoproj/configuration.rb
|
148
170
|
- lib/autoproj/default.osdeps
|
@@ -156,6 +178,7 @@ files:
|
|
156
178
|
- lib/autoproj/ops/configuration.rb
|
157
179
|
- lib/autoproj/ops/loader.rb
|
158
180
|
- lib/autoproj/ops/main_config_switcher.rb
|
181
|
+
- lib/autoproj/ops/snapshot.rb
|
159
182
|
- lib/autoproj/ops/tools.rb
|
160
183
|
- lib/autoproj/options.rb
|
161
184
|
- lib/autoproj/osdeps.rb
|
@@ -167,6 +190,7 @@ files:
|
|
167
190
|
- lib/autoproj/system.rb
|
168
191
|
- lib/autoproj/templates/create-set/packages.autobuild
|
169
192
|
- lib/autoproj/templates/create-set/source.yml
|
193
|
+
- lib/autoproj/test.rb
|
170
194
|
- lib/autoproj/variable_expansion.rb
|
171
195
|
- lib/autoproj/vcs_definition.rb
|
172
196
|
- lib/autoproj/version.rb
|
@@ -190,6 +214,7 @@ files:
|
|
190
214
|
- test/data/test_manifest/autoproj/local_set/local.autobuild
|
191
215
|
- test/data/test_manifest/autoproj/local_set/source.yml
|
192
216
|
- test/data/test_manifest/autoproj/manifest
|
217
|
+
- test/ops/test_configuration.rb
|
193
218
|
- test/package_managers/apt-dpkg-status
|
194
219
|
- test/package_managers/apt-dpkg-status.installed-last
|
195
220
|
- test/package_managers/apt-dpkg-status.noninstalled-last
|
@@ -216,13 +241,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
216
241
|
version: 1.9.2
|
217
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
243
|
requirements:
|
219
|
-
- - "
|
244
|
+
- - ">"
|
220
245
|
- !ruby/object:Gem::Version
|
221
|
-
version:
|
246
|
+
version: 1.3.1
|
222
247
|
requirements: []
|
223
248
|
rubyforge_project:
|
224
249
|
rubygems_version: 2.2.2
|
225
250
|
signing_key:
|
226
251
|
specification_version: 4
|
227
252
|
summary: Easy installation and management of sets of software packages
|
228
|
-
test_files:
|
253
|
+
test_files:
|
254
|
+
- test/package_managers/test_apt_dpkg_manager.rb
|
255
|
+
- test/package_managers/test_gem.rb
|
256
|
+
- test/package_managers/test_pip.rb
|
257
|
+
- test/test_manifest.rb
|
258
|
+
- test/test_os_dependencies.rb
|
259
|
+
- test/test_package_manifest.rb
|
260
|
+
- test/ops/test_configuration.rb
|