summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-07-12 10:01:31 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-07-19 23:00:45 +0000
commite8b0e8acd8c991963fe501176e61815c064df991 (patch)
tree29657b6d61b4baa7f844d35c4ec4fdb37ea7b2c4 /test
parentb100fb8efd0baca49996b4340c31a3c7b7fe2de9 (diff)
downloadphosphor-mboxd-e8b0e8acd8c991963fe501176e61815c064df991.tar.gz
phosphor-mboxd-e8b0e8acd8c991963fe501176e61815c064df991.zip
vpnor: add partition version check to the TOC
Change-Id: If5497476f03484334396e483e251b1e9434137f3 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'test')
-rw-r--r--test/create_pnor_partition_table.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/create_pnor_partition_table.cpp b/test/create_pnor_partition_table.cpp
index ec78e70..bfc4471 100644
--- a/test/create_pnor_partition_table.cpp
+++ b/test/create_pnor_partition_table.cpp
@@ -6,7 +6,7 @@
#include <fstream>
#include <experimental/filesystem>
-constexpr auto line = "partition01=HBB,00000000,00000400,ECC,PRESERVED";
+constexpr auto line = "partition01=HBB,00000000,00000400,80,ECC,PRESERVED";
constexpr auto partitionName = "HBB";
char tmplt[] = "/tmp/vpnor_partitions.XXXXXX";
@@ -56,6 +56,7 @@ int main()
expectedPartition.data.flags = 0;
expectedPartition.data.user.data[0] = PARTITION_ECC_PROTECTED;
expectedPartition.data.user.data[1] |= PARTITION_PRESERVED;
+ expectedPartition.data.user.data[1] |= PARTITION_VERSION_CHECK_SHA512;
expectedPartition.checksum =
openpower::virtual_pnor::details::checksum(expectedPartition.data);
OpenPOWER on IntegriCloud