author | Michael Krelin <hacker@klever.net> | 2008-01-20 21:10:23 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-01-20 21:10:23 (UTC) |
commit | d16e79b1c792352eade736e7080c401a6c7ace03 (patch) (side-by-side diff) | |
tree | 545a905ab8ef5c2a2135c17d2f949556b354b842 /test/Makefile.am | |
parent | 9bfb6fadf71c46bf4cb5adabba0c96c32e84c1bc (diff) | |
download | libopkele-d16e79b1c792352eade736e7080c401a6c7ace03.zip libopkele-d16e79b1c792352eade736e7080c401a6c7ace03.tar.gz libopkele-d16e79b1c792352eade736e7080c401a6c7ace03.tar.bz2 |
test part rewritten
* cut down test.cc to only test rfc uri normalization
* redone idiscover to only list discovered endpoints
* added test RP cgi
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | test/Makefile.am | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index b573d55..61e3787 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,16 +1,39 @@ -noinst_PROGRAMS = test idiscover +noinst_PROGRAMS = test idiscover RP.cgi AM_CPPFLAGS=${CPPFLAGS_DEBUG} DEFAULT_INCLUDES = -I${top_builddir} -INCLUDES = -I${top_srcdir}/include/ ${KONFORKA_CFLAGS} ${LIBCURL_CPPFLAGS} +INCLUDES = -I${top_srcdir}/test/ -I${top_builddir}/include/ -I${top_srcdir}/include/ ${KONFORKA_CFLAGS} ${LIBCURL_CPPFLAGS} test_SOURCES = test.cc test_LDADD = ${top_builddir}/lib/libopkele.la -EXTRA_DIST=$(addsuffix .html,$(addprefix html/, \ - empty head-in-body hkn-delegate hkn-server hkn in-body \ - unclosed-head spaced-links spaced-link-attrs 2rels \ - )) +EXTRA_DIST= \ + sqlite.h \ + RP-db.sql idiscover_SOURCES = idiscover.cc idiscover_LDADD = ${top_builddir}/lib/libopkele.la + +if HAVE_SQLITE3 +if HAVE_KINGATE +if HAVE_UUID + +RP_cgi_SOURCES = RP.cc +nodist_RP_cgi_SOURCES = RP-db.cc +RP_cgi_LDADD = ${top_builddir}/lib/libopkele.la \ + ${SQLITE3_LIBS} ${KINGATE_LIBS} ${UUID_LIBS} +RP_cgi_CFLAGS = ${SQLITE3_CFLAGS} ${KINGATE_CFLAGS} ${UUID_CFLAGS} + +RP-db.cc: RP-db.sql + ( \ + echo 'const char * __RP_db_bootstrap = ' && \ + sed -e 's/^/"/' -e 's/$$/"/' $< && \ + echo ';' \ + ) >$@ + +clean-local: + rm -f RP-db.cc + +endif #HAVE_UUID +endif #HAVE_KINGATE +endif #HAVE_SQLITE3 |