2016-04-27 13:08:20 -04:00
|
|
|
// +build !daemon
|
|
|
|
|
2016-04-23 21:31:57 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2016-08-26 12:19:02 -04:00
|
|
|
|
|
|
|
"github.com/docker/docker/pkg/testutil/assert"
|
2016-04-23 21:31:57 -04:00
|
|
|
)
|
|
|
|
|
2016-08-26 12:19:02 -04:00
|
|
|
func TestDaemonCommand(t *testing.T) {
|
|
|
|
cmd := newDaemonCommand()
|
2017-03-04 23:25:11 -05:00
|
|
|
cmd.SetArgs([]string{"--version"})
|
2016-08-26 12:19:02 -04:00
|
|
|
err := cmd.Execute()
|
2016-04-23 21:31:57 -04:00
|
|
|
|
2016-08-26 12:19:02 -04:00
|
|
|
assert.Error(t, err, "Please run `dockerd`")
|
2016-04-23 21:31:57 -04:00
|
|
|
}
|