mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
a68b134e6d
These are standalone applications meant to be run by the user directly, as opposed to other libexec processes which are programmatically forked by the browser. To do this, we simply remove these processes from the `ladybird_helper_processes` list. We must also explicitly list the dependencies for these processes.
20 lines
466 B
Bash
Executable file
20 lines
466 B
Bash
Executable file
#!/bin/bash
|
|
set +e
|
|
|
|
t=$1
|
|
if echo -n $t | grep ^file: ; then
|
|
t=$(echo -n $t | sed s@^file://@@)
|
|
fi
|
|
|
|
if echo -n $t | grep Layout ; then
|
|
mode_flag="-d"
|
|
else
|
|
mode_flag="-T"
|
|
fi
|
|
|
|
input_dir=$(dirname $t)
|
|
expected_dir=$(echo $input_dir | sed s/input/expected/)
|
|
test_name=$(basename $t .html)
|
|
cd $SERENITY_SOURCE_DIR/Build/lagom
|
|
mkdir -p $expected_dir
|
|
./bin/headless-browser $mode_flag --layout-test-mode $input_dir/$test_name.html > $expected_dir/$test_name.txt
|