Ejemplo n.º 1
0
 def test_Ninja_Release_stdlib_ReleaseAssert(self):
     # build-script -R --no-assertions --swift-stdlib-assertions
     args = self.create_basic_args(
         "Ninja", variant="Release", assertions=False)
     args.swift_stdlib_assertions = True
     self.assertEqual(compute_build_subdir(args),
                      "Ninja-Release+stdlib-ReleaseAssert")
Ejemplo n.º 2
0
 def generate():
     for c in productions:
         args = argparse.Namespace(cmake_generator="Ninja",
                                   enable_asan=False)
         for key, val in zip(keys, c):
             setattr(args, key, val)
         yield compute_build_subdir(args)
Ejemplo n.º 3
0
 def test_Ninja_Release(
         self):  # noqa (N802 function name should be lowercase)
     # build-script -R --no-assertions
     args = self.create_basic_args("Ninja",
                                   variant="Release",
                                   assertions=False)
     self.assertEqual(compute_build_subdir(args), "Ninja-Release")
Ejemplo n.º 4
0
 def test_Unix_Makefiles_ReleaseAssert(self):
     # build-script -R -m
     args = self.create_basic_args("Unix Makefiles",
                                   variant="Release",
                                   assertions=True)
     self.assertEqual(compute_build_subdir(args),
                      "Unix_Makefiles-ReleaseAssert")
Ejemplo n.º 5
0
 def test_Ninja_Release_stdlib_ReleaseAssert(self):  # noqa (N802 function name should be lowercase)
     # build-script -R --no-assertions --swift-stdlib-assertions
     args = self.create_basic_args(
         "Ninja", variant="Release", assertions=False)
     args.swift_stdlib_assertions = True
     self.assertEqual(compute_build_subdir(args),
                      "Ninja-Release+stdlib-ReleaseAssert")
Ejemplo n.º 6
0
 def test_Ninja_ReleaseAssert_asan(
         self):  # noqa (N802 function name should be lowercase)
     args = self.create_basic_args("Ninja",
                                   variant="Release",
                                   assertions=True,
                                   enable_asan=True)
     self.assertEqual(compute_build_subdir(args),
                      "Ninja-ReleaseAssert+asan")
Ejemplo n.º 7
0
 def test_Unix_Makefiles_ReleaseAssert(
         self):  # noqa (N802 function name should be lowercase)
     # build-script -R -m
     args = self.create_basic_args("Unix Makefiles",
                                   variant="Release",
                                   assertions=True)
     self.assertEqual(compute_build_subdir(args),
                      "Unix_Makefiles-ReleaseAssert")
Ejemplo n.º 8
0
 def generate():
     for c in productions:
         args = argparse.Namespace(cmake_generator="Ninja",
                                   enable_asan=False,
                                   enable_ubsan=False,
                                   enable_tsan=False)
         for key, val in zip(keys, c):
             setattr(args, key, val)
         yield compute_build_subdir(args)
Ejemplo n.º 9
0
 def test_Ninja_mixed(self):  # noqa (N802 function name should be lowercase)
     # build-script -R --no-assertions
     #     --llvm-build-variant=RelWithDebInfo
     #     --swift-analyze-code-coverage="merged"
     #     --swift-stdlib-assertions
     args = self.create_basic_args(
         "Ninja", variant="Release", assertions=False)
     args.llvm_build_variant = "RelWithDebInfo"
     args.swift_analyze_code_coverage = "merged"
     args.swift_stdlib_assertions = True
     self.assertEqual(compute_build_subdir(args),
                      "Ninja+cmark-Release+llvm-RelWithDebInfo"
                      "+swift-ReleaseCoverage+stdlib-ReleaseAssert")
Ejemplo n.º 10
0
 def test_Ninja_mixed(self):  # noqa (N802 function name should be lowercase)
     # build-script -R --no-assertions
     #     --llvm-build-variant=RelWithDebInfo
     #     --swift-analyze-code-coverage="merged"
     #     --swift-stdlib-assertions
     args = self.create_basic_args("Ninja", variant="Release", assertions=False)
     args.llvm_build_variant = "RelWithDebInfo"
     args.swift_analyze_code_coverage = "merged"
     args.swift_stdlib_assertions = True
     self.assertEqual(
         compute_build_subdir(args),
         "Ninja+cmark-Release+llvm-RelWithDebInfo" "+swift-ReleaseCoverage+stdlib-ReleaseAssert",
     )
Ejemplo n.º 11
0
 def test_Ninja_Release(self):
     # build-script -R --no-assertions
     args = self.create_basic_args("Ninja",
                                   variant="Release",
                                   assertions=False)
     self.assertEqual(compute_build_subdir(args), "Ninja-Release")
Ejemplo n.º 12
0
 def test_Unix_Makefiles_ReleaseAssert(self):
     # build-script -R -m
     args = self.create_basic_args(
         "Unix Makefiles", variant="Release", assertions=True)
     self.assertEqual(compute_build_subdir(args),
                      "Unix_Makefiles-ReleaseAssert")
Ejemplo n.º 13
0
 def test_Ninja_ReleaseAssert(self):
     # build-script -R
     args = self.create_basic_args("Ninja",
                                   variant="Release",
                                   assertions=True)
     self.assertEqual(compute_build_subdir(args), "Ninja-ReleaseAssert")
Ejemplo n.º 14
0
 def test_Ninja_ReleaseAssert(self):
     # build-script -R
     args = self.create_basic_args(
         "Ninja", variant="Release", assertions=True)
     self.assertEqual(compute_build_subdir(args),
                      "Ninja-ReleaseAssert")
Ejemplo n.º 15
0
 def test_Ninja_Release(self):
     # build-script -R --no-assertions
     args = self.create_basic_args(
         "Ninja", variant="Release", assertions=False)
     self.assertEqual(compute_build_subdir(args),
                      "Ninja-Release")
Ejemplo n.º 16
0
 def test_Ninja_Release(self):  # noqa (N802 function name should be lowercase)
     # build-script -R --no-assertions
     args = self.create_basic_args("Ninja", variant="Release", assertions=False)
     self.assertEqual(compute_build_subdir(args), "Ninja-Release")
Ejemplo n.º 17
0
 def test_Ninja_ReleaseAssert_tsan(self):  # noqa (N802 function name should be lowercase)
     args = self.create_basic_args(
         "Ninja", variant="Release", assertions=True, enable_tsan=True)
     self.assertEqual(compute_build_subdir(args),
                      "Ninja-ReleaseAssert+tsan")
Ejemplo n.º 18
0
 def test_Unix_Makefiles_ReleaseAssert(self):  # noqa (N802 function name should be lowercase)
     # build-script -R -m
     args = self.create_basic_args("Unix Makefiles", variant="Release", assertions=True)
     self.assertEqual(compute_build_subdir(args), "Unix_Makefiles-ReleaseAssert")