summaryrefslogtreecommitdiffstats
path: root/test/offsetsize.test
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-02-01 19:07:02 +0100
committerGravatar Nikias Bassen2017-02-01 19:07:02 +0100
commit5791fb908a5f4e3ae39f8c4644dc7f0291f0e80f (patch)
tree92eb291d886ff4a4c4c8c4dadc6ded97e5302736 /test/offsetsize.test
parente9895752a396c4acb8c2b4ba525c13329d4e9fab (diff)
downloadlibplist-5791fb908a5f4e3ae39f8c4644dc7f0291f0e80f.tar.gz
libplist-5791fb908a5f4e3ae39f8c4644dc7f0291f0e80f.tar.bz2
test: Add test cases for different bplist offset and reference sizes
Diffstat (limited to 'test/offsetsize.test')
-rwxr-xr-xtest/offsetsize.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/offsetsize.test b/test/offsetsize.test
new file mode 100755
index 0000000..d548d88
--- /dev/null
+++ b/test/offsetsize.test
@@ -0,0 +1,12 @@
+## -*- sh -*-
+
+set -e
+
+DATASRC=$top_srcdir/test/data
+TESTFILES="off1byte.bplist off2bytes.bplist off3bytes.bplist off4bytes.bplist off5bytes.bplist off6bytes.bplist off7bytes.bplist off8bytes.bplist"
+CMPFILE=offxml.plist
+
+for I in $TESTFILES; do
+ echo "* checking $I"
+ $top_builddir/test/plist_cmp $DATASRC/$I $DATASRC/$CMPFILE
+done