Lines Matching defs:setup
19 @EXPORT = (@Test::More::EXPORT, qw(setup run indir cmd app fuzz test
37 setup("my_test_name");
76 # The name of the test. This is set by setup() and is used in the other
77 # functions to verify that setup() has been used.
91 # tests or not. This is set by setup() if the environment variable STOPTEST
119 =item B<setup "NAME">
121 C<setup> is used for initial setup, and it is mandatory that it's used.
125 C<setup> checks for environment variables (see L</ENVIRONMENT> below),
135 sub setup {
140 BAIL_OUT("setup() must receive a name") unless $test_name;
141 warn "setup() detected test name change. Innocuous, so we continue...\n"
146 BAIL_OUT("setup() needs \$TOP or \$SRCTOP and \$BLDTOP to be defined")
148 BAIL_OUT("setup() found both \$TOP and \$SRCTOP or \$BLDTOP...")
153 BAIL_OUT("setup() expects the file Configure in the source top directory")
167 the one C<setup> moved into, usually a subdirectory, given by SUBDIR.
665 BAIL_OUT("Must run setup() first") if (! $test_name);
684 BAIL_OUT("Must run setup() first") if (! $test_name);
906 This environment variable is mandatory. C<setup> will check that it's
908 If this isn't so, C<setup> will C<BAIL_OUT>.
971 # therefore on the proper use of setup() and when needed, indir().
978 BAIL_OUT("Must run setup() first") if (! $test_name);
985 BAIL_OUT("Must run setup() first") if (! $test_name);
991 BAIL_OUT("Must run setup() first") if (! $test_name);
998 BAIL_OUT("Must run setup() first") if (! $test_name);
1026 BAIL_OUT("Must run setup() first") if (! $test_name);
1036 BAIL_OUT("Must run setup() first") if (! $test_name);
1046 BAIL_OUT("Must run setup() first") if (! $test_name);
1056 BAIL_OUT("Must run setup() first") if (! $test_name);
1065 BAIL_OUT("Must run setup() first") if (! $test_name);
1246 BAIL_OUT("Must run setup() first") if (! $test_name);