Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added src validation test

  • Loading branch information...
commit 2b433b4c5965a1919c90a2f8e162390986a7122a 1 parent efc457e
Joel Berger jberger authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 t/validation.t
13 t/validation.t
View
@@ -11,14 +11,19 @@ ok( $builder->alien_validate_repo( {platform => undef} ), "undef validates to tr
SKIP: {
skip "Windows test", 2 unless $builder->is_windowsish();
- ok( $builder->alien_validate_repo( {platform => 'Windows'} ), "OS string (Windows)");
- ok( ! $builder->alien_validate_repo( {platform => 'Unix'} ), "OS string (Unix on Windows) is false");
+ ok( $builder->alien_validate_repo( {platform => 'Windows'} ), "platform Windows on Windows");
+ ok( ! $builder->alien_validate_repo( {platform => 'Unix'} ), "platform Unix on Windows is false");
}
SKIP: {
skip "Unix test", 2 unless $builder->is_unixish();
- ok( $builder->alien_validate_repo( {platform => 'Unix'} ), "OS string (Unix)");
- ok( ! $builder->alien_validate_repo( {platform => 'Windows'} ), "OS string (Windows on Unix) is false");
+ ok( $builder->alien_validate_repo( {platform => 'Unix'} ), "platform Unix on Unix");
+ ok( ! $builder->alien_validate_repo( {platform => 'Windows'} ), "platform Windows on Unix is false");
+}
+
+SKIP: {
+ skip "Needs c compiler", 1 unless $builder->have_c_compiler();
+ ok( $builder->alien_validate_repo( {platform => 'src'} ), "platform src");
}
done_testing;
Please sign in to comment.
Something went wrong with that request. Please try again.