versioner: add idempotence test that uses the bionic headers.
Bug: http://b/30170081
Change-Id: Iaf798077518a1a82c626c3b1524633c6df578409
Test: python run_tests.py
diff --git a/tools/versioner/run_tests.py b/tools/versioner/run_tests.py
index be87d6b..f3bb6db 100755
--- a/tools/versioner/run_tests.py
+++ b/tools/versioner/run_tests.py
@@ -53,12 +53,29 @@
print("{} {}".format(prefix_pass, test_name))
return True
+
+def usage():
+ print("Usage: run_tests.py [-f]")
+ print(" -f\t\tdon't run slow tests")
+ sys.exit(0)
+
+
root_dir = os.path.dirname(os.path.realpath(__file__))
test_dir = os.path.join(root_dir, "tests")
tests = os.listdir(test_dir)
+run_slow = True
+
+if len(sys.argv) > 2:
+ usage()
+elif len(sys.argv) == 2:
+ if sys.argv[1] != "-f":
+ usage()
+ run_slow = False
success = True
for test in sorted(tests):
+ if test.startswith("slow") and not run_slow:
+ continue
path = os.path.join(test_dir, test)
if not os.path.isdir(path):
continue