X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/3d1e13378f4e3cd29bd2698fed4552024f87e9c2..955d03ee99a6b932b8b62bd0cbd7f505efddb9a2:/tests/moo2-monster.tap diff --git a/tests/moo2-monster.tap b/tests/moo2-monster.tap new file mode 100755 index 0000000..337daab --- /dev/null +++ b/tests/moo2-monster.tap @@ -0,0 +1,36 @@ +#!/bin/sh +# +# 2ooM: The Master of Orion II Reverse Engineering Project +# Test correct decoding of various images in monster.lbx +# Copyright © 2013 Nick Bowler +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +. "$srcdir/tests/util/test-init.sh" || exit 99 + +test x"${MOO2DATA+set}" = x"set" || + skip_all_ "test requires original data files" +dx_create_testdir + +plan_ 6 + +command_ok_ "unpacking fonts.lbx" $LBXTOOL -xf "$MOO2DATA/fonts.lbx" +command_ok_ "unpacking monster.lbx" $LBXTOOL -xf "$MOO2DATA/monster.lbx" + +command_ok_ "decoding monster.lbx.007" \ + $LBXIMG -F pam --output-prefix test0 --palette fonts.lbx.004 \ + -df monster.lbx.007 --override monster.lbx.014 +dx_check_pam_md5 "test0.000.pam" 35d32459bfce6b19df14cafd2faf398b +dx_check_pam_md5 "test0.005.pam" 924fafdc83e0414331e0c627c3f9b3c7 +dx_check_pam_md5 "test0.019.pam" 272ca2d13132a1b0497e47225ee680e2