blob: ce5b230f6826b5e83988f729e450e1f84b68af78 (
plain)
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
|
#!/bin/bash
# Copyright (C) 2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
FAIL=0
export VSOMEIP_CONFIGURATION=debounce_test_service.json
../../examples/routingmanagerd/routingmanagerd &
PID_VSOMEIPD=$!
sleep 1
./debounce_test_service &
PID_SLAVE=$!
# Wait until all slaves are finished
for job in $PID_SLAVE
do
# Fail gets incremented if a client exits with a non-zero exit code
echo "waiting for $job"
wait $job || FAIL=$(($FAIL+1))
done
# kill the services
kill $PID_VSOMEIPD
sleep 3
# Check if everything went well
exit $FAIL
|