~ubuntu-branches/debian/jessie/arb/jessie

« back to all changes in this revision

Viewing changes to UNIT_TESTER/Makefile.suite

  • Committer: Package Import Robot
  • Author(s): Elmar Pruesse, Andreas Tille, Elmar Pruesse
  • Date: 2014-09-02 15:15:06 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140902151506-jihq58b3iz342wif
Tags: 6.0.2-1
[ Andreas Tille ]
* New upstream version
  Closes: #741890
* debian/upstream -> debian/upstream/metadata
* debian/control:
   - Build-Depends: added libglib2.0-dev
   - Depends: added mafft, mrbayes
* debian/rules
   - Add explicite --remove-section=.comment option to manual strip call
* cme fix dpkg-control
* arb-common.dirs: Do not create unneeded lintian dir
* Add turkish debconf translation (thanks for the patch to Mert Dirik
  <mertdirik@gmail.com>)
  Closes: #757497

[ Elmar Pruesse ]
* patches removed:
   - 10_config.makefiles.patch,
     80_no_GL.patch
       removed in favor of creating file from config.makefile.template via 
       sed in debian/control
   - 20_Makefile_main.patch
       merged upstream
   - 21_Makefiles.patch
       no longer needed
   - 30_tmpfile_CVE-2008-5378.patch: 
       merged upstream
   - 50_fix_gcc-4.8.patch:
       merged upstream
   - 40_add_libGLU.patch:
       libGLU not needed for arb_ntree)
   - 60_use_debian_packaged_raxml.patch:
       merged upstream
   - 70_hardening.patch
       merged upstream
   - 72_add_math_lib_to_linker.patch
       does not appear to be needed
* patches added:
   - 10_upstream_r12793__show_db_load_progress:
       backported patch showing progress while ARB is loading a database
       (needed as indicator/splash screen while ARB is launching)
   - 20_upstream_r12794__socket_permissions:
       backported security fix
   - 30_upstream_r12814__desktop_keywords:
       backported add keywords to desktop (fixes lintian warning)
   - 40_upstream_r12815__lintian_spelling:
       backported fix for lintian reported spelling errors
   - 50_private_nameservers
       change configuration to put nameservers into users home dirs
       (avoids need for shared writeable directory)
   - 60_use_debian_phyml
       use phyml from debian package for both interfaces in ARB
* debian/rules:
   - create config.makefile from override_dh_configure target
   - use "make tarfile" in override_dh_install
   - remove extra cleaning not needed for ARB 6
   - use "dh_install --list-missing" to avoid missing files
   - added override_dh_fixperms target
* debian/control:
   - added libarb-dev package
   - Depends: added phyml, xdg-utils
   - Suggests: removed phyml
   - fix lintian duplicate-short-description (new descriptions)
