Skip to content

Commit

Permalink
Moved tests to integ subdir and added new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastiano Merlino committed Apr 19, 2014
1 parent e8331e3 commit bb9f8b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Makefile.am
Expand Up @@ -21,7 +21,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/httpserver/
METASOURCES = AUTO
check_PROGRAMS = basic

basic_SOURCES = basic.cpp
basic_SOURCES = integ/basic.cpp

noinst_HEADERS = littletest.hpp
AM_CXXFLAGS += -lcurl -Wall -fPIC
Expand Down
7 changes: 7 additions & 0 deletions test/basic.cpp → test/integ/basic.cpp
Expand Up @@ -323,6 +323,13 @@ LT_BEGIN_AUTO_TEST(basic_suite, only_render)
LT_ASSERT_EQ(res, 0);
curl_easy_cleanup(curl);

curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/base");
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "NOT_EXISTENT");
res = curl_easy_perform(curl);
LT_ASSERT_EQ(res, 0);
curl_easy_cleanup(curl);

curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/base");
curl_easy_setopt(curl, CURLOPT_POST, 1L);
Expand Down

0 comments on commit bb9f8b2

Please sign in to comment.