github.com/mem/u-root@v2.0.1-0.20181004165302-9b18b4636a33+incompatible/cmds/dmesg/dmesg_test.go (about) 1 // Copyright 2016-2017 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 import ( 8 "testing" 9 10 "github.com/u-root/u-root/pkg/testutil" 11 ) 12 13 func TestDmesg(t *testing.T) { 14 cmd := testutil.Command(t) 15 out, err := cmd.Output() 16 if err != nil || len(out) == 0 { 17 t.Fatal(err) 18 } 19 } 20 21 func TestMain(m *testing.M) { 22 testutil.Run(m, main) 23 }