Skip to content

Commit

Permalink
test/approvals: Add approvals for CI
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Gołaś <[email protected]>
  • Loading branch information
philipandag committed Oct 14, 2024
1 parent 0c5160b commit e501dad
Show file tree
Hide file tree
Showing 38 changed files with 152 additions and 1 deletion.
25 changes: 25 additions & 0 deletions test/approvals/_dcu_help
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
dcu - Dasharo Configuration Utility

Usage:
dcu COMMAND
dcu [COMMAND] --help | -h
dcu --version | -v

Commands:
mac Get/set MAC address in a firmware image
smbios Edit SMBIOS data in a firmware image
logo Insert custom logo boot splash into firmware image
variable Edit Dasharo configuration variables

Options:
--help, -h
Show this help

--version, -v
Show version number

Examples:
dcu setmac coreboot.rom 12:34:45:56:78:9A
dcu smbios coreboot.rom -u 96bcfa1a-42b4-6717-a44c-d8bbc18cbea4 -s D07229051
dcu logo coreboot.rom -l bootsplash.bmp
dcu variable coreboot.rom --get EnableWifiBt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Setting ./data/work/bootsplash.bmp as custom logo
Success
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Invalid or unsupported logo file format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BOOTSPLASH region not found
Customizable logo not supported by the ./data/work/protectli_vault_kbl_v1.0.14.rom image
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Using */data/work/novacustom_v540tu_mtl_v0.9.0_gbe.rom
Part 0:
MAC: 12:34:56:78:9a:bc
0000000 3412 7856 bc9a 0801 ffff 1014 0001 0084
0000010 ffff ffff 10c3 0000 8086 550a 0000 0000
0000020 0000 0000 8000 a705 3030 1600 0000 0c00
0000030 18f4 0a02 0843 0113 550a baad 550a 550b
0000040 baad 550a baad 550a 0000 8000 4e00 0886
0000050 0000 0000 0007 a000 0020 0000 0e00 0000
0000060 0100 4000 1228 4007 ffff ffff ffff ffff
0000070 ffff ffff ffff ffff ffff 0200 ffff ba41
Part 1:
MAC: 12:34:56:78:9a:bc
0000000 3412 7856 bc9a 0801 ffff 1014 0001 0084
0000010 ffff ffff 10c3 0000 8086 550a 0000 0000
0000020 0000 0000 8000 a705 3030 1600 0000 0c00
0000030 18f4 0a02 0843 0113 550a baad 550a 550b
0000040 baad 550a baad 550a 0000 8000 4e00 0886
0000050 0000 0000 0007 a000 0020 0000 0e00 0000
0000060 0100 4000 1228 4007 ffff ffff ffff ffff
0000070 ffff ffff ffff ffff ffff 0200 ffff ba41
Success
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Using */data/work/novacustom_v540tu_mtl_v0.9.0_gbe.rom
Copying region 0 to region 1
Bad MAC address
Operation canceled
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Using */data/work/novacustom_v540tu_mtl_v0.9.0_gbe.rom
Copying region 0 to region 1
Warning: No platform specified. Output may be incomplete
Moving */data/work/novacustom_v540tu_mtl_v0.9.0_gbe.rom.new to */data/work/novacustom_v540tu_mtl_v0.9.0_gbe.rom
Success
23 changes: 23 additions & 0 deletions test/approvals/_dcu_mac_data_work_novacustom_v540tu_mtl_v0_9_0_rom
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Using */data/work/novacustom_v540tu_mtl_v0.9.0.rom
BAD checksum in part 0
BAD checksum in part 1
Part 0:
MAC: ff:ff:ff:ff:ff:ff
0000000 ffff ffff ffff ffff ffff ffff ffff ffff
0000010 ffff ffff ffff ffff ffff ffff ffff ffff
0000020 ffff ffff ffff ffff ffff ffff ffff ffff
0000030 ffff ffff ffff ffff ffff ffff ffff ffff
0000040 ffff ffff ffff ffff ffff ffff ffff ffff
0000050 ffff ffff ffff ffff ffff ffff ffff ffff
0000060 ffff ffff ffff ffff ffff ffff ffff ffff
0000070 ffff ffff ffff ffff ffff ffff ffff ffff
Part 1:
MAC: ff:ff:ff:ff:ff:ff
0000000 ffff ffff ffff ffff ffff ffff ffff ffff
0000010 ffff ffff ffff ffff ffff ffff ffff ffff
0000020 ffff ffff ffff ffff ffff ffff ffff ffff
0000030 ffff ffff ffff ffff ffff ffff ffff ffff
0000040 ffff ffff ffff ffff ffff ffff ffff ffff
0000050 ffff ffff ffff ffff ffff ffff ffff ffff
0000060 ffff ffff ffff ffff ffff ffff ffff ffff
0000070 ffff ffff ffff ffff ffff ffff ffff ffff
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Using */data/work/novacustom_v540tu_mtl_v0.9.0.rom
BAD checksum in part 0
Operation canceled
Failed to copy region 0 to region 1
BAD checksum in part 1
Operation canceled
Failed to copy region 1 to region 0
Both regions are invalid, aborting
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Using */data/work/protectli_vault_cml_v1.2.0-rc1_vp46xx.rom
Managing the MAC address in this binary is currently not supported
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Will modify ./data/work/novacustom_nv4x_adl_v1.6.0.rom

