Fixed tests not having environment variables set.
This commit is contained in:
parent
c4006d43c2
commit
094dfbd4f7
@ -25,8 +25,8 @@ target_link_libraries(test_service fullcore)
|
||||
target_link_libraries(test_server fullcore)
|
||||
target_link_libraries(test_users fullcore)
|
||||
target_link_libraries(test_adminusers fullcore)
|
||||
add_test(testMySQLUsers test_mysql_users)
|
||||
target_link_libraries(testmemlog fullcore)
|
||||
add_test(testMySQLUsers test_mysql_users)
|
||||
add_test(TestHash test_hash)
|
||||
add_test(TestHint test_hint)
|
||||
add_test(TestSpinlock test_spinlock)
|
||||
@ -35,8 +35,22 @@ add_test(TestBuffer test_buffer)
|
||||
add_test(TestDCB test_dcb)
|
||||
add_test(TestModutil test_modutil)
|
||||
add_test(TestPoll test_poll)
|
||||
add_test(TestService /bin/sh -c " MAXSCALE_HOME=${CMAKE_BINARY_DIR} && ${CMAKE_CURRENT_BINAR_DIR}/test_service")
|
||||
add_test(TestService test_service)
|
||||
add_test(TestServer test_server)
|
||||
add_test(TestUsers test_users)
|
||||
add_test(TestAdminUsers test_adminusers)
|
||||
add_test(TestMemlog testmemlog)
|
||||
set_tests_properties(testMySQLUsers
|
||||
TestHash
|
||||
TestHint
|
||||
TestSpinlock
|
||||
TestFilter
|
||||
TestBuffer
|
||||
TestDCB
|
||||
TestModutil
|
||||
TestPoll
|
||||
TestService
|
||||
TestServer
|
||||
TestUsers
|
||||
TestAdminUsers
|
||||
TestMemlog PROPERTIES ENVIRONMENT MAXSCALE_HOME=${CMAKE_BINARY_DIR}/)
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <string.h>
|
||||
#include <maxscale_test.h>
|
||||
#include <service.h>
|
||||
|
||||
#include <poll.h>
|
||||
/**
|
||||
* test1 Allocate a service and do lots of other things
|
||||
*
|
||||
@ -52,7 +52,7 @@ char* argv[] = {
|
||||
NULL
|
||||
};
|
||||
skygw_logmanager_init(argc,argv);
|
||||
|
||||
poll_init();
|
||||
/* Service tests */
|
||||
ss_dfprintf(stderr,
|
||||
"testservice : creating service called MyService with router nonexistent");
|
||||
|
Loading…
x
Reference in New Issue
Block a user