home · contact · privacy
Add test for .links files.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 25 Jan 2017 01:48:44 +0000 (02:48 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 25 Jan 2017 01:48:44 +0000 (02:48 +0100)
test.sh

diff --git a/test.sh b/test.sh
index ab23cf8a299229e7ce9b96db75597bcd1671991c..ce50d29a7a50aef30fa56e48c973e663a2276336 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -91,6 +91,14 @@ for file in "$expected_files_dir"/metadata/*; do
   diff_test "$file" "$cmp_file"
 done
 
+# Compare .links files.
+cd "$working_dir"
+for file in "$expected_files_dir"/*.links "$expected_files_dir"/*.captcha; do
+  basename=$(basename "$file")
+  cmp_file="$generated_files_dir/$basename"
+  diff_test "$file" "$cmp_file"
+done
+
 # Compare generated HTML files. Ignore variable dates.
 for file in "$expected_files_dir"/*.html.ignoring; do
   basename=$(basename "$file")