# Makefile.am for ropp_pp/tests # ============================= # 1. Useful settings # ------------------ SUFFIXES = .sh .pl # 2. The t_ropp_pp program # ----------------------- if HAVE_ROPP_IO noinst_PROGRAMS = ropp_test_abel ropp_pp_summary ropp_pp_compare ropp_test_abel_SOURCES = ropp_test_abel.f90 ropp_pp_summary_SOURCES = ropp_pp_summary.f90 ropp_pp_compare_SOURCES = ropp_pp_compare.f90 endif # 3. Scripts for testing # ---------------------- noinst_SCRIPTS = test_pp_invert.sh test_pp_occ.sh test_pp_rs.sh test_pp_abel.sh \ test_pp_spectra.sh t_ropp_pp test_pp_wopt.sh test_pp_wopt_2d.sh # 5. Libraries to link in # ----------------------- LDADD = ../build/libropp_pp.a # 6. Files to be cleaned # ---------------------- CLEANFILES = *.stb $(MODULES) DISTCLEANFILES = t_ropp_pp ropp_test_abel *.cdl *.nc # 7. Stuff to go into the distribution # ------------------------------------ EXTRA_DIST = test_pp_invert.sh test_pp_occ.sh test_pp_rs.sh test_pp_abel.sh \ test_pp_spectra.sh t_ropp_pp.sh \ test_pp_wopt.sh test_pp_wopt_2d.sh test_pp_occ_gnos.sh \ it_pp_01.pro ncdf_attget.pro ncdf_getvar.pro \ it_pp_spectra_dt.pro it_pp_spectra_ep.pro \ it_pp_wopt_01.pro it_pp_wopt_02.pro \ open_jpgfile.pro close_jpgfile.pro # 8. Compilation rules for scripts # --------------------------------- editsh = sed \ -e 's,@''etcdir''@,$(etcdir),g' \ -e 's,@''datadir''@,$(datadir),g' \ -e 's,@''pkgdatadir''@,$(pkgdatadir),g' \ -e 's,@''defaultcenter''@,$(defaultcenter),g' \ -e 's,@''M4''@,$(M4),g' \ -e 's,@''AWK''@,$(AWK),g' \ -e 's,@''SHELL''@,$(SHELL),g' \ -e 's,@''VERSION''@,$(VERSION),g' \ -e 's,@''PACKAGE''@,$(PACKAGE),g' editpl = sed \ -e 's,@''etcdir''@,$(etcdir),g' \ -e 's,@''datadir''@,$(datadir),g' \ -e 's,@''pkgdatadir''@,$(pkgdatadir),g' \ -e 's,@''perldir''@,$(perldir),g' \ -e 's,@''defaultcenter''@,$(defaultcenter),g' \ -e 's,@''PERL''@,$(PERL),g' \ -e 's,@''VERSION''@,$(VERSION),g' \ -e 's,@''PACKAGE''@,$(PACKAGE),g' .sh: rm -f $@ $@.tmp $(editsh) $< >$@.tmp chmod +x $@.tmp mv $@.tmp $@ .pl: rm -f $@ $@.tmp $(editpl) $< >$@.tmp chmod +x $@.tmp mv $@.tmp $@ # 9. Dependencies # --------------- ropp_test_abel.$(OBJEXT) : ropp_test_abel.f90 ropp_pp_summary.$(OBJEXT) : ropp_pp_summary.f90 ropp_pp_compare.$(OBJEXT) : ropp_pp_compare.f90 # 10. Additional things to do # --------------------------- test: test_pp if HAVE_ROPP_IO test_pp: @ rm -f ./compare.txt @ echo "" @ echo "Testing ROPP PP invert tool..." @ echo "" @ ./test_pp_invert.sh @ echo "" @ echo "Testing ROPP PP occ tool..." @ echo "" @ ./test_pp_occ.sh @ echo "" @ echo "Testing ROPP PP occ tool on GNOS data..." @ echo "" @ ./test_pp_occ_gnos.sh @ echo "" @ echo "Testing ROPP PP raw sampling tool..." @ echo "" @ ./test_pp_rs.sh @ echo "" @ echo "Testing ROPP PP Abel transform and inversion..." @ echo "" @ ./test_pp_abel.sh @ echo "" @ echo "Testing ROPP PP spectra tool..." @ echo "" @ ./test_pp_spectra.sh @ echo "" @ echo "Testing ROPP PP wave optics propagator tool..." @ echo "" @ ./test_pp_wopt.sh @ echo "" @ echo "Testing ROPP PP 2D wave optics propagator tool..." @ echo "" @ ./test_pp_wopt_2d.sh @ echo "" @ echo "Making summary of test result" @ echo "" @ ./ropp_pp_summary @ echo "" @ cat ropp_pp_summary.txt @ echo "" @ echo "This table is saved in ropp_pp_summary.txt." @ echo "Each test has its own log file." @ echo "" else test_pp: @ echo "" @ echo "*********** ROPP_PP TESTING ***********************" @ echo "" @ echo "Configure detects that the ROPP_IO library has not been correctly installed." @ echo "The ropp_pp test routine requires ropp_io and netcdf to be installed first. " @ echo "See ROPP release notes for installation instructions." @ echo "" @ echo "NOTE: " @ echo " ROPP_IO AND NETCDF LIBRARIES ARE ONLY REQUIRED FOR STAND-ALONE" @ echo " ROPP_PP TOOLS AND TEST ROUTINES. USERS WISHING TO LINK ROPP_PP TO " @ echo " THEIR OWN APPLICATIONS NOT REQUIRING INPUT/OUTPUT FUNCTIONS DO" @ echo " NOT NEED TO INSTALL THESE ADDITIONAL LIBRARIES OTHER THAN TO RUN " @ echo " STAND-ALONE TOOLS AND TESTING. See ROPP User Guide for more details." @ echo "" endif