~ubuntu-branches/ubuntu/natty/evolution-data-server/natty

« back to all changes in this revision

Viewing changes to libdb/dist/aclocal_java/ac_check_junit.ac

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl @synopsis AC_CHECK_JUNIT
2
 
dnl
3
 
dnl AC_CHECK_JUNIT tests the availability of the Junit testing
4
 
dnl framework, and set some variables for conditional compilation
5
 
dnl of the test suite by automake.
6
 
dnl
7
 
dnl If available, JUNIT is set to a command launching the text
8
 
dnl based user interface of Junit, @JAVA_JUNIT@ is set to $JAVA_JUNIT
9
 
dnl and @TESTS_JUNIT@ is set to $TESTS_JUNIT, otherwise they are set
10
 
dnl to empty values.
11
 
dnl
12
 
dnl You can use these variables in your Makefile.am file like this :
13
 
dnl
14
 
dnl  # Some of the following classes are built only if junit is available
15
 
dnl  JAVA_JUNIT  = Class1Test.java Class2Test.java AllJunitTests.java
16
 
dnl
17
 
dnl  noinst_JAVA = Example1.java Example2.java @JAVA_JUNIT@
18
 
dnl
19
 
dnl  EXTRA_JAVA  = $(JAVA_JUNIT)
20
 
dnl
21
 
dnl  TESTS_JUNIT = AllJunitTests
22
 
dnl
23
 
dnl  TESTS       = StandaloneTest1 StandaloneTest2 @TESTS_JUNIT@
24
 
dnl
25
 
dnl  EXTRA_TESTS = $(TESTS_JUNIT)
26
 
dnl
27
 
dnl  AllJunitTests :
28
 
dnl     echo "#! /bin/sh" > $@
29
 
dnl     echo "exec @JUNIT@ my.package.name.AllJunitTests" >> $@
30
 
dnl     chmod +x $@
31
 
dnl
32
 
dnl @author Luc Maisonobe
33
 
dnl @version $Id$
34
 
dnl
35
 
AC_DEFUN([AC_CHECK_JUNIT],[
36
 
AC_CACHE_VAL(ac_cv_prog_JUNIT,[
37
 
AC_CHECK_CLASS(junit.textui.TestRunner)
38
 
if test x"`eval 'echo $ac_cv_class_junit_textui_TestRunner'`" != xno ; then
39
 
  ac_cv_prog_JUNIT='$(CLASSPATH_ENV) $(JAVA) $(JAVAFLAGS) junit.textui.TestRunner'
40
 
fi])
41
 
AC_MSG_CHECKING([for junit])
42
 
if test x"`eval 'echo $ac_cv_prog_JUNIT'`" != x ; then
43
 
  JUNIT="$ac_cv_prog_JUNIT"
44
 
  JAVA_JUNIT='$(JAVA_JUNIT)'
45
 
  TESTS_JUNIT='$(TESTS_JUNIT)'
46
 
else
47
 
  JUNIT=
48
 
  JAVA_JUNIT=
49
 
  TESTS_JUNIT=
50
 
fi
51
 
AC_MSG_RESULT($JAVA_JUNIT)
52
 
AC_SUBST(JUNIT)
53
 
AC_SUBST(JAVA_JUNIT)
54
 
AC_SUBST(TESTS_JUNIT)])