Add build-conditions to control running additional tests
This commit is contained in:
		
							parent
							
								
									85f27b0b22
								
							
						
					
					
						commit
						ea8941bbbe
					
				| @ -1,3 +1,8 @@ | |||||||
|  | # Run extra test | ||||||
|  | %bcond_without perl_Test_Fatal_enables_extra_test | ||||||
|  | # Run optional test | ||||||
|  | %bcond_without perl_Test_Fatal_enables_optional_test | ||||||
|  | 
 | ||||||
| Summary:	Incredibly simple helpers for testing code with exceptions  | Summary:	Incredibly simple helpers for testing code with exceptions  | ||||||
| Name:		perl-Test-Fatal | Name:		perl-Test-Fatal | ||||||
| Version:	0.014 | Version:	0.014 | ||||||
| @ -23,10 +28,14 @@ BuildRequires:	perl(File::Spec) | |||||||
| BuildRequires:	perl(overload) | BuildRequires:	perl(overload) | ||||||
| BuildRequires:	perl(Test::Builder::Tester) | BuildRequires:	perl(Test::Builder::Tester) | ||||||
| BuildRequires:	perl(Test::More) >= 0.96 | BuildRequires:	perl(Test::More) >= 0.96 | ||||||
|  | %if %{with perl_Test_Fatal_enables_optional_test} | ||||||
| # Optional Tests | # Optional Tests | ||||||
| BuildRequires:	perl(CPAN::Meta) >= 2.120900 | BuildRequires:	perl(CPAN::Meta) >= 2.120900 | ||||||
|  | %endif | ||||||
|  | %if %{with perl_Test_Fatal_enables_extra_test} | ||||||
| # Extra Tests | # Extra Tests | ||||||
| BuildRequires:	perl(Test::Pod) >= 1.41 | BuildRequires:	perl(Test::Pod) >= 1.41 | ||||||
|  | %endif | ||||||
| # Runtime | # Runtime | ||||||
| Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) | Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) | ||||||
| Requires:	perl(Test::Builder) | Requires:	perl(Test::Builder) | ||||||
| @ -53,7 +62,9 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} ';' | |||||||
| 
 | 
 | ||||||
| %check | %check | ||||||
| make test | make test | ||||||
|  | %if %{with perl_Test_Fatal_enables_extra_test} | ||||||
| make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" | make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" | ||||||
|  | %endif | ||||||
| 
 | 
 | ||||||
| %files | %files | ||||||
| %license LICENSE | %license LICENSE | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user