From bf242efd1df37922fe1013426fcf6f027c25e518 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 9 Jun 2023 12:13:38 -0400 Subject: [PATCH] LibWeb: Remove outdated layout/text test scripts These are superseded by headless-browser running these tests in a single process, and aren't used by CI anymore. It's a bit confusing having them still around so let's be rid of them. --- Tests/LibWeb/Layout/layout_test.sh | 28 ---------------------------- Tests/LibWeb/Text/text_test.sh | 28 ---------------------------- 2 files changed, 56 deletions(-) delete mode 100755 Tests/LibWeb/Layout/layout_test.sh delete mode 100755 Tests/LibWeb/Text/text_test.sh diff --git a/Tests/LibWeb/Layout/layout_test.sh b/Tests/LibWeb/Layout/layout_test.sh deleted file mode 100755 index 7b08006394..0000000000 --- a/Tests/LibWeb/Layout/layout_test.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -set -eo pipefail - -SCRIPT_DIR="$(cd -P -- "$(dirname -- "${0}")" && pwd -P)" -LADYBIRD_BUILD_DIR="${1}" - -if [[ -z "${LADYBIRD_BUILD_DIR}" ]] ; then - echo "Provide path to the Ladybird build directory" - exit 1 -fi - -BROWSER_BINARY="headless-browser" - -find "${SCRIPT_DIR}/input/" -type f -name "*.html" -print0 | while IFS= read -r -d '' input_html_path; do - input_html_file=${input_html_path/${SCRIPT_DIR}"/input/"/} - input_html_file=${input_html_file/".html"/} - - output_layout_dump=$(cd "${LADYBIRD_BUILD_DIR}"; timeout 300s "../bin/${BROWSER_BINARY}" --layout-test-mode -d "${input_html_path}") - expected_layout_dump_path="${SCRIPT_DIR}/expected/${input_html_file}.txt" - - if cmp <(echo "${output_layout_dump}") "${expected_layout_dump_path}"; then - echo "${input_html_file} PASSED" - else - echo "${input_html_file} FAILED" - diff -u "${expected_layout_dump_path}" <(echo "${output_layout_dump}") - fi -done diff --git a/Tests/LibWeb/Text/text_test.sh b/Tests/LibWeb/Text/text_test.sh deleted file mode 100755 index 2abeb345ed..0000000000 --- a/Tests/LibWeb/Text/text_test.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -set -eo pipefail - -SCRIPT_DIR="$(cd -P -- "$(dirname -- "${0}")" && pwd -P)" -LADYBIRD_BUILD_DIR="${1}" - -if [[ -z "${LADYBIRD_BUILD_DIR}" ]] ; then - echo "Provide path to the Ladybird build directory" - exit 1 -fi - -BROWSER_BINARY="headless-browser" - -find "${SCRIPT_DIR}/input/" -type f -name "*.html" -print0 | while IFS= read -r -d '' input_html_path; do - input_html_file=${input_html_path/${SCRIPT_DIR}"/input/"/} - input_html_file=${input_html_file/".html"/} - - output_text_dump=$(cd "${LADYBIRD_BUILD_DIR}"; timeout 300s "../bin/${BROWSER_BINARY}" --dump-text "${input_html_path}") - expected_text_dump_path="${SCRIPT_DIR}/expected/${input_html_file}.txt" - - if cmp <(echo "${output_text_dump}") "${expected_text_dump_path}"; then - echo "${input_html_file} PASSED" - else - echo "${input_html_file} FAILED" - diff -u "${expected_text_dump_path}" <(echo "${output_text_dump}") - fi -done