File: check

package info (click to toggle)
dh-runit 2.17.2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 364 kB
  • sloc: sh: 376; perl: 355; haskell: 49; makefile: 13
file content (17 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 7;

my $svrun = 'debian/dh-runit-test/usr/share/runit/sv/test/run';
my $svdir = 'debian/dh-runit-test/etc/sv/test';
ok(-f $svrun, 'run file correctly created under /usr/share/runit/sv/');
ok(-x $svrun, 'run file is executable');
ok(! -d $svdir, 'service not created under /etc/sv/');
my $svlog = 'debian/dh-runit-test/usr/share/runit/sv/test/log/run';
ok(! -f $svlog, 'log service not created');
my $finish = 'debian/dh-runit-test/usr/share/runit/sv/test/finish';
ok(-f $finish, 'finish file correctly created');
ok(-x $finish, 'finish file is executable');
my $superviselink = 'debian/dh-runit-test/usr/share/runit/sv/test/supervise';
ok(! -l $superviselink, 'ok: supervise link not created');