gllvm/tests/replay_test.go
2019-10-22 17:53:26 +00:00

32 lines
492 B
Go

package test
import (
"fmt"
"github.com/SRI-CSL/gllvm/shared"
"testing"
)
func Test_replay_thttpd(t *testing.T) {
arg := "../data/thttpd_replay.log"
ok := shared.Replay(arg)
if !ok {
t.Errorf("Replay of %v returned %v\n", arg, ok)
} else {
fmt.Println("Replay OK")
}
}
func Test_replay_nodejs(t *testing.T) {
arg := "../data/nodejs_replay.log"
ok := shared.Replay(arg)
if !ok {
t.Errorf("Replay of %v returned %v\n", arg, ok)
} else {
fmt.Println("Replay OK")
}
}