Commit 35e1d653 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

unittest: framework for unit-testing

This is the first approach at doing fairly clean and easy to write and
debug unit tests.
parent 45cea719
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#                            | (__| |_| |  _ <| |___
#                             \___|\___/|_| \_\_____|
#
# Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -2911,6 +2911,7 @@ AC_CONFIG_FILES([Makefile \
           tests/data/Makefile \
           tests/server/Makefile \
           tests/libtest/Makefile \
           tests/unit/Makefile \
           packages/Makefile \
           packages/Win32/Makefile \
           packages/Win32/cygwin/Makefile \
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#                            | (__| |_| |  _ <| |___
#                             \___|\___/|_| \_\_____|
#
# Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -29,7 +29,7 @@ EXTRA_DIST = ftpserver.pl httpserver.pl secureserver.pl runtests.pl getpart.pm \
 CMakeLists.txt certs/scripts/*.sh certs/Server* certs/EdelCurlRoot* \
 serverhelp.pm tftpserver.pl rtspserver.pl directories.pm symbol-scan.pl

SUBDIRS = data server libtest
SUBDIRS = data server libtest unit

PERLFLAGS = -I$(srcdir)

+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
 test1108 test1109 test1110 test1111 test1112 test129 test567 test568	   \
 test569 test570 test571 test572 test804 test805 test806 test807 test573   \
 test313 test1115 test578 test579 test1116 test1200 test1201 test1202	   \
 test1203 test1117 test1118 test1119 test1120
 test1203 test1117 test1118 test1119 test1120 test1300

filecheck:
	@mkdir test-place; \

tests/data/test1300

0 → 100644
+30 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
unittest
</keywords>
</info>

#
# Client-side
<client>
<server>
none
</server>
 <name>
llist unit tests
 </name>
<tool>
unit1300
</tool>
<command>
unit1300
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>

</verify>
</testcase>
+1 −0
Original line number Diff line number Diff line
@@ -164,3 +164,4 @@ lib573_SOURCES = lib573.c $(SUPPORTFILES) $(TESTUTIL)
lib578_SOURCES = lib578.c $(SUPPORTFILES)

lib579_SOURCES = lib579.c $(SUPPORTFILES)
Loading