blob: 783d6346f3cc693aea7eadb461ed9d3d1deb0994 (
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
|
#!/bin/bash
source find_python.sh
cd automation/regression
if [ -z "$PYTHON" ]; then
echo "*** $PYTHON - python version is too old, 2.7 at least is required"
else
$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
fi
if [ -z "$PYTHON3" ]; then
echo "*** $PYTHON3 - python3 version required is 3.4 - skipping python3 test"
else
$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
fi
|