32e03b2cdd
Move content from stx-gplv2 into stx-integ Packages will be relocated to stx-integ: base/ bash cgcs-users cluster-resource-agents dpkg haproxy libfdt netpbm rpm database/ mariadb filesystem/ iscsi-initiator-utils filesystem/drbd/ drbd-tools kernel/kernel-modules/ drbd integrity intel-e1000e intel-i40e intel-i40evf intel-ixgbe intel-ixgbevf qat17 tpmdd ldap/ ldapscripts networking/ iptables net-tools Change-Id: Ibc2ad09bef7a7f40e337513a1694a22f38d7f4e9 Story: 2002801 Task: 22687 Signed-off-by: Scott Little <scott.little@windriver.com>
27 lines
640 B
C
27 lines
640 B
C
/* simple test program to see if we can link the embedded server library */
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
|
|
#include "mysql.h"
|
|
|
|
MYSQL *mysql;
|
|
|
|
static char *server_options[] = \
|
|
{ "mysql_test", "--defaults-file=my.cnf", NULL };
|
|
int num_elements = (sizeof(server_options) / sizeof(char *)) - 1;
|
|
|
|
static char *server_groups[] = { "libmysqld_server",
|
|
"libmysqld_client", NULL };
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
mysql_library_init(num_elements, server_options, server_groups);
|
|
mysql = mysql_init(NULL);
|
|
mysql_close(mysql);
|
|
mysql_library_end();
|
|
|
|
return 0;
|
|
}
|