autobuild 1.10.0.b4 → 1.10.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitattributes +1 -0
- data/.gitignore +5 -0
- data/.travis.yml +5 -0
- data/Changes.txt +8 -0
- data/Gemfile +3 -0
- data/README.md +54 -0
- data/Rakefile +7 -22
- data/autobuild.gemspec +30 -0
- data/lib/autobuild/environment.rb +27 -4
- data/lib/autobuild/import/archive.rb +5 -9
- data/lib/autobuild/import/git.rb +6 -8
- data/lib/autobuild/importer.rb +67 -0
- data/lib/autobuild/reporting.rb +7 -5
- data/lib/autobuild/test.rb +2 -14
- data/lib/autobuild/version.rb +1 -1
- data/manifest.xml +21 -0
- metadata +67 -48
- data/.gemtest +0 -0
- data/README.txt +0 -181
- data/TODO +0 -9
- data/test/data/cvsroot.tar +0 -0
- data/test/data/gitrepo-with-extra-commit-and-tag.tar +0 -0
- data/test/data/gitrepo.tar +0 -0
- data/test/data/svnroot.tar +0 -0
- data/test/data/tarimport.tar.gz +0 -0
- data/test/import/test_cvs.rb +0 -51
- data/test/import/test_git.rb +0 -446
- data/test/import/test_svn.rb +0 -144
- data/test/import/test_tar.rb +0 -95
- data/test/suite.rb +0 -7
- data/test/test_config.rb +0 -79
- data/test/test_environment.rb +0 -88
- data/test/test_reporting.rb +0 -43
- data/test/test_subcommand.rb +0 -38
data/test/test_subcommand.rb
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
require 'autobuild/test'
|
2
|
-
|
3
|
-
class TC_Subcommand < Minitest::Test
|
4
|
-
EXAMPLE_1 = <<EOF
|
5
|
-
This is a file
|
6
|
-
It will be the first part of the two-part cat
|
7
|
-
EOF
|
8
|
-
|
9
|
-
EXAMPLE_2 = <<EOF
|
10
|
-
This is another file
|
11
|
-
It will be the second part of the two-part cat
|
12
|
-
EOF
|
13
|
-
attr_reader :source1, :source2
|
14
|
-
def setup
|
15
|
-
super
|
16
|
-
|
17
|
-
Autobuild.logdir = tempdir
|
18
|
-
|
19
|
-
# Write example files
|
20
|
-
@source1 = File.join(tempdir, 'source1')
|
21
|
-
@source2 = File.join(tempdir, 'source2')
|
22
|
-
File.open(source1, 'w+') { |f| f.write(EXAMPLE_1) }
|
23
|
-
File.open(source2, 'w+') { |f| f.write(EXAMPLE_2) }
|
24
|
-
end
|
25
|
-
|
26
|
-
def test_behaviour_on_unexpected_error
|
27
|
-
flexmock(Autobuild::Subprocess).should_receive(:exec).and_raise(::Exception)
|
28
|
-
assert_raises(Autobuild::SubcommandFailed) { Autobuild::Subprocess.run('test', 'test', 'does_not_exist') }
|
29
|
-
end
|
30
|
-
def test_behaviour_on_inexistent_command
|
31
|
-
assert_raises(Autobuild::SubcommandFailed) { Autobuild::Subprocess.run('test', 'test', 'does_not_exist') }
|
32
|
-
end
|
33
|
-
def test_behaviour_on_interrupt
|
34
|
-
flexmock(Autobuild::Subprocess).should_receive(:exec).and_raise(Interrupt)
|
35
|
-
assert_raises(Interrupt) { Autobuild::Subprocess.run('test', 'test', 'does_not_exist') }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|