fix upstart detect. Add platform test.

This commit is contained in:
Daniel Theophanes
2014-10-29 09:05:24 -07:00
parent 7a0abbd49c
commit e8fe9e16c3
5 changed files with 33 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
package service
import (
"testing"
)
func TestPlatformName(t *testing.T) {
s, err := NewServiceConfig(&Config{
Name: "Test",
})
if err != nil {
t.Errorf("Failed to create service: %v", err)
}
t.Logf("Platform is %s", s.String())
}