1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

LibJS: Reorganize tests into subfolders

This commit is contained in:
Matthew Olsson 2020-07-02 16:09:21 -07:00 committed by Andreas Kling
parent 21064a1883
commit 4c48c9d69d
213 changed files with 10 additions and 2 deletions

View file

@ -16,11 +16,19 @@ test_count=0
GLOBIGNORE=test-common.js
for f in *.js; do
test_files=$(find . -type f -name "*.js" | cut -c 3- | sort)
for f in $test_files; do
if [ "$f" = "test-common.js" ]; then
continue
fi
(( ++test_count ))
done
for f in *.js; do
for f in $test_files; do
if [ "$f" = "test-common.js" ]; then
continue
fi
result="$("$js_program" "$@" -t "$f" 2>/dev/null)"
if [ "$result" = "PASS" ]; then
(( ++pass_count ))