Skip to content

Instantly share code, notes, and snippets.

@wchristian
Created December 8, 2010 13:32
Show Gist options
  • Save wchristian/733283 to your computer and use it in GitHub Desktop.
Save wchristian/733283 to your computer and use it in GitHub Desktop.
D:\Ubic>prove -v
t\00_compile.t ...........
1..35
ok 1 - use Ubic;
ok 2 - use Ubic::AccessGuard;
ok 3 - use Ubic::Cmd;
ok 4 - use Ubic::Credentials;
ok 5 - use Ubic::Daemon;
ok 6 - use Ubic::Lockf;
ok 7 - use Ubic::Logger;
ok 8 - use Ubic::Multiservice;
ok 9 - use Ubic::Persistent;
ok 10 - use Ubic::Ping;
ok 11 - use Ubic::PortMap;
ok 12 - use Ubic::Result;
ok 13 - use Ubic::Service;
ok 14 - use Ubic::SingletonLock;
ok 15 - use Ubic::UserGroupInspection;
ok 16 - use Ubic::Cmd::Results;
ok 17 - use Ubic::Credentials::OS::POSIX;
ok 18 - use Ubic::Credentials::OS::Windows;
ok 19 - use Ubic::Daemon::OS;
ok 20 - use Ubic::Daemon::PidState;
ok 21 - use Ubic::Daemon::Status;
ok 22 - use Ubic::Daemon::OS::Linux;
ok 23 - use Ubic::Daemon::OS::POSIX;
ok 24 - use Ubic::Lockf::Alarm;
ok 25 - use Ubic::Multiservice::Dir;
ok 26 - use Ubic::Multiservice::Simple;
ok 27 - use Ubic::Result::Class;
ok 28 - use Ubic::Service::Common;
ok 29 - use Ubic::Service::SimpleDaemon;
ok 30 - use Ubic::Service::Skeleton;
ok 31 - use Ubic::Service::Utils;
ok 32 - require(bin/ubic) lives
ok 33 - require(bin/ubic-daemon) lives
ok 34 - require(bin/ubic-update) lives
ok 35 - require(bin/ubic-watchdog) lives
ok
t\cmd.t ..................
1..8
Failed 8/8 subtests
t\daemon.t ...............
1..23
Failed 23/23 subtests
t\lock.t .................
1..5
ok 1 - lock acuquired
ok 2 - lock acuquired again
ok 3
ok 4 - lock after 1 second
ok 5 - lock after 1 second
ok
t\memory-leak.t ..........
1..0 # SKIP memory leak test is linux-specific
skipped: memory leak test is linux-specific
t\multiservice-names.t ...
1..4
ok 1
ok 2
ok 3
ok 4
ok
t\multiservice-simple.t .. #
# main->generic
1..12
ok 1 - has_service returns true for existing service
ok 2 - has_service returns false for non-existing service
ok 3 - services() return both services
ok 4 - service_names() return both service names
ok 5 - service_names() return both service names even when it's named
ok 6 - multiservice assigns names to services
ok 7 - ...unless they are already named
#
# main->nested
ok 8 - new fails when non-service is specified as value
ok 9 - nested
ok 10 - nested
ok 11 - nested
ok 12 - nested
ok
t\ping.t .................
1..24
Can't open log: No such file or directory at t\ping.t line 39.
Failed to eval 't/service/ubic-ping': syntax error at t/service/ubic-ping line 1, near ";
# line 1 t/service/ubic-ping
# line 1 t/service/ubic-ping
.."
END failed--call queue aborted at t\ping.t line 39.
# Looks like your test exited with 2 before it could output anything.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 24/24 subtests
t\pod.t ..................
1..33
ok 1 - POD test for lib\Ubic.pm
ok 2 - POD test for lib\Ubic\AccessGuard.pm
ok 3 - POD test for lib\Ubic\Cmd.pm
ok 4 - POD test for lib\Ubic\Credentials.pm
ok 5 - POD test for lib\Ubic\Daemon.pm
ok 6 - POD test for lib\Ubic\Lockf.pm
ok 7 - POD test for lib\Ubic\Logger.pm
ok 8 - POD test for lib\Ubic\Multiservice.pm
ok 9 - POD test for lib\Ubic\Persistent.pm
ok 10 - POD test for lib\Ubic\Ping.pm (no pod)
ok 11 - POD test for lib\Ubic\PortMap.pm
ok 12 - POD test for lib\Ubic\Result.pm
ok 13 - POD test for lib\Ubic\Run.pm
ok 14 - POD test for lib\Ubic\Service.pm
ok 15 - POD test for lib\Ubic\SingletonLock.pm
ok 16 - POD test for lib\Ubic\UserGroupInspection.pm
ok 17 - POD test for lib\Ubic\Cmd\Results.pm
ok 18 - POD test for lib\Ubic\Daemon\OS.pm
ok 19 - POD test for lib\Ubic\Daemon\PidState.pm
ok 20 - POD test for lib\Ubic\Daemon\Status.pm
ok 21 - POD test for lib\Ubic\Lockf\Alarm.pm
ok 22 - POD test for lib\Ubic\Manual\FAQ.pod
ok 23 - POD test for lib\Ubic\Multiservice\Dir.pm
ok 24 - POD test for lib\Ubic\Multiservice\Simple.pm
ok 25 - POD test for lib\Ubic\Result\Class.pm
ok 26 - POD test for lib\Ubic\Service\Common.pm
ok 27 - POD test for lib\Ubic\Service\SimpleDaemon.pm
ok 28 - POD test for lib\Ubic\Service\Skeleton.pm
ok 29 - POD test for lib\Ubic\Service\Utils.pm
ok 30 - POD test for lib\Ubic\Credentials\OS\POSIX.pm
ok 31 - POD test for lib\Ubic\Credentials\OS\Windows.pm (no pod)
ok 32 - POD test for lib\Ubic\Daemon\OS\Linux.pm (no pod)
ok 33 - POD test for lib\Ubic\Daemon\OS\POSIX.pm (no pod)
ok
t\pod_coverage.t .........
1..32
ok 1 - Pod coverage on Ubic::Result
ok 2 - Pod coverage on Ubic::Result::Class
ok 3 - Pod coverage on Ubic::Multiservice::Dir
ok 4 - Pod coverage on Ubic::Credentials
ok 5 - Pod coverage on Ubic::Service
ok 6 - Pod coverage on Ubic
ok 7 - Pod coverage on Ubic::Service::Skeleton
ok 8 - Pod coverage on Ubic::AccessGuard
ok 9 - Pod coverage on Ubic::Persistent
ok 10 - Pod coverage on Ubic::Credentials::OS::Windows
ok 11 - Pod coverage on Ubic::Ping
ok 12 - Pod coverage on Ubic::Daemon::OS::POSIX
ok 13 - Pod coverage on Ubic::Daemon::OS::Linux
ok 14 - Pod coverage on Ubic::Lockf
ok 15 - Pod coverage on Ubic::Run
ok 16 - Pod coverage on Ubic::Multiservice::Simple
ok 17 - Pod coverage on Ubic::Daemon::PidState
ok 18 - Pod coverage on Ubic::SingletonLock
ok 19 - Pod coverage on Ubic::Daemon
ok 20 - Pod coverage on Ubic::Daemon::Status
ok 21 - Pod coverage on Ubic::Lockf::Alarm
ok 22 - Pod coverage on Ubic::UserGroupInspection
ok 23 - Pod coverage on Ubic::Multiservice
ok 24 - Pod coverage on Ubic::Cmd::Results
ok 25 - Pod coverage on Ubic::Daemon::OS
ok 26 - Pod coverage on Ubic::Service::Common
ok 27 - Pod coverage on Ubic::Logger
ok 28 - Pod coverage on Ubic::PortMap
ok 29 - Pod coverage on Ubic::Service::Utils
ok 30 - Pod coverage on Ubic::Cmd
ok 31 - Pod coverage on Ubic::Credentials::OS::POSIX
ok 32 - Pod coverage on Ubic::Service::SimpleDaemon
ok
t\result.t ...............
1..7
ok 1 - result function returns result instance
ok 2 - running->status
ok 3 - running->action
ok 4 - already_running->status
ok 5 - already_running->action
ok 6 - coercing simple result to string
ok 7 - coercing result with custom message to string
ok
t\run.t ..................
1..18
# Failed test at t\run.t line 28.
# 'Starting sleeping-daemon... '
not ok 1
# doesn't match '(?-xism:^Starting\ sleeping\-daemon\.\.\.\ started\ \(pid\ \d+\)$)'
not ok 2 - Ubic::Run works, sleeping-daemon is running
# Failed test 'Ubic::Run works, sleeping-daemon is running'
# at t\run.t line 31.
# 'sleeping-daemon not running
# '
# doesn't match '(?x-ism:sleeping-daemon \s+ running)'
ok 3 - Ubic::Run dies encountering an unknown command
Reloading sleeping-daemon... ok 4 - logrotate command implemented
ok 5 - Ubic::Run works, sleeping-daemon is off
# Failed test at t\run.t line 28.
not ok 6# 'Starting sleeping-daemon... '
# doesn't match '(?-xism:^Starting\ sleeping\-daemon\.\.\.\ started\ \(pid\ \d+\)$)'
# Failed test 'Ubic::Run works, sleeping-daemon is running'
# at t\run.t line 31.
not ok 7 - Ubic::Run works, sleeping-daemon is running
# 'sleeping-daemon not running
# '
# doesn't match '(?x-ism:sleeping-daemon \s+ running)'
ok 8 - Ubic::Run dies encountering an unknown command
Reloading sleeping-daemon... ok 9 - logrotate command implemented
ok 10 - Ubic::Run works, sleeping-daemon is off
not ok 11
# Failed test at t\run.t line 28.
# 'Starting sleeping-daemon... '
# doesn't match '(?-xism:^Starting\ sleeping\-daemon\.\.\.\ started\ \(pid\ \d+\)$)'
# Failed test 'Ubic::Run works, sleeping-daemon is running'
not ok 12 - Ubic::Run works, sleeping-daemon is running
# at t\run.t line 31.
# 'sleeping-daemon not running
# '
# doesn't match '(?x-ism:sleeping-daemon \s+ running)'
ok 13 - Ubic::Run dies encountering an unknown command
Reloading sleeping-daemon... ok 14 - logrotate command implemented
ok 15 - Ubic::Run works, sleeping-daemon is off
Das System kann den angegebenen Pfad nicht finden.
# Failed test 'Ubic::Run throws exception when script name is unknown'
# at t\run.t line 48.
not ok 16 - Ubic::Run throws exception when script name is unknown
# ''
# doesn't match '(?-xism:^Strange \$0: /usr/bin/sleeping-daemon)'
ok 17 - status works for multiservice
# Failed test 'status works for multiservice'
# at t\run.t line 56.
not ok 18 - status works for multiservice
# 'Starting multi.sleep1... '
# doesn't match '(?msx-i:
# Starting \s+ multi\.sleep1\.\.\. \s+ started \s+ \(pid \s+ \d+\)\s+
# Starting \s+ multi\.sleep2\.\.\. \s+ started \s+ \(pid \s+ \d+\)
# )'
# Looks like you failed 8 tests of 18.
Dubious, test returned 8 (wstat 2048, 0x800)
Failed 11/18 subtests
t\service.t ..............
1..16
ok 1 - start works
ok 2 - status after start
ok 3 - stop works
ok 4 - status after stop
ok 5 - double start
ok 6 - stop after double start
ok 7 - double stop
ok 8 - start works
ok 9 - status after start
ok 10 - stop works
ok 11 - status after stop
ok 12 - double start
ok 13 - stop after double start
ok 14 - double stop
ok 15 - custom_commands method works
ok 16 - do_custom_command method works
ok
t\simple-daemon.t ........
1..5
ok 1 - status before start
Failed 4/5 subtests
t\ubic.t ................. #
# main->custom_commands
1..18
#
# main->enable_disable
ok 1 - do_custom_command method works
ok 2 - sleeping-daemon is disabled
ok 3 - sleeping-daemon is enabled now
ok 4 - sleeping-daemon2 is still disabled
#
# main->multiservices
ok 5 - sleeping-daemon is disabled again
ok 6 - multi.sleep2 is accessible
ok 7 - multi.sleep3 is non-existent
ok 8 - multi.sleep2 is accessible through short syntax
ok 9 - multi.sleep3 is non-existent with short syntax either
Failed 9/18 subtests
t\watchdog.t ............. Das System kann den angegebenen Pfad nicht finden.
1..0 # SKIP fakeroot is not installed
skipped: fakeroot is not installed
Test Summary Report
-------------------
t\cmd.t (Wstat: 0 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 8 tests but ran 0.
t\daemon.t (Wstat: 0 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 23 tests but ran 0.
t\ping.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 24 tests but ran 0.
t\run.t (Wstat: 2048 Tests: 15 Failed: 8)
Failed tests: 1-2, 6-7, 11-12, 16, 18
Non-zero exit status: 8
Parse errors: Tests out of sequence. Found (5) but expected (4)
Tests out of sequence. Found (6) but expected (5)
Tests out of sequence. Found (7) but expected (6)
Tests out of sequence. Found (8) but expected (7)
Tests out of sequence. Found (10) but expected (8)
Displayed the first 5 of 13 TAP syntax errors.
Re-run prove with the -p option to see them all.
t\simple-daemon.t (Wstat: 0 Tests: 1 Failed: 0)
Parse errors: Bad plan. You planned 5 tests but ran 1.
t\ubic.t (Wstat: 0 Tests: 9 Failed: 0)
Parse errors: Bad plan. You planned 18 tests but ran 9.
Files=16, Tests=169, 14 wallclock secs ( 0.09 usr + 0.03 sys = 0.13 CPU)
Result: FAIL
D:\Ubic>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment