aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_formats.py
diff options
context:
space:
mode:
authorblasty <blasty@local>2026-08-06 22:05:03 +0200
committerblasty <blasty@local>2026-08-06 22:05:03 +0200
commitebff7caaaf348602422f6943e9de01240a79994e (patch)
treea418bceac8204f1f5914b02f1a2f32fd51b49fc4 /tests/test_formats.py
parentsplash: blasty's transparent logo, and stop guessing the cell aspect (diff)
downloadida-tui-ebff7caaaf348602422f6943e9de01240a79994e.tar.gz
ida-tui-ebff7caaaf348602422f6943e9de01240a79994e.tar.xz
ida-tui-ebff7caaaf348602422f6943e9de01240a79994e.zip
tests: one front door
Fourteen test files, each its own __main__, and no way to run them but from memory -- so in practice you ran the one you were working on and hoped. Worse, nothing said which files need a licensed IDA and a real worker (minutes) and which are pure stdlib (milliseconds), so the cheap ones nobody ran either. tests/run.py runs the lot and prints one table. --fast selects only the suites that need nothing, which is 257 checks in half a second under any python3 -- that's the one you run between edits. The classification lives in the test files, not in a table here that would rot the first time someone adds a test: each declares NEEDS_IDA at module scope and run.py reads it with ast (it can't import them -- they run their suite at import). A file without the marker is a hard error rather than a silent guess.
Diffstat (limited to 'tests/test_formats.py')
-rw-r--r--tests/test_formats.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_formats.py b/tests/test_formats.py
index 1045703..c0ad542 100644
--- a/tests/test_formats.py
+++ b/tests/test_formats.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python3
"""Format sniffing + load-switch construction (pure stdlib, no IDA)."""
+
+#: format sniffing + load switches, pure stdlib.
+#: Read by tests/run.py (--fast skips every NEEDS_IDA file).
+NEEDS_IDA = False
import os
import sys
import tempfile