Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
f68a52ca
Commit
f68a52ca
authored
Jul 30, 2017
by
James Willis
Browse files
Added testInteractions to test suite.
parent
cd3a4d79
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
f68a52ca
...
...
@@ -869,6 +869,7 @@ AC_CONFIG_FILES([tests/test125cells.sh], [chmod +x tests/test125cells.sh])
AC_CONFIG_FILES([tests/test125cellsPerturbed.sh], [chmod +x tests/test125cellsPerturbed.sh])
AC_CONFIG_FILES([tests/testPeriodicBC.sh], [chmod +x tests/testPeriodicBC.sh])
AC_CONFIG_FILES([tests/testPeriodicBCPerturbed.sh], [chmod +x tests/testPeriodicBCPerturbed.sh])
AC_CONFIG_FILES([tests/testInteractions.sh], [chmod +x tests/testInteractions.sh])
AC_CONFIG_FILES([tests/testParser.sh], [chmod +x tests/testParser.sh])
# Save the compilation options
...
...
tests/Makefile.am
View file @
f68a52ca
...
...
@@ -24,7 +24,7 @@ TESTS = testGreetings testMaths testReading.sh testSingle testKernel testSymmetr
testPair.sh testPairPerturbed.sh test27cells.sh test27cellsPerturbed.sh
\
testParser.sh testSPHStep test125cells.sh test125cellsPerturbed.sh testFFT
\
testAdiabaticIndex testRiemannExact testRiemannTRRS testRiemannHLLC
\
testMatrixInversion testThreadpool testDump testLogger
\
testMatrixInversion testThreadpool testDump testLogger
testInteractions.sh
\
testVoronoi1D testVoronoi2D testVoronoi3D
\
testPeriodicBC.sh testPeriodicBCPerturbed.sh
...
...
@@ -101,5 +101,5 @@ EXTRA_DIST = testReading.sh makeInput.py testPair.sh testPairPerturbed.sh \
testPeriodicBCPerturbed.sh test125cells.sh test125cellsPerturbed.sh testParserInput.yaml
\
difffloat.py tolerance_125_normal.dat tolerance_125_perturbed.dat
\
tolerance_27_normal.dat tolerance_27_perturbed.dat tolerance_27_perturbed_h.dat
\
tolerance_pair_normal.dat tolerance_pair_perturbed.dat
\
tolerance_pair_normal.dat tolerance_pair_perturbed.dat
tolerance_testInteractions.dat
\
fft_params.yml tolerance_periodic_BC_normal.dat tolerance_periodic_BC_perturbed.dat
tests/testInteractions.sh.in
0 → 100644
View file @
f68a52ca
#!/bin/bash
echo
""
rm
-f
test_nonsym_density_serial.dat test_nonsym_density_vec.dat
echo
"Running ./testInteractions"
./testInteractions
if
[
-e
test_nonsym_density_serial.dat
]
then
if
python @srcdir@/difffloat.py test_nonsym_density_serial.dat test_nonsym_density_vec.dat @srcdir@/tolerance_testInteractions.dat
then
echo
"Accuracy test passed"
else
echo
"Accuracy test failed"
exit
1
fi
else
echo
"Error Missing test output file"
exit
1
fi
echo
"------------"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment