summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@debian.org>2019-05-14 15:41:52 +0000
committerDmitry Bogatov <KAction@debian.org>2019-05-14 15:57:15 +0000
commitcb411affcbc2eb183ee5f35e50c3863c0b94f98a (patch)
tree81ed7bee8bc1bf60a637a47b158450c6e76dbc50 /t
parentff2177c68252c80e75c2e0fbc4d40e8193d4cb36 (diff)
Add option to mark service as non-restartable
Diffstat (limited to 't')
-rw-r--r--t/924903.t5
-rw-r--r--t/928935.t10
2 files changed, 14 insertions, 1 deletions
diff --git a/t/924903.t b/t/924903.t
index 710ea39..b969314 100644
--- a/t/924903.t
+++ b/t/924903.t
@@ -1,7 +1,7 @@
1#!/usr/bin/perl 1#!/usr/bin/perl
2use strict; 2use strict;
3use warnings; 3use warnings;
4use Test::More tests => 3; 4use Test::More tests => 4;
5use File::stat; 5use File::stat;
6use T; 6use T;
7 7
@@ -11,3 +11,6 @@ ok(-d $path, 'supervise directory correctly created');
11my $info = stat($path); 11my $info = stat($path);
12my $mode = sprintf("%o", $info->mode & 0777); 12my $mode = sprintf("%o", $info->mode & 0777);
13is($mode, '700', 'supervise directory have conservative permissions'); 13is($mode, '700', 'supervise directory have conservative permissions');
14
15my $noreplace = 'debian/dh-runit-test/var/lib/runit/noreplace/test';
16ok(!-f $noreplace, 'noreplace file is correctly absent');
diff --git a/t/928935.t b/t/928935.t
new file mode 100644
index 0000000..e31756b
--- /dev/null
+++ b/t/928935.t
@@ -0,0 +1,10 @@
1#!/usr/bin/perl
2use strict;
3use warnings;
4use Test::More tests => 2;
5use T;
6
7system_ok('dh_runit', 'debian/test.runscript', 'name=test,noreplace');
8
9my $noreplace = 'debian/dh-runit-test/var/lib/runit/noreplace/test';
10ok(-f $noreplace, 'noreplace file correctly created');