[SCM] ci-tooling packaging branch, master, updated. f4fb1412ef5eb30a49adfd5e0b5a2902f4f744fb
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Thu Dec 10 11:14:59 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=ac85d90
The following commit has been merged in the master branch:
commit ac85d90c074dacf684f75159f82e19bc188ab2d9
Author: Harald Sitter <sitter at kde.org>
Date: Thu Dec 10 12:08:38 2015 +0100
test ci scm
also add a test for how we use tarball. this test actually wouldn't pass
with implicitly added mutable URIs. so I guess mutation needs some more
wrangling to make work
---
test/test_ci_scm.rb | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/test/test_ci_scm.rb b/test/test_ci_scm.rb
new file mode 100644
index 0000000..5c9b312
--- /dev/null
+++ b/test/test_ci_scm.rb
@@ -0,0 +1,26 @@
+require_relative '../lib/ci/upstream_scm'
+require_relative 'lib/testcase'
+
+# Test ci/upstream_scm
+module CI
+ class SCMTest < TestCase
+ def test_init
+ type = 'git'
+ url = 'git.debian.org:/git/pkg-kde/yolo'
+ read_url = 'git://anonscm.debian.org/pkg-kde/yolo'
+ branch = 'master'
+ scm = SCM.new(type, url, branch)
+ assert_equal(type, scm.type)
+ assert_equal(url, scm.url)
+ assert_equal(branch, scm.branch)
+ uri = scm.uri
+ assert_is_a(uri, MutableURI::Generic)
+ assert_equal(url, uri.writable.to_s)
+ assert_equal(read_url, uri.readable.to_s)
+ end
+
+ def test_tarball
+ SCM.new('tarball', 'http://www.example.com/foo.tar.xz')
+ end
+ end
+end
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list