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 | |
---|
3 | use strict; |
---|
4 | use warnings; |
---|
5 | |
---|
6 | use Test::More tests => 4; |
---|
7 | use ObsData::Archive; |
---|
8 | use File::Temp qw(tempdir); |
---|
9 | |
---|
10 | my $tempdir = tempdir; |
---|
11 | print $tempdir . "\n"; |
---|
12 | |
---|
13 | my $oa = ObsData::Archive->new('testdata/coin.lzh'); |
---|
14 | |
---|
15 | isa_ok($oa, 'ObsData::Archive::Lha'); |
---|
16 | my ($list) = $oa->ls(); |
---|
17 | ok($list eq 'coin', "Can list its contents"); |
---|
18 | |
---|
19 | ok($oa->extract('coin', "$tempdir/coin"), "Can extract the file"); |
---|
20 | ok(-r "$tempdir/coin", "the file has been really extract"); |
---|
21 | |
---|
22 | system(qw(rm -fr), $tempdir); |
---|
Note: See
TracBrowser
for help on using the repository browser.