From 7849f6d516ab555c83ae9d979c71e874383b9c17 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 25 Jan 2017 02:48:44 +0100
Subject: [PATCH] Add test for .links files.

---
 test.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test.sh b/test.sh
index ab23cf8..ce50d29 100755
--- 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")
-- 
2.30.2