mirror of
https://github.com/danog/gllvm.git
synced 2024-12-02 14:57:53 +01:00
32 lines
492 B
Go
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")
|
|
}
|
|
}
|