mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-19 08:50:46 +00:00
Expose repository functions to sharedlibs
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#include "shared.h"
|
||||
|
||||
void test_CreateServerInstance();
|
||||
void test_StopServerInstance();
|
||||
void test_ServerInstanceStateMethods();
|
||||
int test_CreateServerInstance();
|
||||
int test_StopServerInstance();
|
||||
int test_ServerInstanceStateMethods();
|
||||
int test_Databases();
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@@ -21,9 +22,24 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
printf("Running tests for library: %s\n", libPath);
|
||||
test_CreateServerInstance();
|
||||
test_ServerInstanceStateMethods();
|
||||
test_StopServerInstance();
|
||||
int results[] = {
|
||||
test_CreateServerInstance(),
|
||||
test_Databases(),
|
||||
test_ServerInstanceStateMethods(),
|
||||
test_StopServerInstance(),
|
||||
};
|
||||
|
||||
int numTests = sizeof(results) / sizeof(results[0]);
|
||||
int numPassed = 0;
|
||||
for (int i = 0; i < numTests; i++)
|
||||
{
|
||||
if (results[i])
|
||||
{
|
||||
numPassed++;
|
||||
}
|
||||
}
|
||||
|
||||
printf("Tests passed: %d/%d\n", numPassed, numTests);
|
||||
|
||||
dlclose(handle);
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user