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")
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)
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")
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")
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")
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")
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")
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)
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")
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", )
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")
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")
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")
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")
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")
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")
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")
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")