source: trunk/soft/ObsData/t/OA-07.t @ 240

Last change on this file since 240 was 240, checked in by nanardon, 18 years ago
  • add partial lha/lzh support
  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:keywords set to Author Date Id Revision
  • Property svn:mime-type set to text/x-troff
File size: 481 bytes
Line 
1# $Id$
2
3use strict;
4use warnings;
5
6use Test::More tests => 4;
7use ObsData::Archive;
8use File::Temp qw(tempdir);
9
10my $tempdir = tempdir;
11print $tempdir . "\n";
12
13my $oa = ObsData::Archive->new('testdata/coin.lzh');
14
15isa_ok($oa, 'ObsData::Archive::Lha');
16my ($list) = $oa->ls();
17ok($list eq 'coin', "Can list its contents");
18
19ok($oa->extract('coin', "$tempdir/coin"), "Can extract the file");
20ok(-r "$tempdir/coin", "the file has been really extract");
21
22system(qw(rm -fr), $tempdir);
Note: See TracBrowser for help on using the repository browser.