Commit cd45a441 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Post-merge fixes , define HAVE_RWLOCK_T on Solaris define

DISABLE_MYSQL_THREAD_H for strings
Also, enable unittests for perfschema
parent 6b6f0ca4
...@@ -177,6 +177,10 @@ ELSEIF(CMAKE_SYSTEM MATCHES "HP-UX" AND CMAKE_SYSTEM MATCHES "11") ...@@ -177,6 +177,10 @@ ELSEIF(CMAKE_SYSTEM MATCHES "HP-UX" AND CMAKE_SYSTEM MATCHES "11")
ADD_DEFINITIONS(-DHPUX11) ADD_DEFINITIONS(-DHPUX11)
ENDIF() ENDIF()
IF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
ADD_DEFINITIONS(-DHAVE_RWLOCK_T)
ENDIF()
# Disable warnings in Visual Studio 8 and above # Disable warnings in Visual Studio 8 and above
IF(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7") IF(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7")
#TODO: update the code and remove the disabled warnings #TODO: update the code and remove the disabled warnings
......
...@@ -75,3 +75,7 @@ SET(PERFSCHEMA_SOURCES ha_perfschema.h ...@@ -75,3 +75,7 @@ SET(PERFSCHEMA_SOURCES ha_perfschema.h
) )
MYSQL_ADD_PLUGIN(PERFSCHEMA ${PERFSCHEMA_SOURCES} STORAGE_ENGINE DEFAULT STATIC_ONLY) MYSQL_ADD_PLUGIN(PERFSCHEMA ${PERFSCHEMA_SOURCES} STORAGE_ENGINE DEFAULT STATIC_ONLY)
IF(WITH_PERFSCHEMA_STORAGE_ENGINE AND WITH_UNIT_TESTS)
ENABLE_TESTING()
ADD_SUBDIRECTORY(unittest)
ENDIF()
...@@ -23,17 +23,19 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ...@@ -23,17 +23,19 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
ADD_DEFINITIONS(-DMYSQL_SERVER) ADD_DEFINITIONS(-DMYSQL_SERVER)
LINK_LIBRARIES(perfschema mytap mysys dbug strings) MACRO (PFS_ADD_TEST name)
ADD_EXECUTABLE(${name}-t ${name}-t.cc)
ADD_EXECUTABLE(pfs_instr_class-t pfs_instr_class-t.cc) TARGET_LINK_LIBRARIES(${name}-t mytap perfschema mysys)
ADD_TEST(${name} ${name}-t)
ADD_EXECUTABLE(pfs_instr_class-oom-t pfs_instr_class-oom-t.cc) ENDMACRO()
ADD_EXECUTABLE(pfs_instr-t pfs_instr-t.cc) SET(tests
pfs_instr_class
ADD_EXECUTABLE(pfs_instr-oom-t pfs_instr-oom-t.cc) pfs_instr_class-oom
pfs_instr
ADD_EXECUTABLE(pfs_timer-t pfs_timer-t.cc) pfs_instr-oom
pfs
ADD_EXECUTABLE(pfs-t pfs-t.cc) )
FOREACH(testname ${tests})
PFS_ADD_TEST(${testname})
ENDFOREACH()
...@@ -23,4 +23,7 @@ SET(STRINGS_SOURCES bchange.c bcmp.c bfill.c bmove512.c bmove_upp.c ctype-big5.c ...@@ -23,4 +23,7 @@ SET(STRINGS_SOURCES bchange.c bcmp.c bfill.c bmove512.c bmove_upp.c ctype-big5.c
str2int.c str_alloc.c strcend.c strend.c strfill.c strmake.c strmov.c strnmov.c str2int.c str_alloc.c strcend.c strend.c strfill.c strmake.c strmov.c strnmov.c
strtol.c strtoll.c strtoul.c strtoull.c strxmov.c strxnmov.c xml.c strtol.c strtoll.c strtoul.c strtoull.c strxmov.c strxnmov.c xml.c
my_strchr.c strcont.c strinstr.c strnlen.c strappend.c) my_strchr.c strcont.c strinstr.c strnlen.c strappend.c)
# Avoid dependencies on perschema data defined in mysys
ADD_DEFINITIONS(-DDISABLE_MYSQL_THREAD_H)
ADD_CONVENIENCE_LIBRARY(strings ${STRINGS_SOURCES}) ADD_CONVENIENCE_LIBRARY(strings ${STRINGS_SOURCES})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment