ares_prefix=/opt/ares
-include Makefile.inc
+-include ../Makefile.inc
VPATH=${top_srcdir}/src:${top_srcdir}/test
AT3=perl -I${top_srcdir}/project ${top_srcdir}/project/at3
stage: compile
$(MAKE) install PREFIX=${stagedir}
-check: check.parse check.gss check.il
+check: compile check.parse check.gss check.il
-check.parse: parse.cpp
+check.parse: test_parse
+ ./test_parse
+
+test_parse: parse.cpp
${CXX} -c ${CFLAGS} ${TEST_INC} $<
- ${LINKXX} -o $@ parse.o ${LTLIB} ${TEST_LIBS}
+ ${LINKXX} -o test_parse parse.o ${LTLIB} ${TEST_LIBS}
check.gss: test_gss
# ./test_gss
test_gss: test_gss.o
${LINKXX} -o $@ test_gss.o ${LTLIB} ${TEST_LIBS}
-il_test: il_test.o il_int_test.o il_string_test.o il_string.o il_int.o
+il_test: il_test.o il_int_test.o il_string_test.o
${LINKXX} -o $@ ${LTLIB} ${TEST_LIBS} $+
+test_coverage:
+ -mkdir coverage
+ cd coverage && $(MAKE) -f ../Makefile top_srcdir=../../ COVERAGE_FLAGS="-fprofile-arcs -ftest-coverage" check
+ cd coverage && for i in ${OBJS}; do gcov -o .libs/ $$i ; done
+
dist: distsrc distbin
distsrc:
edg_wll_GssStatus stat;
struct sockaddr_in a;
socklen_t alen = sizeof(a);
- char * cred_file = getenv("X509_USER_PROXY");
+ char * cred_file = NULL;
timeout.tv_sec = 10;
timeout.tv_usec = 0;
- CPPUNIT_ASSERT(cred_file);
+ cred_file = getenv("X509_USER_PROXY");
+ CPPUNIT_ASSERT_MESSAGE("credential file", cred_file);
if (edg_wll_gss_acquire_cred_gsi(cred_file, &my_cred, &my_subject, &stat))
CPPUNIT_ASSERT_MESSAGE("gss_acquire_cred", 0);