mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
Tests: Enable WPT/run.sh to run an arbitrary subset of tests
The change causes Tests/LibWeb/WPT/run.sh to run an arbitrary subset of tests you give it as arguments. If you don’t specify any arguments, it has the same behavior as it does without this patch: It just runs an explicit subset of test names hardcoded into the script. Otherwise without this change, Tests/LibWeb/WPT/run.sh doesn’t have the ability to run any tests other than the explicit subset of test names hardcoded into the script
This commit is contained in:
parent
7c0aa88e99
commit
cc6d502e88
Notes:
sideshowbarker
2024-07-18 02:44:38 +09:00
Author: https://github.com/sideshowbarker Commit: https://github.com/LadybirdBrowser/ladybird/commit/cc6d502e88f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/653 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 12 additions and 5 deletions
|
@ -36,10 +36,15 @@ for arg in "$@"; do
|
|||
wpt_run_log_filename="$(realpath "${arg#*=}")"
|
||||
shift
|
||||
;;
|
||||
-*)
|
||||
echo "Unknown argument $arg"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unknown argument ${arg}"
|
||||
exit 1
|
||||
;;
|
||||
TEST_FILE=$(realpath "$arg")
|
||||
TEST_FILES+=("$TEST_FILE")
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
@ -73,7 +78,7 @@ fi
|
|||
python3 ./concat-extract-metadata.py --extract metadata.txt metadata
|
||||
|
||||
# Run tests.
|
||||
python3 ./wpt/wpt run ladybird \
|
||||
python3 ./wpt/wpt run \
|
||||
--webdriver-binary "${WEBDRIVER_BINARY}" \
|
||||
--no-fail-on-unexpected \
|
||||
--no-fail-on-unexpected-pass \
|
||||
|
@ -83,7 +88,9 @@ python3 ./wpt/wpt run ladybird \
|
|||
--manifest ./MANIFEST.json \
|
||||
--webdriver-arg="--certificate=${PWD}/wpt/tools/certs/cacert.pem" \
|
||||
--webdriver-arg="--certificate=${LADYBIRD_SOURCE_DIR}/Build/lagom/cacert.pem" \
|
||||
--log-raw "${wpt_run_log_filename}"
|
||||
--log-raw "${wpt_run_log_filename}" \
|
||||
ladybird \
|
||||
${TEST_FILES:+"${TEST_FILES[@]}"}
|
||||
|
||||
# Update expectations metadata files if requested
|
||||
if [[ $update_expectations_metadata == true ]]; then
|
||||
|
|
Loading…
Reference in a new issue