blob: 66472ff5139fd81e996310fafddbac3c7e480b0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
if [ "$(uname)" = "SerenityOS" ]; then
js_program=/bin/test-js
test_root=/home/anon/js-tests
else
[ -z "$js_program" ] && js_program="$SERENITY_ROOT/Build/Meta/Lagom/test-js"
test_root="$SERENITY_ROOT/Libraries/LibJS/Tests"
# Enable back traces if sanitizers are enabled
export UBSAN_OPTIONS=print_stacktrace=1
fi
# FIXME: Support "find -name" in Serenity to remove the file name checks below
test_files_tmp=$(find . -type f | cut -b 3- | sort)
for f in $test_files_tmp; do
if [ "$f" = "test-common.js" ] || [ "$f" = "run-tests.sh" ]; then
continue
fi
test_files=("${test_files[@]}" "$f");
done
$js_program "$test_root" "${test_files[@]}"
exit $!
|