gllvm/tests/replay_test.go

32 lines
492 B
Go
Raw Normal View History

2019-10-22 19:47:34 +02:00
package test
import (
2019-10-22 19:53:26 +02:00
"fmt"
2019-10-22 19:47:34 +02:00
"github.com/SRI-CSL/gllvm/shared"
"testing"
)
2019-10-22 19:53:26 +02:00
func Test_replay_thttpd(t *testing.T) {
2019-10-22 19:47:34 +02:00
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")
}
}
2019-10-22 19:53:26 +02:00
func Test_replay_nodejs(t *testing.T) {
2019-10-22 19:47:34 +02:00
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")
}
}