source: MondoRescue/trunk/mindi/Mindi/DiskSize/test.pl@ 1

Last change on this file since 1 was 1, checked in by bcornec, 19 years ago

Initial import from latest mondo-2.04_cvs_20050503/mindi-1.04_cvs_20050503 on http://www.mondorescue.org

File size: 739 bytes
Line 
1# Before `make install' is performed this script should be runnable with
2# `make test'. After `make install' it should work as `perl test.pl'
3
4#########################
5
6# change 'tests => 1' to 'tests => last_test_to_print';
7
8use Test;
9BEGIN { plan tests => 1 };
10use Mindi::DiskSize qw(:all);
11ok(1); # If we made it this far, we're ok.
12
13#########################
14
15# Insert your test code below, the Test module is use()ed here so read
16# its man page ( perldoc Test ) for help writing this test script.
17my $disk_size_k = get_size_of_disk ("/dev/ad2");
18my $disk_siz2_k = get_size_of_disk ("/dev/ad2a");
19print "sizeof /dev/ad2 = $disk_size_k\n";
20print "sizeof /dev/ad2a = $disk_siz2_k\n";
21skip ($>, $disk_size_k);
22skip ($>, $disk_siz2_k);
Note: See TracBrowser for help on using the repository browser.