From 58176910ab6c1b65631481f50a1ad31cc17c35e0 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 01 Sep 2006 01:16:17 +0000
Subject: [PATCH] Update the build script to ensure that checkstyle is run on the unit tests and functional/integration tests. At the present time, this includes only ensuring that the CDDL header is included at the top of the file. It also updates three integration test source files to add a missing line break in the CDDL header.
---
opends/build.xml | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/opends/build.xml b/opends/build.xml
index 674810d..82aba0a 100644
--- a/opends/build.xml
+++ b/opends/build.xml
@@ -56,6 +56,12 @@
<property name="unittest.report.dir"
location="${build.dir}/unit-tests/report"/>
+ <!-- Properties for use in functional/integration testing. -->
+ <property name="functest.testng.dir"
+ location="tests/integration-tests-testng" />
+ <property name="functest.testng.src.dir"
+ location="${functest.testng.dir}/src"/>
+
<!-- Properties for use with the DSML component. -->
<property name="dsml.dir" location="resource/dsml" />
<property name="dsml.src.dir" location="src/dsml" />
@@ -221,6 +227,18 @@
includes="**/*.java" />
<formatter type="plain" />
</checkstyle>
+
+ <checkstyle config="${checkstyle.dir}/opends-unittest-checkstyle.xml"
+ failOnViolation="true">
+ <fileset dir="${unittest.testng.src.dir}" includes="**/*.java" />
+ <formatter type="plain" />
+ </checkstyle>
+
+ <checkstyle config="${checkstyle.dir}/opends-functest-checkstyle.xml"
+ failOnViolation="true">
+ <fileset dir="${functest.testng.src.dir}" includes="**/*.java" />
+ <formatter type="plain" />
+ </checkstyle>
</target>
@@ -621,8 +639,7 @@
<target name="integration-tests"
description="Builds the integration tests">
- <ant dir="${basedir}/tests/integration-tests-testng">
- </ant>
+ <ant dir="${functest.testng.dir}" />
</target>
</project>
--
Gitblit v1.10.0