summaryrefslogtreecommitdiffstats
path: root/test/refsize.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/refsize.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/refsize.test')
-rwxr-xr-xtest/refsize.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/refsize.test b/test/refsize.test
new file mode 100755
index 0000000..379b7fb
--- /dev/null
+++ b/test/refsize.test
@@ -0,0 +1,12 @@
+## -*- sh -*-
+
+set -e
+
+DATASRC=$top_srcdir/test/data
+TESTFILES="dictref1byte.bplist dictref2bytes.bplist dictref3bytes.bplist dictref4bytes.bplist dictref5bytes.bplist dictref6bytes.bplist dictref7bytes.bplist dictref8bytes.bplist"
+CMPFILE=offxml.plist
+
+for I in $TESTFILES; do
+ echo "* checking $I"
+ $top_builddir/test/plist_cmp $DATASRC/$I $DATASRC/$CMPFILE
+done