itest: add the -nativesql flag to run SQL itests with native SQL tables

This commit is contained in:
Andras Banki-Horvath
2023-12-12 14:50:15 +01:00
parent 7a45bbbeab
commit ba8e7550d5
6 changed files with 29 additions and 7 deletions

View File

@@ -71,6 +71,9 @@ var (
dbBackendFlag = flag.String("dbbackend", "bbolt", "Database backend "+
"(bbolt, etcd, postgres)")
nativeSQLFlag = flag.Bool("nativesql", false, "Database backend to "+
"use native SQL when applicable (only for sqlite and postgres")
// lndExecutable is the full path to the lnd binary.
lndExecutable = flag.String(
"lndexec", itestLndBinary, "full path to lnd binary",
@@ -95,7 +98,7 @@ func TestLightningNetworkDaemon(t *testing.T) {
// Get the binary path and setup the harness test.
binary := getLndBinary(t)
harnessTest := lntest.SetupHarness(
t, binary, *dbBackendFlag, feeService,
t, binary, *dbBackendFlag, *nativeSQLFlag, feeService,
)
defer harnessTest.Stop()