I just poked at it a bit.

Half the tests in the testsuite need to interact with systemd over the
dbus system bus. We naturally aren't using systemd on our builders as
they are chroots running on trusty so none of those tests can possibly
ever work.

I recommend we follow Debian here and keep the tests disabled.

Full output:
dh_auto_test -O--buildsystem=golang
        go test -v github.com/coreos/go-systemd/activation 
github.com/coreos/go-systemd/daemon github.com/coreos/go-systemd/dbus 
github.com/coreos/go-systemd/journal github.com/coreos/go-systemd/login1 
github.com/coreos/go-systemd/machine1 github.com/coreos/go-systemd/unit 
github.com/coreos/go-systemd/util
=== RUN   TestActivation
--- PASS: TestActivation (0.93s)
=== RUN   TestActivationNoFix
--- PASS: TestActivationNoFix (0.59s)
=== RUN   TestActivationNoFiles
--- PASS: TestActivationNoFiles (0.48s)
=== RUN   TestListeners
--- PASS: TestListeners (0.45s)
=== RUN   TestPacketConns
--- PASS: TestPacketConns (0.47s)
PASS
ok      github.com/coreos/go-systemd/activation 2.926s
?       github.com/coreos/go-systemd/daemon     [no test files]
=== RUN   TestNeedsEscape
--- PASS: TestNeedsEscape (0.00s)
=== RUN   TestPathBusEscape
--- PASS: TestPathBusEscape (0.00s)
=== RUN   TestNew
--- FAIL: TestNew (0.00s)
        dbus_test.go:75: dial unix /var/run/dbus/system_bus_socket: connect: no 
such file or directory
=== RUN   TestStartStopUnit
--- FAIL: TestStartStopUnit (0.00s)
        methods_test.go:31: dial unix /var/run/dbus/system_bus_socket: connect: 
no such file or directory
=== RUN   TestEnableDisableUnit
--- FAIL: TestEnableDisableUnit (0.00s)
        methods_test.go:31: dial unix /var/run/dbus/system_bus_socket: connect: 
no such file or directory
=== RUN   TestGetUnitProperties
--- FAIL: TestGetUnitProperties (0.00s)
        methods_test.go:31: dial unix /var/run/dbus/system_bus_socket: connect: 
no such file or directory
=== RUN   TestGetUnitPropertiesRejectsInvalidName
--- FAIL: TestGetUnitPropertiesRejectsInvalidName (0.00s)
        methods_test.go:31: dial unix /var/run/dbus/system_bus_socket: connect: 
no such file or directory
=== RUN   TestSetUnitProperties
--- FAIL: TestSetUnitProperties (0.00s)
        methods_test.go:31: dial unix /var/run/dbus/system_bus_socket: connect: 
no such file or directory
=== RUN   TestStartStopTransientUnit
--- FAIL: TestStartStopTransientUnit (0.00s)
        methods_test.go:31: dial unix /var/run/dbus/system_bus_socket: connect: 
no such file or directory
=== RUN   TestConnJobListener
--- FAIL: TestConnJobListener (0.00s)
        methods_test.go:31: dial unix /var/run/dbus/system_bus_socket: connect: 
no such file or directory
=== RUN   TestBasicSetActions
--- PASS: TestBasicSetActions (0.00s)
=== RUN   TestSubscriptionSetUnit
--- FAIL: TestSubscriptionSetUnit (0.00s)
        subscription_set_test.go:29: dial unix /var/run/dbus/system_bus_socket: 
connect: no such file or directory
=== RUN   TestSubscribe
--- FAIL: TestSubscribe (0.00s)
        subscription_test.go:27: dial unix /var/run/dbus/system_bus_socket: 
connect: no such file or directory
=== RUN   TestSubscribeUnit
--- FAIL: TestSubscribeUnit (0.00s)
        subscription_test.go:48: dial unix /var/run/dbus/system_bus_socket: 
