You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Cleanup tests
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
import unittest
|
||||
|
||||
class TestMath(unittest.TestCase):
|
||||
def test_add(self):
|
||||
self.assertEqual(1 + 1, 2)
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
mydir=$(readlink -f "$0")
|
||||
mydir=$(dirname "$mydir")
|
||||
fs="$mydir"/../../internal_filesystem/
|
||||
cross="$mydir"/../../lvgl_micropython/lib/micropython/mpy-cross/build/mpy-cross
|
||||
|
||||
failed=0
|
||||
while read file; do
|
||||
"$cross" -march=x64 -o /dev/null "$file"
|
||||
exitcode="$?"
|
||||
if [ $exitcode -ne 0 ]; then
|
||||
echo "$file got exitcode $exitcode"
|
||||
failed=$(expr $failed \+ 1)
|
||||
fi
|
||||
done < <(find "$fs" -iname "*.py")
|
||||
|
||||
if [ $failed -ne 0 ]; then
|
||||
echo "ERROR: $failed .py files have syntax errors"
|
||||
exit 1
|
||||
fi
|
||||
+1
-1
@@ -69,7 +69,7 @@ if [ -z "$onetest" ]; then
|
||||
failed=$(expr $failed \+ 1)
|
||||
fi
|
||||
|
||||
done < <( find "$testdir" -iname "*.py" )
|
||||
done < <( find "$testdir" -iname "test_*.py" )
|
||||
else
|
||||
one_test $(readlink -f "$onetest")
|
||||
[ $? -ne 0 ] && failed=1
|
||||
|
||||
Reference in New Issue
Block a user