blob: 7cf4e6504f2e24d99096b78a4e58a6858d28a60a [file] [log] [blame]
Martin Cosynsf88ed6e2020-12-02 10:30:10 +01001#!/bin/bash
2# Copyright 2020 ADTRAN, Inc.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14
15python3 -m pip install device-management-interface
16
17# start the fake device manager and catch its pid for terminating
18cd ./tests/servers/dmi
19python3 dmi_server.py &
20dmi_pid=$!
21
22cd ../../..
23
24# run tests ...
25python3 -m robot -N "test" -d $OUTPUT_DIR --nostatusrc tests/test.robot
26
27# terminate the service
28kill -9 $dmi_pid