added mig_meow rule creation
This commit is contained in:
21
tests/test_all.sh
Executable file
21
tests/test_all.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Need to more to local dir to run tests
|
||||
starting_working_dir=$(pwd)
|
||||
script_name=$(basename "$0")
|
||||
script_dir=$(dirname "$(realpath "$0")")
|
||||
|
||||
cd $script_dir
|
||||
|
||||
# Gather all other test files and run pytest
|
||||
search_dir=.
|
||||
for entry in "$search_dir"/*
|
||||
do
|
||||
if [[ $entry == ./test* ]] && [[ $entry != ./$script_name ]];
|
||||
then
|
||||
pytest $entry
|
||||
fi
|
||||
done
|
||||
|
||||
# Move back to where we called from
|
||||
cd $starting_working_dir
|
Reference in New Issue
Block a user