# Pull in global dependencies.
. ./helpers.sh
metadata_dir=metadata
+captchas_dir=captchas
meta_file="${metadata_dir}/${1%.html}.automatic_metadata"
redo-ifchange "$meta_file"
intermediate_file="${metadata_dir}/${1%.html}.intermediate"
redo-ifchange "$linkback_tmpl_file"
replies_file="${1%.html}.links"
redo-ifchange "$replies_file"
+captcha_file="$captchas_dir/${1%.html}"
+redo-ifchange "$captcha_file"
# Build entry data.
blog_title=$(read_and_escape_file "$title_file" | head -1 | prep_sed)
# Compare .links files.
cd "$working_dir"
-for file in "$expected_files_dir"/*.links "$expected_files_dir"/*.captcha; do
+for file in "$expected_files_dir"/*.links; do
basename=$(basename "$file")
cmp_file="$generated_files_dir/$basename"
diff_test "$file" "$cmp_file"
done
+# Compare captcha files.
+cd "$working_dir"
+for file in "$expected_files_dir"/captchas/*; do
+ basename=$(basename "$file")
+ cmp_file="$generated_files_dir/captchas/$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")