summaryrefslogtreecommitdiffstats
path: root/scripts/run_functional_tests
blob: 6e6a00a1edb18d639f1d2c7dd72833720ad7dc79 (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
#!/bin/bash

source find_python.sh
cd automation/regression

# Python 2
echo Python2 test
$PYTHON trex_unit_test.py --functional $@
if [ $? -eq 0 ]; then
    printf "\n$PYTHON test succeeded\n\n"
else
    printf "\n*** $PYTHON test failed\n\n"
    exit -1
fi

# Python 3
echo Python3 test
$PYTHON3 trex_unit_test.py --functional $@
if [ $? -eq 0 ]; then
    printf "\n$PYTHON3 test succeeded\n\n"
else
    printf "\n*** $PYTHON3 test failed\n\n"
    exit -1
fi