check_permission() {
# Check all files except script
FILES_TO_CHECK=()
- for NON_SCRIPT_FILE in $(git ls-files -- . ':!:nnfw' ':!:*.sh' ':!:*.py'); do
+ for NON_SCRIPT_FILE in $(git ls-files -- . ':!:nnfw' ':!:nncc' ':!:*.sh' ':!:*.py' ':!:compiler/' ':!:infra/nncc/'); do
FILES_TO_CHECK+=("${NON_SCRIPT_FILE}")
done
DIRECTORIES_NOT_TO_BE_TESTED=$1
# Check c++ files
- CPP_FILES_TO_CHECK=$(git ls-files '*.h' '*.cpp' '*.cc' '*.cl' ':!:runtimes/include/NeuralNetworks.h')
+ CPP_FILES_TO_CHECK=$(git ls-files '*.h' '*.cpp' '*.cc' '*.cl' ':!:runtimes/include/NeuralNetworks.h' ':!:compiler/*' ':!:res/*')
ARR=($CPP_FILES_TO_CHECK)
for s in ${DIRECTORIES_NOT_TO_BE_TESTED[@]}; do
skip=${s#'.'/}/
DIRECTORIES_NOT_TO_BE_TESTED=$1
# Check python files
- PYTHON_FILES_TO_CHECK=$(git ls-files '*.py')
+ PYTHON_FILES_TO_CHECK=$(git ls-files '*.py' ':!:compiler/*' ':!:res/*')
ARR=($PYTHON_FILES_TO_CHECK)
for s in ${DIRECTORIES_NOT_TO_BE_TESTED[@]}; do
skip=${s#'.'/}/