diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0902c6d..69e2038 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -26,6 +26,7 @@ include_directories( "${CMAKE_SOURCE_DIR}/lib" "${CMAKE_SOURCE_DIR}/lib/includes" + "${CMAKE_SOURCE_DIR}/tests/munit" "${CMAKE_BINARY_DIR}/lib/includes" ) diff --git a/tests/Makefile.am b/tests/Makefile.am index 2adf6de..d9683fe 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -55,6 +55,7 @@ main_LDFLAGS = -static AM_CFLAGS = $(WARNCFLAGS) \ -I${top_srcdir}/lib \ -I${top_srcdir}/lib/includes \ + -I${top_srcdir}/tests/munit \ -I${top_builddir}/lib/includes \ -DBUILDING_NGHTTP3 \ @DEFS@ diff --git a/tests/main.c b/tests/main.c index 70cabdb..b357fca 100644 --- a/tests/main.c +++ b/tests/main.c @@ -28,7 +28,7 @@ # include #endif /* HAVE_CONFIG_H */ -#include "munit/munit.h" +#include "munit.h" /* include test cases' include files here */ #include "nghttp3_qpack_test.h" diff --git a/tests/nghttp3_conn_test.c b/tests/nghttp3_conn_test.c index fcc2a95..d1a253d 100644 --- a/tests/nghttp3_conn_test.c +++ b/tests/nghttp3_conn_test.c @@ -27,8 +27,6 @@ #include #include -#include "munit/munit.h" - #include "nghttp3_conn.h" #include "nghttp3_macro.h" #include "nghttp3_conv.h" diff --git a/tests/nghttp3_conn_test.h b/tests/nghttp3_conn_test.h index 195ae3c..2b21e42 100644 --- a/tests/nghttp3_conn_test.h +++ b/tests/nghttp3_conn_test.h @@ -31,7 +31,7 @@ #define MUNIT_ENABLE_ASSERT_ALIASES -#include "munit/munit.h" +#include "munit.h" extern const MunitSuite conn_suite; diff --git a/tests/nghttp3_conv_test.c b/tests/nghttp3_conv_test.c index bef52eb..6a3d370 100644 --- a/tests/nghttp3_conv_test.c +++ b/tests/nghttp3_conv_test.c @@ -27,7 +27,5 @@ #include #include -#include "munit/munit.h" - #include "nghttp3_conv.h" #include "nghttp3_test_helper.h" diff --git a/tests/nghttp3_http_test.c b/tests/nghttp3_http_test.c index a212252..6e70a66 100644 --- a/tests/nghttp3_http_test.c +++ b/tests/nghttp3_http_test.c @@ -27,8 +27,6 @@ #include #include -#include "munit/munit.h" - #include "nghttp3_http.h" #include "nghttp3_macro.h" #include "nghttp3_test_helper.h" diff --git a/tests/nghttp3_http_test.h b/tests/nghttp3_http_test.h index f9c490d..dc16079 100644 --- a/tests/nghttp3_http_test.h +++ b/tests/nghttp3_http_test.h @@ -31,7 +31,7 @@ #define MUNIT_ENABLE_ASSERT_ALIASES -#include "munit/munit.h" +#include "munit.h" extern const MunitSuite http_suite; diff --git a/tests/nghttp3_qpack_test.c b/tests/nghttp3_qpack_test.c index b7005fd..5b2cfc1 100644 --- a/tests/nghttp3_qpack_test.c +++ b/tests/nghttp3_qpack_test.c @@ -27,8 +27,6 @@ #include #include -#include "munit/munit.h" - #include "nghttp3_qpack.h" #include "nghttp3_macro.h" #include "nghttp3_test_helper.h" diff --git a/tests/nghttp3_qpack_test.h b/tests/nghttp3_qpack_test.h index a974197..bac9826 100644 --- a/tests/nghttp3_qpack_test.h +++ b/tests/nghttp3_qpack_test.h @@ -31,7 +31,7 @@ #define MUNIT_ENABLE_ASSERT_ALIASES -#include "munit/munit.h" +#include "munit.h" extern const MunitSuite qpack_suite; diff --git a/tests/nghttp3_tnode_test.c b/tests/nghttp3_tnode_test.c index 4bcdb53..d03a44d 100644 --- a/tests/nghttp3_tnode_test.c +++ b/tests/nghttp3_tnode_test.c @@ -26,8 +26,6 @@ #include -#include "munit/munit.h" - #include "nghttp3_tnode.h" #include "nghttp3_macro.h" #include "nghttp3_test_helper.h" diff --git a/tests/nghttp3_tnode_test.h b/tests/nghttp3_tnode_test.h index a448e97..23f10c8 100644 --- a/tests/nghttp3_tnode_test.h +++ b/tests/nghttp3_tnode_test.h @@ -31,7 +31,7 @@ #define MUNIT_ENABLE_ASSERT_ALIASES -#include "munit/munit.h" +#include "munit.h" extern const MunitSuite tnode_suite;