Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/httpd add 'check' target to toplevel makefile.



details:   https://anonhg.NetBSD.org/src/rev/2ea46ae15bad
branches:  trunk
changeset: 838426:2ea46ae15bad
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jan 17 07:39:00 2019 +0000

description:
add 'check' target to toplevel makefile.

fix the t11.out output now that CGI parsing works better.

diffstat:

 libexec/httpd/Makefile          |   5 ++++-
 libexec/httpd/testsuite/t11.out |  10 ++++++++++
 2 files changed, 14 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r fd0a904f2a24 -r 2ea46ae15bad libexec/httpd/Makefile
--- a/libexec/httpd/Makefile    Thu Jan 17 07:34:06 2019 +0000
+++ b/libexec/httpd/Makefile    Thu Jan 17 07:39:00 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.27 2017/05/21 15:28:41 riastradh Exp $
+#      $NetBSD: Makefile,v 1.28 2019/01/17 07:39:00 mrg Exp $
 #
 #      $eterna: Makefile,v 1.30 2010/07/11 00:34:27 mrg Exp $
 #
@@ -77,6 +77,9 @@
 
 CLEANFILES+=   bozohttpd.8.html bozohttpd.8.txt
 
+check:
+       cd ${.CURDIR}/testsuite && ${MAKE} check
+
 # Create a distfile: uses /tmp
 BASE=bozohttpd-${BOZOVER}
 TAR=${BASE}.tar
diff -r fd0a904f2a24 -r 2ea46ae15bad libexec/httpd/testsuite/t11.out
--- a/libexec/httpd/testsuite/t11.out   Thu Jan 17 07:34:06 2019 +0000
+++ b/libexec/httpd/testsuite/t11.out   Thu Jan 17 07:39:00 2019 +0000
@@ -1,1 +1,11 @@
 HTTP/1.1 200 OK
+Content-Type: text/html
+Content-Length: 194
+Server: bozohttpd/20181215
+Allow: GET, HEAD, POST
+
+<html><head><title>404 Not Found</title></head>
+<body><h1>404 Not Found</h1>
+cgi-bin/echo.bat: <pre>This item has not been found</pre>
+<hr><address><a href="// /"> </a></address>
+</body></html>



Home | Main Index | Thread Index | Old Index