2023-06-01 08:26:33 +02:00
|
|
|
#!/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)
|
2023-06-10 15:48:22 +02:00
|
|
|
cd $SERENITY_SOURCE_DIR/Build/lagom
|
2023-06-01 08:26:33 +02:00
|
|
|
mkdir -p $expected_dir
|
2024-04-19 10:08:44 +02:00
|
|
|
./bin/headless-browser -r $SERENITY_SOURCE_DIR/Build/lagom/share/Lagom $mode_flag --layout-test-mode $input_dir/$test_name.html > $expected_dir/$test_name.txt
|