Skip to content

Commit

Permalink
add: test U2 and U3
Browse files Browse the repository at this point in the history
  • Loading branch information
kentakayama committed Nov 26, 2024
1 parent c43d437 commit d647d43
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Makefile.process
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $(TARGET): $(OBJS) | ./bin

define test-one
$(TARGET) ./testfiles/suit_manifest_exp$(1).cbor \
-u "http://cdn.example/example3.bin" -f "./testfiles/raw_image.bin" \
-u "https://cdn.example/example3.bin" -f "./testfiles/raw_image.bin" \
-u "http://example.com/file.bin" -f "./testfiles/raw_image.bin" \
-u "http://example.com/dependent.suit" -f "./testfiles/suit_manifest_expS0.cbor" \
-u "https://example.com/encrypted-firmware" -b "758c4b7bbae2c4c1d462423e0f0dc3164ffa7b85bb94d4bd6d7ed26ab32feb063385d4d3465927ec82cb5e198a59" \
Expand All @@ -60,7 +60,7 @@ define test-one

endef

TEST_NUM := 0 1 2A 2B 3 4 5 U I D AF AFS AW EW ED S0 S2 S3 S4 U0 U1
TEST_NUM := 0 1 2A 2B 3 4 5 U I D AF AFS AW EW ED S0 S2 S3 S4 U0 U1 U2 U3
.PHONY: test
test: all
$(foreach num,$(TEST_NUM),$(call test-one,$(num)))
Expand Down
Binary file modified testfiles/suit_manifest_expU3.cbor
Binary file not shown.
27 changes: 14 additions & 13 deletions testfiles/suit_manifest_expU3.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ NOTE: only SUIT_Manifest part is displayed here.
['usr', 'local', 'bin', 'example3']
],
e'suit-shared-sequence': << [
e'suit-directive-set-component-index', true,
e'suit-directive-override-parameters', {
e'suit-parameter-vendor-identifier': h'fa6b4a53d5ad5fdfbe9de663e4d41ffe',
e'suit-parameter-class-identifier': h'1492af1425695e48bf429b2d51f2ab45',
Expand Down Expand Up @@ -84,18 +85,18 @@ NOTE: only SUIT_Manifest part is displayed here.
{: numbered='no'}

~~~~
D86BA2025873825824822F5820E2BADD1F63BB70B4787ABC1232EBDD5F4E
A4839715A9BEC2D05287BDBF8092BC584AD28443A10126A0F65840C7EEE2
A92BA437C16F89DF644C5653A76B63E534DE7B8BCBAD85DD315DBBE59FA5
89A09E4066D1C3C53593C7A5BFC750024D3A4625B68162C0BDFECE6B8DBC
E103590111A50101020003588FA2028383437573724362696E476578616D
D86BA2025873825824822F5820F3D4B741F5C160CEAE81D884B54327DF0B
7AE29C98902B44962541E084931DE9584AD28443A10126A0F65840F7BED8
C591DAB332DADAED94886229470AE9EF5E12D7ACA3B61A75CBCA84E08669
0049B17BC820198FFC8A04D575085E16E6CC28D35AB40E0B69BFFE67A2F7
2103590113A501010200035891A2028383437573724362696E476578616D
706C658343757372456C6F63616C4362696E8443757372456C6F63616C43
62696E486578616D706C65330458518214A40150FA6B4A53D5AD5FDFBE9D
E663E4D41FFE02501492AF1425695E48BF429B2D51F2AB45035824822F58
2036921488FE6680712F734E11F58D87EEB66D4B21A8A1AD3441060814DA
16D50F0E181E10584E8E0C0114A21240181E43A1050212020C0214A21578
2068747470733A2F2F63646E2E6578616D706C652F6578616D706C65332E
62696E181E51A4010402A11903E80603A11903E80405011502030F145826
860C0014A212572F7573722F6C6F63616C2F62696E2F6578616D706C6533
181E43A105031202
62696E486578616D706C6533045853840CF514A40150FA6B4A53D5AD5FDF
BE9DE663E4D41FFE02501492AF1425695E48BF429B2D51F2AB4503582482
2F582036921488FE6680712F734E11F58D87EEB66D4B21A8A1AD34410608
14DA16D50F0E181E10584E8E0C0114A21240181E43A1050212020C0214A2
15782068747470733A2F2F63646E2E6578616D706C652F6578616D706C65
332E62696E181E51A4010402A11903E80603A11903E80405011502030F14
5826860C0014A212572F7573722F6C6F63616C2F62696E2F6578616D706C
6533181E43A105031202
~~~~

0 comments on commit d647d43

Please sign in to comment.