| 1 |
include $(top_srcdir)/config/automake.common |
| 2 |
|
| 3 |
TESTS_ENVIRONMENT = eval H5DUMP=@H5DUMP@ SRCDIR="$(abs_srcdir)" BUILDDIR="$(abs_builddir)" \ |
| 4 |
EXECDIR="$(abs_builddir)" CP=${CP} CPYMED="no" |
| 5 |
|
| 6 |
#TESTS_ENVIRONMENT += UPDATE="yes" |
| 7 |
#TESTS_ENVIRONMENT += OUTPUT="yes" DIFFOUTPUT="yes" |
| 8 |
#TESTS_ENVIRONMENT += OUTPUT="yes" CHECKER="libtool --mode=execute valgrind" |
| 9 |
|
| 10 |
unittestsdir= $(bindir)/unittests |
| 11 |
|
| 12 |
##check_PROGRAMS |
| 13 |
##bin_PROGRAMS |
| 14 |
|
| 15 |
AM_CFLAGS = -DDEF_LECT_ECR |
| 16 |
#-DUSER_INTERLACE=MED_FULL_INTERLACE |
| 17 |
#-DDEF_LECT_AJOUT |
| 18 |
|
| 19 |
# Les tests unitaires n'ont pas besoin d'être installés |
| 20 |
#unittests_PROGRAMS = |
| 21 |
check_PROGRAMS = \ |
| 22 |
Test_MEDmeshNodeCoordinateTrsfWr \ |
| 23 |
Test_MEDmeshNodeCoordinateTrsfRd |
| 24 |
|
| 25 |
LDADD = $(top_builddir)/src/libmedC.la |
| 26 |
|
| 27 |
nodist_EXTRA_Test_MEDmeshNodeCoordinateTrsfWr_SOURCES = dummy.cxx |
| 28 |
nodist_EXTRA_Test_MEDmeshNodeCoordinateTrsfRd_SOURCES = dummy.cxx |
| 29 |
|
| 30 |
# Les tests unitaires travaillent avec un fichier commun current.med (qui est dupliqué ds <nom_du_test>.med ds les scripts .shn) |
| 31 |
# Il faut donc parfois un sous répertoire pour tester des fonctions qui travaillent sur un fichier current.med différent |
| 32 |
# (sauf si on s'affranchit de l'utilisation du fichier current.med ou après l'avoir supprimé par un script .she) |
| 33 |
# Les scripts doivent s'executer de façon séquentielle |
| 34 |
|
| 35 |
SUFFIXES= _Rd.sh _Rd.she _Wr.sh _Wr.shn |
| 36 |
# Inference rules can have only one target before the colon (POSIX) |
| 37 |
.c_Rd.sh: testRd.sh |
| 38 |
${LN_S} -f $(srcdir)/../testRd.sh $@ |
| 39 |
# les scripts .she sont les mêmes que les scripts .sh en lecture mais provoquent la supression du fichier current.med |
| 40 |
.c_Rd.she: testRd.sh |
| 41 |
${LN_S} -f $(srcdir)/../testRd.sh $@ |
| 42 |
.c_Wr.sh: testWr.sh |
| 43 |
${LN_S} -f $(srcdir)/../testWr.sh $@ |
| 44 |
# les scripts .shn sont les mêmes que les scripts .sh en écriture mais provoquent la comparaison du fichier avec un fichier de référence |
| 45 |
.c_Wr.shn: testWr.sh |
| 46 |
${LN_S} -f $(srcdir)/../testWr.sh $@ |
| 47 |
|
| 48 |
|
| 49 |
TESTS_LEC = \ |
| 50 |
Test_MEDmeshNodeCoordinateTrsfRd_Rd.sh |
| 51 |
|
| 52 |
TESTS_ECR = \ |
| 53 |
Test_MEDmeshNodeCoordinateTrsfWr_Wr.sh |
| 54 |
|
| 55 |
BUILT_SOURCES=$(TESTS_ECR) $(TESTS_LEC) |
| 56 |
|
| 57 |
TESTS = $(TESTS_ECR) $(TESTS_LEC) |
| 58 |
|
| 59 |
#check_local: |
| 60 |
# $(MAKE) check_test_ecr |
| 61 |
# $(MAKE) check_test_lec SRC_REP=$(srcdir) |
| 62 |
# $(MAKE) check_test_lec SRC_REP=$(srcdir)/2.3.1 |
| 63 |
|
| 64 |
#check_test_ecr: $(TESTS_ECR) |
| 65 |
# @for testfile in $1 \ |
| 66 |
# do \ |
| 67 |
# $$testfile \ |
| 68 |
# done |
| 69 |
|
| 70 |
#check_test_lec: $(TESTS_LEC) |
| 71 |
# @for testfile in $1 \ |
| 72 |
# do \ |
| 73 |
# dump.sh $$testfile @H5DUMP@ SRCDIR=$(srcdir) $(SRC_REP)\ |
| 74 |
# done |
| 75 |
|
| 76 |
|
| 77 |
CLEANFILES = \ |
| 78 |
./Test_MEDmeshNodeCoordinateTrsfWr.med \ |
| 79 |
./Test_MEDmeshNodeCoordinateTrsfWr.dump \ |
| 80 |
./Test_MEDmeshNodeCoordinateTrsfRd.med \ |
| 81 |
./Test_MEDmeshNodeCoordinateTrsfRd.dump \ |
| 82 |
./current.med |
| 83 |
|
| 84 |
CLEANFILES+= $(BUILT_SOURCES) *.dump *.dump.ref *.dump.tmp *med.out *.out *.out.ref *.out.tmp |
| 85 |
|
| 86 |
SUBDIRS = dumps.ref . |