Skip to content

Commit 9eb8f79

Browse files
committed
Update the tests.
1 parent 35cdd5a commit 9eb8f79

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

test/buildbot/builders/testsuite.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,43 @@
2424

2525
print(f"default factory: {f}\n")
2626

27-
assert factory_has_num_steps(f, 5)
27+
assert factory_has_num_steps(f, 6)
2828
assert factory_has_step(f, "clean-src-dir")
29+
assert factory_has_step(f, "set-props")
2930
assert factory_has_step(f, "cmake-configure")
3031
assert factory_has_step(f, "build-default")
3132
assert not factory_has_step(f, "rsync-default")
3233
assert factory_has_step(f, "test-check")
3334

35+
compiler_flags_ = "-march=armv8l+pauth -mbranch-protection=pac-ret -O2"
36+
linker_flags_ = "-O2 -Wl,--emit-relocs"
37+
3438
f = TestSuiteBuilder.getLlvmTestSuiteSteps(
3539
cmake_definitions = {
3640
"TEST_SUITE_REMOTE_HOST" : "buildbot@arm64-linux-02",
3741
"TEST_SUITE_LIT_FLAGS" : "-v --threads=32 --time-tests",
42+
"CMAKE_CXX_FLAGS" : "-O0",
43+
"CMAKE_EXE_LINKER_FLAGS" : "-O0",
3844
},
3945
compiler_dir = util.Interpolate("%(prop:builddir)s/build"),
46+
compiler_flags = compiler_flags_,
47+
linker_flags = linker_flags_,
4048
hint = None,
4149
)
4250

4351
print(f"default factory (compiler_dir): {f}\n")
4452

45-
assert factory_has_num_steps(f, 6)
53+
assert factory_has_num_steps(f, 7)
4654
assert factory_has_step(f, "clean-src-dir")
55+
assert factory_has_step(f, "set-props")
4756
assert factory_has_step(f, "cmake-configure")
57+
assert factory_has_step(f, "cmake-configure", hasarg = "definitions", contains = {
58+
"CMAKE_C_FLAGS" : compiler_flags_,
59+
"CMAKE_CXX_FLAGS" : f"-O0 {compiler_flags_}",
60+
"CMAKE_EXE_LINKER_FLAGS" : f"-O0 {linker_flags_}",
61+
"CMAKE_MODULE_LINKER_FLAGS" : linker_flags_,
62+
"CMAKE_SHARED_LINKER_FLAGS" : linker_flags_,
63+
})
4864
assert factory_has_step(f, "build-default")
4965
assert factory_has_step(f, "rsync-default")
5066
assert factory_has_step(f, "test-check")

0 commit comments

Comments
 (0)