mirror of https://github.com/mudler/LocalAI.git
16 lines
308 B
Bash
Executable File
16 lines
308 B
Bash
Executable File
#!/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 |