aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-26 00:12:18 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-26 00:12:18 +0200
commit02c6893233b190fbec966803cca7820678b06250 (patch)
treea15d782d53aff5fdbc20efbbb89b8c151a19d1a1
parentc0570bf66259b59f26439592aff450f42d4e2f55 (diff)
downloadsbotools2-02c6893233b190fbec966803cca7820678b06250.tar.xz
04-install.t: test inode change for .SlackBuild
This is for testing #40, and it is still marked 'TODO'
-rwxr-xr-xt/04-install.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/04-install.t b/t/04-install.t
index 5b84a5c..5c1e8f5 100755
--- a/t/04-install.t
+++ b/t/04-install.t
@@ -10,7 +10,7 @@ use lib $RealBin;
use Test::Sbotools qw/ make_slackbuilds_txt set_lo sboinstall sboremove restore_perf_dummy /;
if ($ENV{TEST_INSTALL}) {
- plan tests => 18;
+ plan tests => 19;
} else {
plan skip_all => 'Only run these tests if TEST_INSTALL=1';
}
@@ -97,6 +97,15 @@ sboinstall 'perl-Capture-Tiny', { expected => "perl-Capture-Tiny installed via t
# 18: sboinstall perl-nonexistentcpan
sboinstall 'perl-nonexistentcpan', { input => "n", expected => qr/Proceed with perl-nonexistentcpan/ };
+# 19: check node status of slackbuild script
+TODO: {
+ local $TODO = "preserving inodes not implemented yet";
+ my $sbo = "$RealBin/LO/nonexistentslackbuild/nonexistentslackbuild.SlackBuild";
+ my $inode = (stat($sbo))[1];
+ sboinstall 'nonexistentslackbuild', { input => "y\ny", test => 0 };
+ is((stat($sbo))[1], $inode, "inode didn't change");
+}
+
# Cleanup
END {
cleanup();