mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[1792] moved rwtest.sqlite3 under lib/testutils so that it can be shared.
it's going to be used in subsequent auth tests.
This commit is contained in:
@@ -106,7 +106,6 @@ EXTRA_DIST += testdata/mkbrokendb.c
|
||||
EXTRA_DIST += testdata/root.zone
|
||||
EXTRA_DIST += testdata/rrset_toWire1
|
||||
EXTRA_DIST += testdata/rrset_toWire2
|
||||
EXTRA_DIST += testdata/rwtest.sqlite3
|
||||
EXTRA_DIST += testdata/sql1.example.com.signed
|
||||
EXTRA_DIST += testdata/sql2.example.com.signed
|
||||
EXTRA_DIST += testdata/test-root.sqlite3
|
||||
|
@@ -1090,7 +1090,7 @@ public:
|
||||
// probably move this to some specialized templated method specific
|
||||
// to SQLite3 (or for even a longer term we should add an API to
|
||||
// purge the diffs table).
|
||||
const char* const install_cmd = INSTALL_PROG " " TEST_DATA_DIR
|
||||
const char* const install_cmd = INSTALL_PROG " " TEST_DATA_COMMONDIR
|
||||
"/rwtest.sqlite3 " TEST_DATA_BUILDDIR
|
||||
"/rwtest.sqlite3.copied";
|
||||
if (system(install_cmd) != 0) {
|
||||
|
@@ -66,7 +66,7 @@ createSQLite3Client(RRClass zclass, const Name& zname,
|
||||
// We always begin with an empty template SQLite3 DB file and install
|
||||
// the zone data from the zone file to ensure both cases have the
|
||||
// same test data.
|
||||
const char* const install_cmd_prefix = INSTALL_PROG " " TEST_DATA_DIR
|
||||
const char* const install_cmd_prefix = INSTALL_PROG " " TEST_DATA_COMMONDIR
|
||||
"/rwtest.sqlite3 ";
|
||||
const string install_cmd = string(install_cmd_prefix) + db_file;
|
||||
if (system(install_cmd.c_str()) != 0) {
|
||||
|
1
src/lib/testutils/testdata/Makefile.am
vendored
1
src/lib/testutils/testdata/Makefile.am
vendored
@@ -27,6 +27,7 @@ EXTRA_DIST += rfc5155-example.zone.signed
|
||||
|
||||
EXTRA_DIST += example.com
|
||||
EXTRA_DIST += example.sqlite3
|
||||
EXTRA_DIST += rwtest.sqlite3 # SQLite3 DB file as a template data source
|
||||
|
||||
EXTRA_DIST += test1.zone.in
|
||||
EXTRA_DIST += test1-new.zone.in
|
||||
|
0
src/lib/datasrc/tests/testdata/rwtest.sqlite3 → src/lib/testutils/testdata/auth_test.sqlite3
vendored
Normal file → Executable file
0
src/lib/datasrc/tests/testdata/rwtest.sqlite3 → src/lib/testutils/testdata/auth_test.sqlite3
vendored
Normal file → Executable file
BIN
src/lib/testutils/testdata/auth_test.sqlite3.copied
vendored
Executable file
BIN
src/lib/testutils/testdata/auth_test.sqlite3.copied
vendored
Executable file
Binary file not shown.
BIN
src/lib/testutils/testdata/rwtest.sqlite3
vendored
Normal file
BIN
src/lib/testutils/testdata/rwtest.sqlite3
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user