Skip to content

Commit

Permalink
Merge pull request #192 from ngtcp2/include-path-munit
Browse files Browse the repository at this point in the history
Add include path to munit directory
  • Loading branch information
tatsuhiro-t authored Feb 4, 2024
2 parents 67929ad + 6dd029b commit 970f29d
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 15 deletions.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
1 change: 1 addition & 0 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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@
Expand Down
2 changes: 1 addition & 1 deletion tests/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# include <config.h>
#endif /* HAVE_CONFIG_H */

#include "munit/munit.h"
#include "munit.h"

/* include test cases' include files here */
#include "nghttp3_qpack_test.h"
Expand Down
2 changes: 0 additions & 2 deletions tests/nghttp3_conn_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <stdio.h>
#include <assert.h>

#include "munit/munit.h"

#include "nghttp3_conn.h"
#include "nghttp3_macro.h"
#include "nghttp3_conv.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/nghttp3_conn_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#define MUNIT_ENABLE_ASSERT_ALIASES

#include "munit/munit.h"
#include "munit.h"

extern const MunitSuite conn_suite;

Expand Down
2 changes: 0 additions & 2 deletions tests/nghttp3_conv_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@
#include <stdio.h>
#include <assert.h>

#include "munit/munit.h"

#include "nghttp3_conv.h"
#include "nghttp3_test_helper.h"
2 changes: 0 additions & 2 deletions tests/nghttp3_http_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <stdio.h>
#include <assert.h>

#include "munit/munit.h"

#include "nghttp3_http.h"
#include "nghttp3_macro.h"
#include "nghttp3_test_helper.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/nghttp3_http_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#define MUNIT_ENABLE_ASSERT_ALIASES

#include "munit/munit.h"
#include "munit.h"

extern const MunitSuite http_suite;

Expand Down
2 changes: 0 additions & 2 deletions tests/nghttp3_qpack_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <stdio.h>
#include <stdlib.h>

#include "munit/munit.h"

#include "nghttp3_qpack.h"
#include "nghttp3_macro.h"
#include "nghttp3_test_helper.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/nghttp3_qpack_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#define MUNIT_ENABLE_ASSERT_ALIASES

#include "munit/munit.h"
#include "munit.h"

extern const MunitSuite qpack_suite;

Expand Down
2 changes: 0 additions & 2 deletions tests/nghttp3_tnode_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

#include <stdio.h>

#include "munit/munit.h"

#include "nghttp3_tnode.h"
#include "nghttp3_macro.h"
#include "nghttp3_test_helper.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/nghttp3_tnode_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#define MUNIT_ENABLE_ASSERT_ALIASES

#include "munit/munit.h"
#include "munit.h"

extern const MunitSuite tnode_suite;

Expand Down

0 comments on commit 970f29d

Please sign in to comment.