11435b674b
Signed-off-by: Antonio Murdaca <runcom@redhat.com> Signed-off-by: Jessica Frazelle <acidburn@docker.com>
28 lines
459 B
Go
28 lines
459 B
Go
// +build linux
|
|
|
|
package seccomp
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"testing"
|
|
)
|
|
|
|
func TestLoadProfile(t *testing.T) {
|
|
f, err := ioutil.ReadFile("fixtures/example.json")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if _, err := LoadProfile(string(f)); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
|
|
func TestLoadDefaultProfile(t *testing.T) {
|
|
f, err := ioutil.ReadFile("default.json")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if _, err := LoadProfile(string(f)); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|