reg/tags_test.go
Jess Frazelle 64124a70bf
ordering travis
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 11:52:08 -05:00

20 lines
309 B
Go

package main
import (
"strings"
"testing"
)
func TestTags(t *testing.T) {
out, err := run("tags", "busybox")
if err != nil {
t.Fatalf("output: %s, error: %v", string(out), err)
}
expected := `glibc
musl
`
if !strings.HasSuffix(out, expected) {
t.Logf("expected: %s\ngot: %s", expected, out)
}
}