CKM: Add asserts for file copying 09/40809/4
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 9 Jun 2015 08:26:25 +0000 (10:26 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 11 Jun 2015 09:36:17 +0000 (02:36 -0700)
commit285cb2ff15387e8e61f0acd081f28fc25f4e619b
treea55ac016092aab1db5db0c1368cc30ac7e7d4dbc
parentfb86cd305ea5b293e238f702c3707497902cc8c9
CKM: Add asserts for file copying

[Problem] If you manually remove contents of /opt/data/ckm/ initial-values
tests will fail because the target directory does not exist.
[Solution] Add asserts checking if input & output files are correct.

[Verification] Remove /otp/data/ckm/initial_values. Run:
ckm-tests --group=T60_INITIAL_VALUES. They should fail. Reinstall key-manager
run tests again. All should pass.

Change-Id: Ib6b7308747b74943ec9d7274284d1d56c9be1641
src/ckm/initial-values.cpp