build-tests: $(TEST_OBJECTS)
# rule to compile files in src directory
-$(OBJDIR)/%.o: $(SRCDIR)/%.c
+$(OBJDIR)/%.o: %.c
$(CC) -c -o $@ $<
# Make a build directory
$(CC) -o $(TESTDIR)/$@ $(OBJDIR)/$@.o $(OBJECTS) $(LIBS)
copy-script:
- cp $(SRCDIR)/$(SCRIPT_NAME) $(DSTDIR)/$(SCRIPT_NAME)
+ cp $(SCRIPT_NAME) $(DSTDIR)/$(SCRIPT_NAME)
success-message:
@echo
-#include "test_ccapi_ccache.h"
#include <string.h>
#include <stdlib.h>
#include "test_ccapi_check.h"
#include "test_ccapi_util.h"
#include "test_ccapi_context.h"
+#include "test_ccapi_ccache.h"
// ---------------------------------------------------------------------------
#ifndef _TEST_CCAPI_CCACHE_H_
#define _TEST_CCAPI_CCACHE_H_
-#include <CredentialsCache.h>
-
+#include "test_ccapi_globals.h"
int check_cc_ccache_release();
cc_int32 check_once_cc_ccache_release(cc_context_t context, cc_ccache_t ccache, cc_int32 expected_err, const char *description);
#ifndef _TEST_CCAPI_CONTEXT_H_
#define _TEST_CCAPI_CONTEXT_H_
-#include <CredentialsCache.h>
+#include "test_ccapi_globals.h"
int check_cc_initialize();
cc_int32 check_once_cc_initialize(cc_context_t *out_context, cc_int32 in_version, cc_int32 *out_supported_version, char const **out_vendor, cc_int32 expected_err, const char *description);
#ifndef _TEST_CCAPI_GLOBALS_H_
#define _TEST_CCAPI_GLOBALS_H_
-#include "CredentialsCache.h"
+#include <krb5.h> // gets us TARGET_OS_MAC
+
+#ifdef TARGET_OS_MAC
+#include <Kerberos/CredentialsCache.h>
+#else
+#include <CredentialsCache.h>
+#endif
/* GLOBALS */
extern unsigned int total_failure_count;
-#include "CredentialsCache.h"
-
+#include "test_ccapi_globals.h"
#include "test_ccapi_iterators.h"
#include "test_ccapi_check.h"
#include "test_ccapi_util.h"
#ifndef _TEST_CCAPI_ITERATORS_H_
#define _TEST_CCAPI_ITERATORS_H_
-#include <CredentialsCache.h>
+#include "test_ccapi_globals.h"
int check_cc_ccache_iterator_next();
cc_int32 check_once_cc_ccache_iterator_next(cc_ccache_iterator_t iterator, cc_uint32 expected_count, cc_int32 expected_err, const char *description);
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
-#include <krb5.h>
#include "test_ccapi_util.h"
#ifndef _TEST_CCAPI_UTIL_H_
#define _TEST_CCAPI_UTIL_H_
-#include <CredentialsCache.h>
#include "test_ccapi_globals.h"
#include "test_ccapi_log.h"