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 cec4782 commit 543d500
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions functions/test_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ test_light_build() {
# EXPECTED OUTPUT
printf "raw-light-test.com\n" >> out_raw.txt
# Domain from excluded source should not be in output
grep -vF "raw-light-test.com" out_raw.txt > out_raw_light.txt
grep -vxF "raw-light-test.com" out_raw.txt > out_raw_light.txt
}

# Function 'TEST_RETRIEVE_VALIDATE' can test both the retrieval process and the
Expand All @@ -289,6 +289,13 @@ TEST_RETRIEVE_VALIDATE() {

# Note removal of domains already in raw file is redundant to test

test_subdomain_removal
test_whitelist_blacklist
test_whitelisted_tld_removal
test_invalid_removal
test_redundant_removal
test_toplist_removal

if [[ "$script_to_test" == 'retrieve' ]]; then
test_manual_addition
test_conversion
Expand All @@ -297,13 +304,6 @@ TEST_RETRIEVE_VALIDATE() {
test_light_build
fi

test_subdomain_removal
test_whitelist_blacklist
test_whitelisted_tld_removal
test_invalid_removal
test_redundant_removal
test_toplist_removal

# Prepare and run retrieval script
if [[ "$script_to_test" == 'retrieve' ]]; then
# Distribute the sample input into various sources
Expand Down

0 comments on commit 543d500

Please sign in to comment.