Commit b1f55eb8 authored by prudhomm's avatar prudhomm
Browse files

* all tests ported to new testsuite(only three fail and one is disabled)

* use standard naming conventions for tests executables (following directory name)
  it is easier to make script blah blah blah ...
parent f4b20ef7
New in 0.2.90:
* use AutoTest (from autoconf) as testing framework
ported all tests to this framework
ported all tests to GetPot
Bugs fixed in 0.2.0-pre1:
* Bug #23: "fixed wrong assembly in elemOper.cpp in stiff_sd" (MP)
* Bug #27: "No rule to make target `admin/acinclude.m4.in'" (CP)
......
......@@ -82,7 +82,7 @@ else
if test $ac_use_opt_code = "yes"; then
CXXFLAGS="-O2 -funroll-all-loops -fargument-noalias-global -fno-gcse -Wall"
CFLAGS="-O2 -funroll-all-loops -fargument-noalias-global -fno-gcse -Wall"
CPPFLAGS="-DNDEBUG"
CPPFLAGS="-DNDEBUG ${CPPFLAGS}"
fi
fi
......
AC_CONFIG_FILES([ testsuite/atlocal ])
AC_DEFINE_UNQUOTED(LIFE_PREFIX, "${prefix:-\"/usr\"}",[define prefix dir for life installation])
......@@ -24,7 +24,9 @@ SUFFIXES = .cpp .hpp .idl .c .h .f .F .o .moc
include $(top_srcdir)/testsuite/Makefile.testsuite
check_PROGRAMS = Newton
noinst_HEADERS = norm.hpp operFS.hpp ud_functions.hpp
Newton_SOURCES = main.cpp norm.cpp operFS.cpp
check_HEADERS = norm.hpp operFS.hpp ud_functions.hpp
check_PROGRAMS = test_fsi_newton
test_fsi_newton_SOURCES = main.cpp norm.cpp operFS.cpp
EXTRA_DIST = data
......@@ -6,7 +6,7 @@
[fluid]
[./physics]
endtime = 0.03 # endtime
endtime = 0.002 # endtime
density = 1.0 # density
viscosity = 0.03 # viscosity
......@@ -26,7 +26,7 @@ verbose = 1
density = 1.2 # density
young = 3.0E6
poisson = 0.3
endtime = 0.03
endtime = 0.002
[../discretization]
mesh_dir = ../data/mesh/inria/ # the directory where the mesh file is
......
......@@ -8,7 +8,7 @@ AT_DATA([data],[[# -*- getpot -*- (GetPot mode activation for emacs)
[fluid]
[./physics]
endtime = 0.03 # endtime
endtime = 0.002 # endtime
density = 1.0 # density
viscosity = 0.03 # viscosity
......@@ -28,7 +28,7 @@ verbose = 1
density = 1.2 # density
young = 3.0E6
poisson = 0.3
endtime = 0.03
endtime = 0.002
[../discretization]
mesh_dir = ./
......@@ -88,5 +88,6 @@ kspace = 40
tol = 1.00e-6
drop = 1.00e-4
]])
AT_CHECK([ln -sf $top_builddir/testsuite/data/mesh/inria//tube_curve20.mesh && $top_builddir/testsuite/test_fsi_newton/test_fsi_newton],[0],[ignore],[ignore])
AT_CLEANUP
AT_CHECK([ln -sf $top_builddir/testsuite/data/mesh/inria/tube_curve20.mesh && $top_builddir/testsuite/test_fsi_newton/test_fsi_newton],[0],[ignore],[ignore])
AT_CLEANUP([out_res_solid iter num_iter out_iter_solid res])
......@@ -24,7 +24,9 @@ SUFFIXES = .cpp .hpp .idl .c .h .f .F .o .moc
include $(top_srcdir)/testsuite/Makefile.testsuite
check_PROGRAMS = Picard
noinst_HEADERS = norm.hpp operFS.hpp ud_functions.hpp
Picard_SOURCES = main.cpp norm.cpp
check_HEADERS = norm.hpp operFS.hpp ud_functions.hpp
check_PROGRAMS = test_fsi_picard
test_fsi_picard_SOURCES = main.cpp norm.cpp
EXTRA_DIST = data
......@@ -6,7 +6,7 @@
[fluid]
[./physics]
endtime = 0.03 # endtime
endtime = 0.0002 # endtime
density = 1.0 # density
viscosity = 0.03 # viscosity
......@@ -26,7 +26,7 @@ verbose = 1
density = 1.2 # density
young = 3.0E6
poisson = 0.3
endtime = 0.03
endtime = 0.0002
[../discretization]
mesh_dir = ../data/mesh/inria/ # the directory where the mesh file is
......
......@@ -8,7 +8,7 @@ AT_DATA([data],[[# -*- getpot -*- (GetPot mode activation for emacs)
[fluid]
[./physics]
endtime = 0.03 # endtime
endtime = 0.0002 # endtime
density = 1.0 # density
viscosity = 0.03 # viscosity
......@@ -28,7 +28,7 @@ verbose = 1
density = 1.2 # density
young = 3.0E6
poisson = 0.3
endtime = 0.03
endtime = 0.0002
[../discretization]
mesh_dir = ./
......@@ -89,4 +89,4 @@ tol = 1.00e-6
drop = 1.00e-4
]])
AT_CHECK([ln -sf $top_builddir/testsuite/data/mesh/inria//tube2x4x20.mesh && $top_builddir/testsuite/test_fsi_picard/test_fsi_picard],[0],[ignore],[ignore])
AT_CLEANUP
AT_CLEANUP([num_iter out_iter_solid out_res_solid])
......@@ -12,7 +12,7 @@ AT_DATA([data],[[# -*- getpot -*- (GetPot mode activation for emacs)
density = 1.2 # density
young = 3.0E6
poisson = 0.3
endtime = 2.0
endtime = 0.02
[../discretization]
mesh_dir = ./
......
......@@ -24,9 +24,10 @@ SUFFIXES = .cpp .hpp .idl .c .h .f .F .o .moc
include $(top_srcdir)/testsuite/Makefile.testsuite
check_PROGRAMS = test_mass
noinst_HEADERS = ud_functions.hpp
test_mass_SOURCES = main.cpp
check_HEADERS = ud_functions.hpp
check_PROGRAMS = test_masstransport
test_masstransport_SOURCES = main.cpp
EXTRA_DIST = data
......@@ -11,7 +11,7 @@
density = 1.0 # density
viscosity = 0.035 # viscosity
inittime = 0.00 # inittime
endtime = 0.10 # endtime
endtime = 0.02 # endtime
[../discretization]
......
......@@ -13,7 +13,7 @@ AT_DATA([data],[[# -*- getpot -*- (GetPot mode activation for emacs)
density = 1.0 # density
viscosity = 0.035 # viscosity
inittime = 0.00 # inittime
endtime = 0.10 # endtime
endtime = 0.2 # endtime
[../discretization]
......
......@@ -9,5 +9,5 @@ mesh_dir = ./
mesh_file = 'cube_47785.m++' # mesh file
mesh_faces = all # update all faces elements
]])
AT_CHECK([ln -sf $top_builddir/testsuite/'data/mesh/mesh++/'/'cube_47785.m++' && $top_builddir/testsuite/test_mesh/test_mesh],[0],[ignore],[ignore])
AT_CHECK([ln -sf $top_builddir/testsuite/data/mesh/mesh++/cube_47785.m++ && $top_builddir/testsuite/test_mesh/test_mesh],[0],[ignore],[ignore])
AT_CLEANUP
......@@ -25,7 +25,10 @@ m4_include([test_bdf/testsuite.at])
m4_include([test_ns_bdf/testsuite.at])
m4_include([test_ns_cyl/testsuite.at])
m4_include([test_ns_ipstab/testsuite.at])
m4_include([test_ns_sstress/testsuite.at])
AT_BANNER([test_ns_sstress test is broken, skipping/disabling it])
#m4_include([test_ns_sstress/testsuite.at])
m4_include([test_masstransport/testsuite.at])
m4_include([test_fsi_newton/testsuite.at])
m4_include([test_fsi_picard/testsuite.at])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment