| 55 | } |
| 56 | |
| 57 | func TestPostgres_Script(t *testing.T) { |
| 58 | pgRun(t, func(t *pgTest) { |
| 59 | testscript.Run(t.T, testscript.Params{ |
| 60 | Dir: "testdata/postgres", |
| 61 | Setup: t.setupScript, |
| 62 | Cmds: map[string]func(ts *testscript.TestScript, neg bool, args []string){ |
| 63 | "only": cmdOnly, |
| 64 | "apply": t.cmdApply, |
| 65 | "exist": t.cmdExist, |
| 66 | "synced": t.cmdSynced, |
| 67 | "cmphcl": t.cmdCmpHCL, |
| 68 | "cmpshow": t.cmdCmpShow, |
| 69 | "cmpmig": t.cmdCmpMig, |
| 70 | "execsql": t.cmdExec, |
| 71 | "atlas": t.cmdCLI, |
| 72 | "clearSchema": t.clearSchema, |
| 73 | }, |
| 74 | }) |
| 75 | }) |
| 76 | } |
| 77 | |
| 78 | func TestSQLite_Script(t *testing.T) { |
| 79 | tt := &liteTest{T: t} |