cmvr_head/packages/erpc-1.14.0/run_tests.sh
2025-12-30 15:44:41 +08:00

18 lines
348 B
Bash

#!/bin/bash
# exit when any command fails
set -e
make clean
if [ "$1" = "clang" ]; then
echo "Compiling by clang compiler."
CC=clang CXX=clang++ make all
python3 test/run_unit_tests.py clang
else
echo "Compiling by default gnu compiler."
CC=gcc CXX=g++ make all
python3 test/run_unit_tests.py gcc
fi
pytest erpcgen/test/