]> git.draconx.ca Git - liblbx.git/blobdiff - tests/archives.at
Port all test cases to Autotest.
[liblbx.git] / tests / archives.at
similarity index 57%
rename from tests/broken-archives.tap
rename to tests/archives.at
index 2eacc7f36d39bac8084056d7360c7071aab16486..1dd4e2fb8b99dfc9f3351d1e389ec23875e2fced 100644 (file)
@@ -1,8 +1,4 @@
-#!/bin/sh
-#
-# 2ooM: The Master of Orion II Reverse Engineering Project
-# Test that EOF when unpacking an archive is an error.
-# Copyright © 2014 Nick Bowler
+# Copyright © 2014, 2021 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
 # 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 <http://www.gnu.org/licenses/>.
-
-. "$srcdir/tests/util/test-init.sh" || exit 99
+# along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-plan_ 1
-dx_create_testdir
+AT_BANNER([Archive format tests])
 
-failed=false
-$LBXTOOL -xf "$testdata/arch-trunc.lbx" || failed=true
-command_ok_ "EOF handled in archive" $failed
+AT_SETUP([EOF while reading archive])
+AT_CHECK([lbxtool -xf "$testdata/arch-trunc.lbx"], [1], [], [ignore])
+AT_CLEANUP