Andrew Jeffery | 437c80f | 2018-02-26 09:59:51 +1030 | [diff] [blame] | 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright (C) 2018 IBM Corp. |
| 3 | |
| 4 | #include "config.h" |
| 5 | #include <assert.h> |
| 6 | |
Andrew Jeffery | 53c21aa | 2018-03-26 11:56:16 +1030 | [diff] [blame] | 7 | #include "vpnor/pnor_partition_table.hpp" |
Andrew Jeffery | 437c80f | 2018-02-26 09:59:51 +1030 | [diff] [blame] | 8 | |
| 9 | static constexpr auto BLOCK_SIZE = 4 * 1024; |
| 10 | |
| 11 | int main() |
| 12 | { |
| 13 | namespace vpnor = openpower::virtual_pnor; |
| 14 | |
| 15 | struct pnor_partition part; |
| 16 | std::string line; |
| 17 | |
| 18 | line = "partition01=FOO,,00001000,80,ECC,PRESERVED"; |
| 19 | try |
| 20 | { |
| 21 | openpower::virtual_pnor::parseTocLine(line, BLOCK_SIZE, part); |
| 22 | } |
| 23 | catch (vpnor::MalformedTocEntry& e) |
| 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | assert(false); |
| 29 | } |