]> git.ipfire.org Git - thirdparty/kea.git/commit
[4239] MySQL unit tests in dhcpsrv now use production db create script
authorThomas Markwalder <tmark@isc.org>
Fri, 8 Apr 2016 13:43:22 +0000 (09:43 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 8 Apr 2016 13:43:22 +0000 (09:43 -0400)
commit9c26b5fa57c940c129066ea218d14902ae117d47
tree04e3419bcb9f7d98edd3df11112ba32043f87468
parent9e080995076560afcfb746be76542f161d1d12ac
[4239] MySQL unit tests in dhcpsrv now use production db create script

src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    TEST(MySqlOpenTest, OpenDatabase) - pass in show_err=true for call
    to createMySQLSchema()

src/lib/dhcpsrv/testutils/Makefile.am
    - Added definition of TEST_ADMIN_SCRIPTS_DIR
    - removed schema_mysql_copy.h

src/lib/dhcpsrv/testutils/mysql_schema.cc
    - Removed include of schema_mysql_copy.h
    - destroyMySQLSchema() - now contains destroy_statment[] formerly
    defined in schema_mysql_copy.h
    - createMySQLSchema() - Creates the database through command line
    invocation of MySQL cli, mysql, passing it the production database
    creation script
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
src/lib/dhcpsrv/testutils/Makefile.am
src/lib/dhcpsrv/testutils/mysql_schema.cc
src/lib/dhcpsrv/testutils/mysql_schema.h
src/lib/dhcpsrv/testutils/schema_mysql_copy.h [deleted file]