Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 1, 2024
1 parent b9d7d4b commit bb1ccc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/test_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ TEST_BUILD() {
printf "%s\n" "$domain" >> "$RAW"
cp "$RAW" "$RAW_LIGHT"

run_script build_lists.sh || exit 1
run_script build_lists.sh

check_list "||${domain}^" adblock
check_list "local=/${domain}/" dnsmasq
check_list "local-zone: \"${domain}.\" always_nxdomain" unbound
check_list "*.${domain}" wildcard_asterisk
check_list "${domain}" wildcard
check_list "${domain}" wildcard_domains

if [[ "$error" == true ]]; then
printf "\n"
Expand All @@ -274,7 +274,7 @@ check_list() {
# Check regular version
if grep -qxF "$1" "lists/${2}/scams.txt"; then
printf "\e[1m[warn] %s format is not as expected:\e[0m\n" "$2"
grep -F "$domain" "lists/${2}/scams_light.txt"
grep -F "$domain" "lists/${2}/scams.txt"
error=true
fi

Expand Down

0 comments on commit bb1ccc7

Please sign in to comment.