File: __main__.py

package info (click to toggle)
cmake-format 0.6.13-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,436 kB
  • sloc: python: 16,990; makefile: 14
file content (27 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from __future__ import print_function, unicode_literals

import sys
import unittest

# pylint: disable=W0401,W0611,W0614
from cmakelang.lint.test import genfiles
from cmakelang.lint.test.expect_tests import gen_test_classes, ConfigTestCase
from cmakelang.lint.test.execution_tests import TestFormatFiles

if __name__ == "__main__":
  classnames = [
      "ConfigTestCase",
      "TestFormatFiles",
  ]

  classobj = None
  for classobj in gen_test_classes():
    globals()[classobj.__name__] = classobj
    classnames.append(classobj.__name__)
  del classobj

  if len(sys.argv) > 1 and sys.argv[1] == "print-names":
    print("\n".join(sorted(classnames)))
    sys.exit(0)

  unittest.main()