(m *testing.M)
| 47 | } |
| 48 | |
| 49 | func TestMain(m *testing.M) { |
| 50 | if err := exec.Command("go", "build", "--tags", "fts5", "-o", binaryName).Run(); err != nil { |
| 51 | log.Print(errors.Wrap(err, "building a binary").Error()) |
| 52 | os.Exit(1) |
| 53 | } |
| 54 | |
| 55 | os.Exit(m.Run()) |
| 56 | } |
| 57 | |
| 58 | func TestInit(t *testing.T) { |
| 59 | testDir, opts := setupTestEnv(t) |