mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +00:00
16 lines
308 B
Bash
16 lines
308 B
Bash
|
#!/bin/bash
|
||
|
##
|
||
|
## A bash script wrapper that runs python unittests
|
||
|
|
||
|
MY_DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||
|
|
||
|
source $MY_DIR/venv/bin/activate
|
||
|
|
||
|
if [ -f "${MY_DIR}/test.py" ]; then
|
||
|
pushd ${MY_DIR}
|
||
|
python -m unittest test.py
|
||
|
popd
|
||
|
else
|
||
|
echo "ERROR: No tests defined for backend!"
|
||
|
exit 1
|
||
|
fi
|