File: Makefile.am

package info (click to toggle)
cpl-plugin-uves 5.7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,520 kB
  • sloc: ansic: 130,895; sh: 11,432; python: 2,924; makefile: 1,006
file content (77 lines) | stat: -rw-r--r-- 2,904 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
## Process this file with automake to produce Makefile.in

##   This file is part of the AMBER Pipeline
##   Copyright (C) 2002-2004 European Southern Observatory

##   This library is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License as published by
##   the Free Software Foundation; either version 2 of the License, or
##   (at your option) any later version.

##   This program is distributed in the hope that it will be useful,
##   but WITHOUT ANY WARRANTY; without even the implied warranty of
##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##   GNU General Public License for more details.

##   You should have received a copy of the GNU General Public License
##   along with this program; if not, write to the Free Software
##   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

AUTOMAKE_OPTIONS = 1.13 foreign serial-tests

DISTCLEANFILES = *~


if MAINTAINER_MODE

MAINTAINERCLEANFILES = $(srcdir)/Makefile.in


endif

reg0:
	p_regtest  -force -id 0 ../../${PACKAGE}_reg/sof

reg1:
	p_regtest  -force -id 1 ../../${PACKAGE}_reg/sof

valgrind:
	p_regtest  -valgrind -preload  ../../${PACKAGE}_reg/sof

regcheck:
	@if test ! -d "${SOF_DATA}" ; then \
		echo "ERROR: The SOF_DATA environment variable was not set to point to the regression data." 1>&2 ; \
		exit 1 ; \
	fi
	mkdir -p .purifydir
	@if test -d ../../${PACKAGE}_reg/sof/; then esorex --version ; fi
	@if test -d ../../${PACKAGE}_reg/sof/; then mkdir -p ../../${PACKAGE}_reg/sof/.purifydir ; fi
	@if test -d ../../${PACKAGE}_reg/sof/.purifydir; then touch ../../${PACKAGE}_reg/sof/.purifydir/_dummy ; fi
#	if test -d ../../${PACKAGE}_reg; then p_regtest  -force -id 0 ../../${PACKAGE}_reg/sof; fi
#       link to the Reference data under ${SOF_DATA}/${PACKAGE}/ReferenceData/
	if test -d ../../${PACKAGE}_reg; then  for i in ${SOF_DATA}/${PACKAGE}/ReferenceData/*.0; do ln -f -s  $$i ../../${PACKAGE}_reg/sof/ ; done ; fi
	if test -d ../../${PACKAGE}_reg; then p_regtest  -force -id 1 ../../${PACKAGE}_reg/sof; fi 
	@if test "$$?x" = "0x"; then echo PASS: regtests; fi
	@if test "$$?x" != "0x"; then echo FAILED: regtests; fi
	@if test -d ../../${PACKAGE}_reg/sof/.purifydir; then cp ../../${PACKAGE}_reg/sof/.purifydir/* .purifydir; fi

check:
	@if test -d /NRI && (echo `hostname` | grep '^vm.*nri$$' > /dev/null 2>&1) && (echo `pwd` | grep '^/disk.*/NRI/DFS' > /dev/null 2>&1) ; then \
		echo "Detected NRI environment, will run regression tests automatically..." ; \
		$(MAKE) $(AM_MAKEFLAGS) regcheck ; \
	else \
		if test x"${FORCE_REGCHECK}" = xyes ; then \
			$(MAKE) $(AM_MAKEFLAGS) regcheck ; \
		else \
			echo "Skipping regression tests. To execute them, either run 'make regcheck' or set the environment variable FORCE_REGCHECK=yes." ; \
		fi ; \
	fi

if PURIFY
include $(top_builddir)/Makefile.purify
endif