tests on Windows

Modify the NTMakefile rules for tests so that a failed test does
not prevent subsequent tests from being executed.

Change-Id: I9595ad4a1527feae7c402241bf06ab21a0b76d4a
This commit is contained in:
Jeffrey Altman
2015-03-21 15:44:48 -04:00
parent 2c68305856
commit 902aa4ee02
13 changed files with 94 additions and 76 deletions

View File

@@ -165,7 +165,9 @@ $(OBJ)\test_hdbplugin.exe: $(OBJ)\test_hdbplugin.obj $(LIBHDB) $(LIBHEIMDAL) $(L
test-run:
cd $(OBJ)
test_dbinfo.exe
-test_dbinfo.exe
-test_hdbkeys.exe
-test_hdbplugin.exe
cd $(SRCDIR)
!ifdef OPENLDAP_INC

View File

@@ -61,11 +61,20 @@ static void hdb_test_fini(void *ctx)
struct hdb_method hdb_test =
{
#ifdef WIN32
/* Not c99 */
HDB_INTERFACE_VERSION,
hdb_test_init,
hdb_test_fini,
"test",
hdb_test_create
#else
.version = HDB_INTERFACE_VERSION,
.init = hdb_test_init,
.fini = hdb_test_fini,
.prefix = "test",
.create = hdb_test_create
#endif
};
int