Implement blackbox in Golang (#250)

* Initial release
This commit is contained in:
Tom Limoncelli
2020-07-24 14:21:33 -04:00
committed by GitHub
parent e049c02655
commit 1c77c87555
86 changed files with 6074 additions and 22 deletions

21
pkg/bbutil/rbio_test.go Normal file
View File

@@ -0,0 +1,21 @@
package bbutil
import (
"testing"
)
func TestRunBashInputOutput(t *testing.T) {
in := "This is a test of the RBIO system.\n"
bin := []byte(in)
out, err := RunBashInputOutput(bin, "cat")
sout := string(out)
if err != nil {
t.Error(err)
}
if in != sout {
t.Errorf("not equal %q %q", in, out)
}
}