xref: /haiku/src/tests/servers/app/run.sh (revision 0fae96c5a349db3761ac2a4ab4a7fbbf23a3b76c)
1#!/bin/sh
2
3if [ ! -f test_app_server ]; then
4	echo "You need to \"TARGET_PLATFORM=libbe_test jam -q install-test-apps\" first."
5	echo "Afterwards, make sure you head to the folder with the test_app_server and run the script installed there."
6	echo "If you need additional help, check in the \"NOTES\" file."
7	exit
8fi
9
10# launch registrar
11run_test_registrar || exit
12
13# launch app_server
14test_app_server &
15
16if [ "$#" -eq 0 ]; then
17	# no argument given, don't start any apps
18	exit
19elif [ "$1" = "-o" ]; then
20	open .
21	shift
22fi
23
24sleep 1
25
26for i in $@; do
27	$i &
28done
29