]> git.pld-linux.org Git - packages/frauddetector.git/commitdiff
- run tests
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 21 Apr 2010 11:07:22 +0000 (11:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    frauddetector.spec -> 1.3

frauddetector.spec

index 8c902e8bf0ac30546cd2af37d873f6e291463829..e188d13f1e5f6c8cd42523a11abf0861d16d15bf 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests           # don't build and run tests
+
 %define                svnrev  79
 %define                rel             0.2
 %include       /usr/lib/rpm/macros.java
@@ -49,6 +53,10 @@ EOF
 %build
 %ant
 
+%if %{with tests}
+%java -jar %{name}.jar test/conf.properties
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir},%{_appdir}}
This page took 0.098131 seconds and 4 git commands to generate.