Configurable Serial Number not supported by the coreboot image
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Will modify ./data/work/novacustom_nv4x_adl_v1.6.0.rom

Configurable UUID not supported by the coreboot image
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Will modify ./data/work/novacustom_nv4x_adl_v1.6.0.rom

Configurable UUID not supported by the coreboot image
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Will modify ./data/work/protectli_vault_cml_v1.2.0-rc1_vp46xx.rom

Setting Serial Number to D07229051
Success
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Will modify ./data/work/protectli_vault_cml_v1.2.0-rc1_vp46xx.rom

Setting System UUID to 96bcfa1a-42b4-6717-a44c-d8bbc18cbea4
Success
Setting Serial Number to D07229051
Success
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Will modify ./data/work/protectli_vault_cml_v1.2.0-rc1_vp46xx.rom

Setting System UUID to 96bcfa1a-42b4-6717-a44c-d8bbc18cbea4
Success
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Will modify ./data/work/protectli_vault_cml_v1.2.0-rc1_vp46xx.rom

Invalid UUID format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Performance
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Successfully set variable FanCurveOption in the variable store.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Value InvalidMode is out of range (expected one of: Silent / Performance)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Silent
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Successfully set variable FanCurveOption in the variable store.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disabled (HAP)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Successfully set variable MeMode in the variable store.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Value InvalidMode is out of range (expected one of: Enabled / Disabled (Soft) / Disabled (HAP))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disabled (Soft)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Successfully set variable MeMode in the variable store.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enabled
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Successfully set variable MeMode in the variable store.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Successfully set variable SerialRedirection in the variable store.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enabled
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Successfully set variable SerialRedirection in the variable store.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Value EnabledInvalid is out of range (expected one of: Disabled / Enabled)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
No firmware volume header present
No valid firmware volume was found
Failed to find variable store in "./data/work/novacustom_nv4x_adl_v1.6.0.rom"
Variable store was not initialized yet. You need to set some variable first via --set option. (error code: 1)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Failed to parse type: unknown
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
No firmware volume header present
No valid firmware volume was found

The variable store has not been found in the ROM image
and is about to be initialized. This situation is normal
for a release image, as the variable store is usually
initialized on the first boot of the platform.

Successfully created variable store in "./data/work/novacustom_nv4x_adl_v1.6.0.rom"
Successfully set variable SerialRedirection in the variable store.
1 change: 0 additions & 1 deletion test/approvals/_dcuc_help
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ Examples:
dcu smbios coreboot.rom -u 96bcfa1a-42b4-6717-a44c-d8bbc18cbea4 -s D07229051
dcu logo coreboot.rom -l bootsplash.bmp
dcu variable coreboot.rom --get EnableWifiBt

0 comments on commit e501dad

Please sign in to comment.