File: 03-empty.t

package info (click to toggle)
libtest-dependencies-perl 0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 196 kB
  • ctags: 127
  • sloc: perl: 1,772; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 510 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!perl

use Test::Builder::Tester tests => 2;
use Test::Dependencies;

chdir "t-data/empty";

test_out("not ok 1 - META.yml is present and readable");
test_fail(+2);
test_diag("You seem to be missing a META.yml.  I can't check which dependencies you've declared without it");
ok_dependencies();
test_test("empty directory fails to find META.yml");

chdir "../../t-data/mostly-empty";

test_out("ok 1 - META.yml is present and readable");
ok_dependencies();
test_test("mostly empty directory works just fine");