bel2125
8c723ad0e4
Merge pull request #172 from vcatechnology/port-unit-tests
...
Port Unit Tests
2015-07-15 15:21:20 +02:00
Matt Clarkson
37a9200d85
Ported remove double dots and slashes test
...
This will increase the coverage of the CTest results
2015-07-15 11:23:50 +01:00
Matt Clarkson
cf00506cb7
Ported match prefix test
...
Moving the test from unit_test.c to private.c allows the test to contribute
to the CTest process
2015-07-15 11:23:22 +01:00
bel2125
c301e263e2
Merge pull request #170 from vcatechnology/cache-appveyor-third-party
...
Cache Appveyor built third party code
2015-07-15 00:13:25 +02:00
Matt Clarkson
93f6990543
Cache the built third party code on Appveyor
...
This should speed up and make the Appveyor builds more stable
2015-07-14 22:06:50 +01:00
Matt Clarkson
89c5a1b3ee
Allow specification of third party location
...
This allows the user to specify where to build the third party code.
2015-07-14 21:55:04 +01:00
bel2125
0159dd2530
Merge pull request #169 from vcatechnology/mingw-version-bump
...
MinGW Version Bump
2015-07-14 22:33:54 +02:00
Matt Clarkson
5b4126132f
Add a check target
...
This allows for a user to run 'make check' and all dependencies to be built
2015-07-14 17:35:29 +01:00
Matt Clarkson
a3a0f8a02e
Only update test PATH env on Windows
...
No need to update the path on other operating systems
2015-07-14 17:19:22 +01:00
Matt Clarkson
76ca32f80f
Push artefacts with powershell rather than CLI
...
It looks like there are bugs with the appveyor CLI. The work around is
to use the powershell cmdlets directly.
2015-07-14 17:02:56 +01:00
Matt Clarkson
e93b8a5be4
Use the 5.1.0 version of GCC
...
This is for MinGW builds on Appveyor
2015-07-14 15:29:37 +01:00
bel2125
b1e9fbfe8c
Merge pull request #167 from vcatechnology/appveyor-fix
...
Appveyor fix
2015-07-14 14:46:08 +02:00
Matt Clarkson
4a2e52bfdc
Install files on Appveyor
...
Shows that the installation in CMake works and what files are installed
2015-07-14 11:29:52 +01:00
Matt Clarkson
7334216252
Set the environment of the tests
...
Setting the PATH environment variable to the library output folder
solves false test positives on Windows as the test executable cannot
find the DLL.
2015-07-14 11:29:52 +01:00
Matt Clarkson
6b0ff64379
Simplify adding check tests
...
This adds a macro for automatically adding the check tests
2015-07-14 11:29:51 +01:00
Matt Clarkson
f59cf0a206
Make private tests symbols static
...
When testing the civetweb private APIs we need to make all the public
symbols static so that they do not conflict with the imported shared
library symbols.
2015-07-14 11:29:50 +01:00
Matt Clarkson
72d351d348
Disable C4127 in the unit tests
...
Check uses 'while(0) {}' in it's assert macros. MSVC with /W4 warns
about this.
2015-07-14 11:29:50 +01:00
Matt Clarkson
11a748842b
Move the stdint.h check to the right place
2015-07-14 11:29:49 +01:00
Matt Clarkson
eac0db919a
Upload CMake cache to Appveyor
2015-07-14 11:29:49 +01:00
Matt Clarkson
9151ce4a20
Upload MinGW download log to Appveyor
...
This can help with debugging build errors
2015-07-14 11:29:48 +01:00
Matt Clarkson
1a04ebe805
Fix up log_append in MinGW download script
...
It was incorrectly deleting the file
2015-07-14 11:29:47 +01:00
Matt Clarkson
668cd8a5a9
Add powershell output to MinGW script log
...
This helps with debugging any issues on when downloading MinGW
2015-07-14 11:29:47 +01:00
bel
984cf5d406
Update README
2015-07-13 22:24:37 +02:00
bel2125
e6e9d84f97
Merge pull request #165 from vcatechnology/clang-fix
...
Pass a mutable string in unit test
2015-07-13 21:30:51 +02:00
Matt Clarkson
85edaa484a
Add status badges
...
The project has Travis CI, Appveyor and coveralls support. We should show
the latest results to the visitors of the project
2015-07-13 21:23:05 +02:00
bel
3d95827b21
Update RELEASE NOTES
2015-07-13 21:16:31 +02:00
bel
323c2f1c75
unit test: Add handler to reply with chunked transfer encoding
2015-07-13 21:16:28 +02:00
Matt Clarkson
1d3b987a19
Pass a mutable string in unit test
...
This resolves a clang diagnostics warning due to parse_http_message
accepting 'char *' as it's first argument
2015-07-13 15:25:26 +01:00
bel2125
7d2432e10c
Merge pull request #164 from vcatechnology/unit-tests
...
Porting Unit Tests to CMake
2015-07-13 15:23:17 +02:00
bel2125
353658865e
Merge pull request #162 from vcatechnology/fix-appveyor-dependency
...
Fix Appveyor Dependency
2015-07-13 15:12:10 +02:00
Matt Clarkson
e2efdd804b
Ported parse_http_message unit test
2015-07-13 14:10:12 +01:00
Matt Clarkson
ac48a01b93
Port the mg_get_cookie test
2015-07-13 14:10:12 +01:00
Matt Clarkson
9cd98f0c4c
Add civetweb.h to the public unit tests
...
This is needed for the function declarations that we are going to test
2015-07-13 14:10:12 +01:00
Matt Clarkson
f22a8283e7
Add stdint.h to the check unit test header
...
It seems that the check.h header misses some includes, specifically intmax.h
2015-07-13 14:10:12 +01:00
Matt Clarkson
3728146be3
Fix Appveyor Dependency
...
The mingw-builds downloads need to be flushed whenever the download script
changes. It used to use a python script but has changed to a batch script
2015-07-13 12:30:56 +01:00
bel
bf2d913fd5
Additional unit test for chunked transfer encoding
2015-07-13 01:21:05 +02:00
bel
adbb3a1f3e
More tolerance if content-length is not set correctly
2015-07-13 01:04:37 +02:00
bel
297caa1453
POST request without content length in unit test is a HTTP protocol violation
2015-07-13 00:19:15 +02:00
bel
bcd9f39bb7
Minor adjustments in unit_test.c
2015-07-12 21:50:01 +02:00
bel
89b1df2baf
Initialize all is_* variables in handle_request (fix clang warning)
2015-07-09 22:22:14 +02:00
bel
d61bd2b69c
Fix size_t / ssize_t typo
2015-07-09 22:12:13 +02:00
Matt Clarkson
c655998db7
Cherry pick #147
2015-07-09 21:06:07 +02:00
Matt Clarkson
f3bd3573b6
Travis now uses CMake to build
...
This allows for a standard method to build and test the library.
2015-07-09 21:05:46 +02:00
Matt Clarkson
17532cb843
Build script for Unix systems
...
A helper script to get n00bs going with CMake
2015-07-09 21:05:43 +02:00
Matt Clarkson
ad0f624c79
A batch file for quick builds
...
The batch file allows for the project to be built quickly using the built
in tools of Windows to get the dependencies needed. It automatically
installs CMake if not found. If building with MinGW it installs Python and
uses the script to get MInGW.
A complete fire and forget script to build the project which might help
complete newbies.
2015-07-09 21:05:41 +02:00
Matt Clarkson
0ee4f296eb
Appveyor support
...
This script can build for multiple Visual Studio versions and also any
number of MinGW versions.
2015-07-09 21:05:40 +02:00
Matt Clarkson
6199d6a4fa
Batch script for downloading MinGW
...
The script allows for a specific version of MniGW to be downloaded.
This is useful for testing compilation of the project using MinGW on
Windows build servers
2015-07-09 21:05:38 +02:00
Matt Clarkson
548baf792c
Added check unit tests
...
These use the excellent check unit testing framework to test the
civetweb public API
2015-07-09 21:05:37 +02:00
Matt Clarkson
e03cf46867
CMake build
...
This implements the CMake build for the project using the extra CMake
modules that have previously been added to the project.
2015-07-09 21:05:36 +02:00
Matt Clarkson
b84eda553e
CMake Module for deriving the target architecture
...
This is needed for packaging and other decisions at configuration time
2015-07-09 21:05:35 +02:00