source: trunk/soft/ObsData/t/OA-06.t @ 157

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