diff options
author | Dmitry Bogatov <KAction@debian.org> | 2019-05-14 15:41:52 +0000 |
---|---|---|
committer | Dmitry Bogatov <KAction@debian.org> | 2019-05-14 15:57:15 +0000 |
commit | cb411affcbc2eb183ee5f35e50c3863c0b94f98a (patch) | |
tree | 81ed7bee8bc1bf60a637a47b158450c6e76dbc50 /t | |
parent | ff2177c68252c80e75c2e0fbc4d40e8193d4cb36 (diff) |
Add option to mark service as non-restartable
Diffstat (limited to 't')
-rw-r--r-- | t/924903.t | 5 | ||||
-rw-r--r-- | t/928935.t | 10 |
2 files changed, 14 insertions, 1 deletions
@@ -1,7 +1,7 @@ | |||
1 | #!/usr/bin/perl | 1 | #!/usr/bin/perl |
2 | use strict; | 2 | use strict; |
3 | use warnings; | 3 | use warnings; |
4 | use Test::More tests => 3; | 4 | use Test::More tests => 4; |
5 | use File::stat; | 5 | use File::stat; |
6 | use T; | 6 | use T; |
7 | 7 | ||
@@ -11,3 +11,6 @@ ok(-d $path, 'supervise directory correctly created'); | |||
11 | my $info = stat($path); | 11 | my $info = stat($path); |
12 | my $mode = sprintf("%o", $info->mode & 0777); | 12 | my $mode = sprintf("%o", $info->mode & 0777); |
13 | is($mode, '700', 'supervise directory have conservative permissions'); | 13 | is($mode, '700', 'supervise directory have conservative permissions'); |
14 | |||
15 | my $noreplace = 'debian/dh-runit-test/var/lib/runit/noreplace/test'; | ||
16 | ok(!-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 | ||
2 | use strict; | ||
3 | use warnings; | ||
4 | use Test::More tests => 2; | ||
5 | use T; | ||
6 | |||
7 | system_ok('dh_runit', 'debian/test.runscript', 'name=test,noreplace'); | ||
8 | |||
9 | my $noreplace = 'debian/dh-runit-test/var/lib/runit/noreplace/test'; | ||
10 | ok(-f $noreplace, 'noreplace file correctly created'); | ||