* debian/*.install:
   - "unrolled" confusing globbing to select files
   - pick files from debian/tmp
   - moved all config files to /etc/arb
* debian/arb-common.templates: updated
* scripts:
   - removed arb-add-pt-server
   - launch-wrapper: 
     - only add demo.arb to newly created $ARBUSERDATA
     - pass commandline arguments through bin/arb wrapper
   - preinst: removing old PT server index files on upgrade from 5.5*
   - postinst: set setgid on shared PT dir
* rewrote arb.1 manfile
* added file icon for ARB databases
* using upstream arb_tcp.dat

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
notarget:
 
3
        @echo "Usage: make (init|cleanup|unskip)" 
 
4
        false
 
5
 
 
6
include Makefile.setup.include
 
7
 
 
8
TEST_BASE=`pwd`
 
9
 
 
10
TEST_REPORTER = ./reporter.pl
 
11
TEST_LOG_DIR = ./logs
 
12
TEST_FLAG_DIR = ./flags
 
13
 
 
14
JUNIT_LOG = $(TEST_LOG_DIR)/junit_log.xml# see also reporter.pl@JUNITLOGNAME
 
15
 
 
16
PATCHNAMEBASE:=TestsOk
 
17
PATCHNAMESUFFIX:=
 
18
 
 
19
VALGRIND_INTERNAL=$(findstring B,$(VALGRIND))$(findstring A,$(VALGRIND))
 
20
VALGRIND_EXTERNAL=$(findstring E,$(VALGRIND))
 
21
VALGRIND_ANY=$(VALGRIND_INTERNAL)$(VALGRIND_EXTERNAL)
 
22
 
 
23
# -------------------- build patch name
 
24
 
 
25
ifneq ('$(RESTRICT_LIB)','')
 
26
PATCHNAMESUFFIX:=$(PATCHNAMESUFFIX)__only_$(RESTRICT_LIB)
 
27
endif
 
28
 
 
29
ifneq ($(RESTRICT_MODULE),'.')
 
30
PATCHNAMESUFFIX:=$(PATCHNAMESUFFIX)__notAllFiles
 
31
endif
 
32
 
 
33
SKIPPED_SLOW:=$(shell (test -f skipslow.stamp && ls -1 skipslow.stamp))
 
34
ifneq ('$(SKIPPED_SLOW)','')
 
35
PATCHNAMESUFFIX:=$(PATCHNAMESUFFIX)__SLOW_skipped
 
36
endif
 
37
 
 
38
ifneq ('$(VALGRIND_ANY)','')
 
39
PATCHNAMESUFFIX:=$(PATCHNAMESUFFIX)__valgrinded_$(VALGRIND_ANY)
 
40
endif
 
41
 
 
42
PATCHNAMESUFFIX:=$(subst :,_,$(PATCHNAMESUFFIX))
 
43
 
 
44
# -------------------- targets
 
45
 
 
46
failed_to_clean:
 
47
        @echo "$(TEST_BASE)/Makefile.suite:45: Error: Failed to clean environment"
 
48
        @echo "If there are any changing|failed*.flag files listed here:"
 
49
        @ls -al $(TEST_FLAG_DIR)/changing*.flag $(TEST_FLAG_DIR)/failed*.flag
 
50
        @echo "then some test_environment failed to setup or cleanup properly!"
 
51
        @echo "[Note: removing flag-files now to avoid failure of next test-run]"
 
52
        rm $(TEST_FLAG_DIR)/changing*.flag $(TEST_FLAG_DIR)/failed*.flag
 
53
        @echo "$(TEST_BASE)/$(TEST_LOG_DIR):0: Hint: if no error is reported further below, you may also find the cause in these log-files"
 
54
        @grep -Pin 'arb-backtrace|segv' $(TEST_BASE)/$(TEST_LOG_DIR)/*.log | grep -v 'GBK_install_SIGSEGV_handler'
 
55
# do NOT fail here, otherwise reporter will get no chance to list failure-reason 
 
56
 
 
57
cleanup_environment:
 
58
        ./test_environment clean || $(MAKE) -f Makefile.suite failed_to_clean
 
59
ifeq ($(VALGRIND_EXTERNAL),E)
 
60
        ./valgrind/arb_valgrind_logged WAIT
 
61
endif
 
62
 
 
63
tests_passed: cleanup_environment
 
64
        @$(TEST_REPORTER) report $(TEST_LOG_DIR) $(SKIP_SLOW)
 
65
 
 
66
update_patches_if_passed: tests_passed
 
67
        @../SOURCE_TOOLS/arb_create_patch.sh $(PATCHNAMEBASE)$(PATCHNAMESUFFIX)
 
68
        @../SOURCE_TOOLS/arb_cleanup_patches.pl $(PATCHNAMEBASE) $(PATCHES_KEEP_HOURS) $(PATCHES_MIN_KEPT) 
 
69
 
 
70
unskip:
 
71
        @(test -f skipslow.stamp && rm skipslow.stamp) || true
 
72
 
 
73
init:
 
74
        @echo "$(SEP) Running unit tests"
 
75
        @-rm $(JUNIT_LOG)
 
76
#ifeq ($(VALGRIND_EXTERNAL),E)
 
77
        ./valgrind/arb_valgrind_logged INIT "$(VALGRIND_EXTERNAL)" $(CHECK_LEAKS)
 
78
#endif
 
79
        (export CHECK_RESTRICT=$(RESTRICT_LIB); $(TEST_REPORTER) init $(TEST_LOG_DIR) $(SKIP_SLOW))
 
80
 
 
81
cleanup: update_patches_if_passed
 
82
        ls -al $(JUNIT_LOG)
 
83
        @echo "$(SEP) All unit tests passed"
 
84