sof/scripts/run-mocks.sh

24 lines
395 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2021 Intel Corporation. All rights reserved.
# fail on any errors
set -e
rm -rf build_ut
mkdir build_ut
cd build_ut
cmake -DBUILD_UNIT_TESTS=ON -DBUILD_UNIT_TESTS_HOST=ON ..
make -j$(nproc --all)
TESTS=`find test -type f -executable -print`
echo test are ${TESTS}
for test in ${TESTS}
do
echo got ${test}
./${test}
done