-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor tweaks, dependency update fix, add integration test script
- Loading branch information
Showing
13 changed files
with
79 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
foo! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html> | ||
<p>Hi, welcome to this site. All broken links were removed:</p> | ||
<p><a href="/foo.html">Foo does exist now</a></p> | ||
<p><a href="https://example.org/">Does-exist domain</a></p> | ||
<p>Invalid host</p> | ||
<p>Has no valid protocol</p> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html> | ||
<p>Hi, welcome to this site. This page contains a few broken links:</p> | ||
<p><a href="/foo.html">Foo does not exist</a></p> | ||
<p><a href="https://thisisaninvaliddomainthatshouldnotresultinanythingsensible000.com">Non-existent domain</a></p> | ||
<p><a href="https://invalid_host/baz">Invalid host</a></p> | ||
<p><a href="unknown:protocol">Has no valid protocol</a></p> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html> | ||
<p>Hi, welcome to this site. All broken links were removed:</p> | ||
<p><a href="/foo.html">Foo does exist now</a></p> | ||
<p><a href="https://example.org/">Does-exist domain</a></p> | ||
<p>Invalid host</p> | ||
<p>Has no valid protocol</p> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
./build.sh | ||
#./build.sh | ||
|
||
java \ | ||
-Xmx512M \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env bash | ||
PORT=8000 | ||
|
||
ROOT="$(cd $(dirname "$0") && pwd)" | ||
#set -e -u -x | ||
set -e -u | ||
|
||
export SERVER_PID="" | ||
|
||
_kill() { | ||
echo "SERVER_PID=$SERVER_PID"; | ||
local server_pid="$SERVER_PID" | ||
while [ "$server_pid" != "" ]; do | ||
echo "Killing $server_pid" | ||
local server_pid="$(ps -o pid= "$server_pid")" | ||
if [ "$server_pid" != "" ]; then | ||
echo -n "." | ||
kill $server_pid; | ||
sleep .5 | ||
fi | ||
done | ||
echo "" | ||
} | ||
|
||
_serve() { | ||
cd "$1"; | ||
_kill | ||
dir="$1" | ||
python -m SimpleHTTPServer & | ||
SERVER_PID="$!" | ||
while ! nc -z 127.0.0.1 "$PORT"; do | ||
echo -n "."; sleep .5; | ||
done | ||
echo "$SERVER_PID running in $1" | ||
cd $ROOT | ||
} | ||
|
||
_serve resources/sample-2/with-broken-1 | ||
./run.sh --reset "http://localhost:$PORT/" --report --follow-from-local | ||
_kill | ||
|
||
_serve resources/sample-2/with-broken-2 | ||
./run.sh --reset "http://localhost:$PORT/" --report --follow-from-local | ||
_kill | ||
|
||
_serve resources/sample-2/all-fixed | ||
./run.sh --recheck --report --report-all --follow-from-local | ||
_kill | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters