summaryrefslogtreecommitdiffstats
path: root/test/vpnor/tmpd.hpp
Commit message (Collapse)AuthorAgeFilesLines
* test: tmpd: Populate path members under struct mbox_contextAndrew Jeffery2018-03-241-1/+12
| | | | | Change-Id: I9d18bd108d1c0972a5fefa384152757a2483c103 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* test: tmpd: Make VpnorRoot the parent of ro/rw/prsv/patchAndrew Jeffery2018-03-241-15/+26
| | | | | | | | | | | | Previously it represented any one of the ro/rw/prsv/patch directories. It's better if we can deal with all of them at once, so rework the abstraction. In the process, the patch exploits other features of std::experimental::filesystem to increase readability of the code. Change-Id: I06000709622dd66945cc88cb5333847c69215dc7 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* test: tmpd: Replace createVpnorRoot() with VpnorRoot classAndrew Jeffery2018-03-241-24/+49
| | | | | | | | | The VpnorRoot class prepares a temporary directory for use as a VPNOR backing store. Implementing it as a class allows us to use RAII to get it to clean up after itself. Change-Id: Ia5a839e751f8dc2126a4c0b474e9a7b8593cfd57 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* test: Add temporary directory helper for virtual PNOR testsAndrew Jeffery2018-03-241-0/+54
Move the createVpnorTree() helper function out from the create_pnor_partition_table test case into its own header. This way multiple tests can make use of its function. Change-Id: Ieb4149e736c7ff87ecdbf7aa586b58baf936cd97 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
OpenPOWER on IntegriCloud