示例#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")
示例#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)
示例#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")
示例#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")
示例#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")
示例#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")
示例#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")
示例#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)
示例#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")
示例#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",
     )
示例#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")
示例#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")
示例#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")
示例#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")
示例#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")
示例#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")
示例#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")
示例#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")