summaryrefslogtreecommitdiff
path: root/test/network_tests/big_payload_tests/big_payload_test_local_tcp_service_start.sh
blob: 5bc73fc7e5cfdc05a8523cba1e6750b49cb39ef4 (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
#!/bin/bash
# Copyright (C) 2015-2017 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/.

if [[ $# -gt 0 && $1 != "RANDOM" && $1 != "LIMITED" && $1 != "QUEUELIMITEDGENERAL" ]]
then
    echo "The only allowed parameter to this script is RANDOM, LIMITED or QUEUELIMITEDGENERAL"
    echo "Like $0 RANDOM"
    exit 1
fi

# Start the service
if [[ $# -gt 0 && $1 == "RANDOM" ]]; then
    export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_service_random.json
elif [[ $# -gt 0 && $1 == "LIMITED" ]]; then
    export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_service_limited.json
elif [[ $# -gt 0 && $1 == "QUEUELIMITEDGENERAL" ]]; then
    export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_service_queue_limited.json
else
    export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_service.json
fi
./big_payload_test_service $1