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

This commit is contained in:
Andras Banki-Horvath committed 2024-03-01 10:08:10 +01:00
1 parent 7a45bbbeab
commit ba8e7550d5
6 files changed
+29 -7

No files matched your search

+4 -1
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()