github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/pkg/boot/stboot/bootball_test.go (about) 1 // Copyright 2018 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 stboot 6 7 import ( 8 "os" 9 "testing" 10 11 "github.com/stretchr/testify/require" 12 ) 13 14 func TestBootBallFromConfig(t *testing.T) { 15 file := "testdata/testConfigDir/stconfig.json" 16 ball, err := BootBallFromConfig(file) 17 t.Logf("tmp config dir: %s", ball.dir) 18 require.NoError(t, err) 19 _, err = os.Stat(ball.dir) 20 require.NoError(t, err) 21 // todo: test files, too 22 }