qt5base-lts/tests/manual/wasm/qwasmwindow/run.sh
Mikolaj Boc a85b658469 Polish the qwasmwindow manual test
Change-Id: I9d21404bcf6da7650ec63ef41d5134bb89485a84
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-02-22 13:47:14 +01:00

24 lines
429 B
Bash
Executable File

#! /bin/bash
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
set -m
function removeServer()
{
[ -z "$cleanupPid" ] || kill $cleanupPid
}
trap removeServer EXIT
script_dir=`dirname ${BASH_SOURCE[0]}`
cd "$script_dir"
python3 qtwasmserver.py -p 8001 > /dev/null 2>&1 &
cleanupPid=$!
python3 qwasmwindow.py $@
echo 'Press any key to continue...' >&2
read -n 1