blob: 6bff48ab1041f924cb37a259b13b8508fa64b71a (
plain) (
blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/bash
source ./.tools/scripts/init.sh
function run_server {
echo "running: $1 --run-once $2"
$1 --run-once $2 2>runlog.txt
export errcode=$?
export teststr=$(cat runlog.txt)
if [[ -n "${teststr}" ]]; then
echo "Errors found in running server $1."
cat runlog.txt
echo "Errors found in running server $1."
exit 1
else
echo "No errors found for server $1."
fi
if [ ${errcode} -ne 0 ]; then
echo "server $1 terminated with exit code ${errcode}"
echo "Test failed"
exit 1
fi
}
do_init_tools
init_configs $1
cd server-data
pwd
ls -la
run_server ./login-server
run_server ./char-server
ARGS="--load-script npc/dev/test.txt "
ARGS="--load-plugin script_mapquit $ARGS --load-script npc/dev/ci_test.txt"
run_server ./map-server "$ARGS"
|