connect: no such file or directory
FAIL
FAIL    github.com/coreos/go-systemd/dbus       0.005s
?       github.com/coreos/go-systemd/journal    [no test files]
=== RUN   TestNew
--- FAIL: TestNew (0.00s)
        dbus_test.go:26: dial unix /var/run/dbus/system_bus_socket: connect: no 
such file or directory
FAIL
FAIL    github.com/coreos/go-systemd/login1     0.003s
=== RUN   TestNew
--- FAIL: TestNew (0.00s)
        dbus_test.go:28: dial unix /var/run/dbus/system_bus_socket: connect: no 
such file or directory
FAIL
FAIL    github.com/coreos/go-systemd/machine1   0.018s
=== RUN   TestDeserialize
--- PASS: TestDeserialize (0.00s)
=== RUN   TestDeserializeFail
--- PASS: TestDeserializeFail (0.00s)
=== RUN   TestUnitNameEscape
--- PASS: TestUnitNameEscape (0.00s)
=== RUN   TestUnitNameUnescape
--- PASS: TestUnitNameUnescape (0.00s)
=== RUN   TestAllMatch
--- PASS: TestAllMatch (0.00s)
=== RUN   TestMatch
--- PASS: TestMatch (0.00s)
=== RUN   TestSerialize
--- FAIL: TestSerialize (0.00s)
        serialize_test.go:143: case %!d(MISSING): incorrect output
        serialize_test.go:144: Expected:
                [Unit]
                Description=Foo
                BindsTo=bar.service
        serialize_test.go:145: Actual:
                [Unit]
                Description=Foo
                BindsTo=bar.service
                
        serialize_test.go:143: case %!d(MISSING): incorrect output
        serialize_test.go:144: Expected:
                [Unit]
                Description=Foo
                Description=Bar
        serialize_test.go:145: Actual:
                [Unit]
                Description=Foo
                Description=Bar
                
        serialize_test.go:143: case %!d(MISSING): incorrect output
        serialize_test.go:144: Expected:
                [Unit]
                Description=Foo
                
                [Service]
                ExecStart=/usr/bin/sleep infinity
        serialize_test.go:145: Actual:
                [Unit]
                Description=Foo
                
                [Service]
                ExecStart=/usr/bin/sleep infinity
                
        serialize_test.go:143: case %!d(MISSING): incorrect output
        serialize_test.go:144: Expected:
                [Unit]
                Description=Foo
                
                [Service]
                ExecStart=/usr/bin/sleep infinity
                
                [Unit]
                BindsTo=bar.service
        serialize_test.go:145: Actual:
                [Unit]
                Description=Foo
                BindsTo=bar.service
                
                [Service]
                ExecStart=/usr/bin/sleep infinity
                
        serialize_test.go:143: case %!d(MISSING): incorrect output
        serialize_test.go:144: Expected:
                [©]
                µ☃=ÇôrèÕ$
        serialize_test.go:145: Actual:
                [©]
                µ☃=ÇôrèÕ$
                
        serialize_test.go:143: case %!d(MISSING): incorrect output
        serialize_test.go:144: Expected:
                [Un
                it]
                Description=Foo
        serialize_test.go:145: Actual:
                [Un
                it]
                Description=Foo
                
        serialize_test.go:143: case %!d(MISSING): incorrect output
        serialize_test.go:144: Expected:
                [Unit]
                Desc
                ription=Foo
        serialize_test.go:145: Actual:
                [Unit]
                Desc
                ription=Foo
                
        serialize_test.go:143: case %!d(MISSING): incorrect output
        serialize_test.go:144: Expected:
                [Unit]
                Description=Fo
                o
        serialize_test.go:145: Actual:
                [Unit]
                Description=Fo
                o
                
FAIL
FAIL    github.com/coreos/go-systemd/unit       0.006s
?       github.com/coreos/go-systemd/util       [no test files]

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1520680

Title:
  [MIR] golang-github-coreos-go-systemd-dev

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-github-coreos-go-systemd/+bug/1520680/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to