File: Makefile.am

package info (click to toggle)
cpl-plugin-vimos 4.1.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 28,228 kB
  • sloc: ansic: 169,271; cpp: 16,177; sh: 4,344; python: 3,678; makefile: 1,138; perl: 10
file content (93 lines) | stat: -rw-r--r-- 3,095 bytes parent folder | download | duplicates (5)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
## 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
	@if test -d ../../${PACKAGE}_reg/sof/; then esorex --version ; 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

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

rec_all:
	cd ../../${PACKAGE}_reg; make all; cd -

rec_validate:
	cd ../../${PACKAGE}_reg; make validate; cd -

rec_nri:
	cd ../../${PACKAGE}_reg; make nri; cd -

rec_check:
	cd ../../${PACKAGE}_reg; make check; cd -

rec_valgrind:
	cd ../../${PACKAGE}_reg; make valgrind; cd -

rec_compare:
	cd ../../${PACKAGE}_reg; make compare; cd -

rec_nose:
	cd ../../${PACKAGE}_reg; make nose; cd -

rec_clean:
	cd ../../${PACKAGE}_reg; make clean; cd -



.PHONY: reg0 reg1 valgrind regcheck check rec_all rec_validate rec_nri rec_check rec_valgrind rec_compare rec_nose rec_clean 
.NOTPARALLEL: