xref: /aosp_15_r20/external/toolchain-utils/llvm_tools/llvm_next_test.py (revision 760c253c1ed00ce9abd48f8546f08516e57485fe)
1#!/usr/bin/env python3
2# Copyright 2024 The ChromiumOS Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""Tests for llvm_next."""
7
8import unittest
9
10import llvm_next
11
12
13class Test(unittest.TestCase):
14    """Tests for llvm_next."""
15
16    def test_all_cls_have_patchesets(self):
17        cls = [llvm_next.DISABLE_WERROR_CL]
18        cls += llvm_next.LLVM_NEXT_TESTING_CLS
19        for cl in cls:
20            self.assertIsNotNone(cl.patch_set, f"CL {cl} needs a patch-set")
21
22
23if __name__ == "__main__":
24    unittest.main()
25