25 lines
555 B
Perl
25 lines
555 B
Perl
#!/usr/bin/perl
|
|
# vi: et sts=4 sw=4 ts=4
|
|
use strict;
|
|
use warnings;
|
|
|
|
use Test::Simple
|
|
tests => 3;
|
|
|
|
use FindBin qw//;
|
|
use lib $FindBin::RealBin;
|
|
use TestFunctions;
|
|
|
|
my $tarball_dir = &prep_tar;
|
|
my $test_dir = "$tarball_dir/t/normal";
|
|
my @files = (
|
|
"$test_dir/foo/same",
|
|
"$test_dir/not-same",
|
|
);
|
|
|
|
# Smoke test
|
|
ok !&are_hardlinked(@files), 'not hardlinked before we start';
|
|
&run_script($test_dir);
|
|
ok &file_exists(@files), 'files were not accidentally deleted';
|
|
ok !&are_hardlinked(@files), 'files with different contents did not get hardlinked';
|