mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 07:50:57 +00:00
core: remove unused script
This commit is contained in:
parent
8d2b32332b
commit
69d936a390
@ -1,26 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
find ../mocks -name '*.py' | sort | while read module; do
|
|
||||||
module=$(echo $module | sed 's:^\.\./mocks/::')
|
|
||||||
base=$(basename $module)
|
|
||||||
# skip __init__.py
|
|
||||||
if [[ $base == "__init__.py" ]]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
# skip everything outside of trezor
|
|
||||||
if [[ $module != trezor* ]]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
# skip classes (uppercase modules)
|
|
||||||
if [[ $base == [ABCDEFGHIJKLMNOPQRSTUVWXYZ]* ]]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
module=$(echo $module | sed -e 's:\.py$::' -e 's:/:.:g')
|
|
||||||
|
|
||||||
if [ -r test_$module.py ]; then
|
|
||||||
echo "OK $module"
|
|
||||||
else
|
|
||||||
echo "MISS $module"
|
|
||||||
missing=$(expr $missing + 1)
|
|
||||||
fi
|
|
||||||
|
|
||||||
done
|
|
Loading…
Reference in New Issue
Block a user