[SCM] ci-tooling packaging branch, master, updated. 56652c90a7cf9a7469a667e2bfc09f3aa5111049

Harald Sitter apachelogger-guest at moszumanska.debian.org
Sat Jan 10 21:43:21 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=56652c9

The following commit has been merged in the master branch:
commit 56652c90a7cf9a7469a667e2bfc09f3aa5111049
Author: Harald Sitter <sitter at kde.org>
Date:   Sat Jan 10 22:43:19 2015 +0100

    add a bit of a preliminary projects test
    
    totally leaks git and stuff
---
 test/test-projects.rb | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/test/test-projects.rb b/test/test-projects.rb
new file mode 100644
index 0000000..9f319c7
--- /dev/null
+++ b/test/test-projects.rb
@@ -0,0 +1,24 @@
+require "test/unit"
+
+require_relative "../lib/projects"
+
+class ProjectTest < Test::Unit::TestCase
+  def test_init
+    # FIXME: this should probably go into a fake git
+    project = Project.new("kinfocenter", "plasma")
+    assert_equal(project.name, "kinfocenter")
+    assert_equal(project.component, "plasma")
+    scm = project.upstream_scm
+    assert_equal(scm.type, "git")
+    assert_equal(scm.branch, "master")
+    assert_equal(scm.url, "git://anongit.kde.org/kinfocenter")
+    assert_equal(project.provided_binaries, %w(kinfocenter kinfocenter-dbg))
+    # FIXME: cannot do this right now because so long...
+    # assert_equal(project.dependencies, [])
+    assert_equal(project.dependees, [])
+    assert_equal(project.series_branches, [])
+    assert_equal(project.autopkgtest, false)
+    # FIXME: this is totally inconsistent with upstream_scm
+    assert_equal(project.packaging_scm, "git.debian.org:/git/pkg-kde/plasma/kinfocenter")
+  end
+end

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list