X Tutup
Skip to content

Commit bb9f8b2

Browse files
author
Sebastiano Merlino
committed
Moved tests to integ subdir and added new tests
1 parent e8331e3 commit bb9f8b2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

test/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/httpserver/
2121
METASOURCES = AUTO
2222
check_PROGRAMS = basic
2323

24-
basic_SOURCES = basic.cpp
24+
basic_SOURCES = integ/basic.cpp
2525

2626
noinst_HEADERS = littletest.hpp
2727
AM_CXXFLAGS += -lcurl -Wall -fPIC

test/basic.cpp renamed to test/integ/basic.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,13 @@ LT_BEGIN_AUTO_TEST(basic_suite, only_render)
323323
LT_ASSERT_EQ(res, 0);
324324
curl_easy_cleanup(curl);
325325

326+
curl = curl_easy_init();
327+
curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/base");
328+
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "NOT_EXISTENT");
329+
res = curl_easy_perform(curl);
330+
LT_ASSERT_EQ(res, 0);
331+
curl_easy_cleanup(curl);
332+
326333
curl = curl_easy_init();
327334
curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/base");
328335
curl_easy_setopt(curl, CURLOPT_POST, 1L);

0 commit comments

Comments
 (0)
X Tutup