1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/usr/bin/perl
use warnings;
use strict;
use Cwd qw(getcwd);
#use File::Slurp;
use File::stat;
use Test::More;
# This assumes that ikiwiki-hosting.conf still has prefix_e=example.com.
ok(! system(qw(ikisite create foo.example.com --admin=root@localhost)));
ok(-d '/home/e-foo');
ok(-f '/home/e-foo/ikiwiki.setup');
ok(-f '/home/e-foo/public_html/ikiwiki/index.html');
my $uid = `id -u e-foo`;
chomp $uid;
my $stat = stat('/home/e-foo');
is($stat->uid, $uid);
ok(! system(qw(ikisite delete foo.example.com)));
ok(! -e '/home/e-foo');
done_testing;
|