Add add test for generating custom header

This commit is contained in:
Matthias Beyer 2016-01-31 19:38:31 +01:00
parent 67a7f1ab78
commit 2b39b8eed7
1 changed files with 24 additions and 0 deletions

View File

@ -41,6 +41,30 @@ EOS
fi
}
test_std_header_plus_custom() {
local expected=$(cat <<EOS
---
[imag]
links = []
version = "0.1.0"
[zzz]
zzz = "z"
---
EOS
)
imag-store create -p /test-std-header-plus-custom entry -h zzz.zzz=z
local result=$(cat ${STORE}/test-std-header-plus-custom)
if [[ "$expected" == "$result" ]]; then
out "Expected store entry == result"
else
err "${STORE}/test differs from expected"
return 1
fi
}
invoke_tests \
test_call \
test_mkstore \