Skip to content

Commit 0c823ea

Browse files
[skip-changelog] Migrate tests from test_compile_part_4.py to compile_part_4_test.go (#1924)
* Migrate TestCompileWithLibrary from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithLibraryPriority from test_compile_part_4.py to compile_part_4_test.go * Migrate TestRecompileWithDifferentLibrary from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithConflictingLibrariesInclude from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithInvalidBuildOptionJson from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithEsp32BundledLibraries from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithEsp8266BundledLibraries from test_compile_part_4.py to compile_part_4_test.go * Migrate TestGenerateCompileCommandsJsonResilience from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileSketchWithTppFileInclude from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileSketchWithIppFileInclude from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithoutUploadAndFqbn from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileNonInstalledPlatformWithWrongPackagerAndArch from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithKnownPlatformNotInstalled from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileManuallyInstalledPlatformUsingBoardsLocalTxt from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithRelativeBuildPath from test_compile_part_4.py to compile_part_4_test.go * Migrate TestCompileWithFakeSecureBootCore to compile_part_4_test.go and delete test_compile_part_4.py * Rearrange compile tests to share the same environment
1 parent 0b2c38d commit 0c823ea

File tree

11 files changed

+588
-501
lines changed

11 files changed

+588
-501
lines changed

Diff for: internal/integrationtest/compile/compile_test.go

+569
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
menu.security=Security setting
2+
3+
uno.menu.security.none=None
4+
uno.menu.security.sien=Signature + Encryption
5+
6+
uno.menu.security.sien.build.postbuild.cmd="{tools.imgtool.cmd}" {tools.imgtool.flags}
7+
uno.menu.security.none.build.postbuild.cmd="{tools.imgtool.cmd}" exit
8+
9+
uno.menu.security.sien.build.keys.keychain={runtime.hardware.path}/Default_Keys
10+
uno.menu.security.sien.build.keys.sign_key=default-signing-key.pem
11+
uno.menu.security.sien.build.keys.encrypt_key=default-encrypt-key.pem
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Create output secure image (bin file)
2+
recipe.hooks.objcopy.postobjcopy.1.pattern={build.postbuild.cmd}
3+
#
4+
# IMGTOOL
5+
#
6+
7+
tools.imgtool.cmd=echo
8+
tools.imgtool.flags=sign --key "{build.keys.keychain}/{build.keys.sign_key}" --encrypt "{build.keys.keychain}/{build.keys.encrypt_key}" "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.bin" --align {build.alignment} --max-align {build.alignment} --version {build.version} --header-size {build.header_size} --pad-header --slot-size {build.slot_size}

Diff for: test/test_compile_part_4.py

-501
This file was deleted.

0 commit comments

Comments
 (0)