aboutsummaryrefslogtreecommitdiff
path: root/llvm_tools/llvm_next_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm_tools/llvm_next_test.py')
-rwxr-xr-xllvm_tools/llvm_next_test.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm_tools/llvm_next_test.py b/llvm_tools/llvm_next_test.py
new file mode 100755
index 00000000..a4e6a395
--- /dev/null
+++ b/llvm_tools/llvm_next_test.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python3
+# Copyright 2024 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Tests for llvm_next."""
+
+import unittest
+
+import llvm_next
+
+
+class Test(unittest.TestCase):
+ """Tests for llvm_next."""
+
+ def test_all_cls_have_patchesets(self):
+ cls = [llvm_next.DISABLE_WERROR_CL]
+ cls += llvm_next.LLVM_NEXT_TESTING_CLS
+ for cl in cls:
+ self.assertIsNotNone(cl.patch_set, f"CL {cl} needs a patch-set")
+
+
+if __name__ == "__main__":
+ unittest.main()