Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
67643176
Commit
67643176
authored
Apr 25, 2012
by
Andy Yates
Browse files
fixing dependencies.t test case. Now works no matter where you run the test cases from
parent
227fe686
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/t/dependencies.t
modules/t/dependencies.t
+9
-9
No files found.
modules/t/dependencies.t
View file @
67643176
...
...
@@ -2,18 +2,16 @@
use
strict
;
use
warnings
;
use
Test::
More
;
use
File::
Spec
;
#use Bio::EnsEMBL::Test::TestUtils;
use
Bio::EnsEMBL::Test::
TestUtils
;
BEGIN
{
$|
=
1
;
use
Test
;
plan
tests
=>
1
;
}
my
(
$volume
,
$directory
,
$file
)
=
File::
Spec
->
splitpath
(
__FILE__
);
$directory
=
File::
Spec
->
rel2abs
(
$directory
);
my
$modules_dir
=
File::
Spec
->
catdir
(
$directory
,
File::
Spec
->
updir
(),
qw/Bio EnsEMBL/
);
#test for dependencies on Variation, Compara and Funcgen APIs
my
@result
=
`
egrep -r "use Bio::EnsEMBL::(Variation|Compara|Funcgen){1}" ../Bio/EnsEMBL/
`;
my
@result
=
`
egrep -r "use Bio::EnsEMBL::(Variation|Compara|Funcgen){1}"
$modules_dir
`;
my
%result
=
map
{
$_
=>
1
}
@result
;
...
...
@@ -36,3 +34,5 @@ if (%result) {
warn
"
Dependencies found in the following files:
\n
";
warn
keys
%result
;
}
done_testing
();
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment