citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 99680fd3ecb0a577fb693003f5e1acbd6c63a03b
parent bb18d3980a810b67abd7f456dc004733994ba951
Author: Kyle Milz <kyle@0x30.net>
Date:   Fri, 16 Dec 2016 01:24:21 -0700

t: move link test from www/t/

Diffstat:
At/www_links.sh | 14++++++++++++++
Dwww/t/link_check.t | 11-----------
2 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/t/www_links.sh b/t/www_links.sh @@ -0,0 +1,14 @@ +#!/bin/sh -u +# +# Test that all html links on the website work. +# +. t/libtap.subr +plan 1 + +# --spider: don't download the page +# -r: recursive retrieval +# -nd: don't create local dirs +# -nv: turn off extra downloading output +# -H: span accross hosts +# -l: recursion level +ok "is no broken links" wget --spider -r -nd -nv -l 1 http://cit.run diff --git a/www/t/link_check.t b/www/t/link_check.t @@ -1,11 +0,0 @@ -use strict; -use Test::More tests => 1; - -# --spider: don't download the page -# -r: recursive retrieval -# -nd: don't create local dirs -# -nv: turn off extra downloading output -# -H: span accross hosts -# -l: recursion level -my $ret = system( "wget --spider -r -nd -nv -H -l 1 http://cit.run" ); -is( $ret, 0, "http://cit.run/ has no broken links" );