freebsd-ports/math/frobby/files/patch-test_runTests
Steve Wills 2da2d29922 math/frobby: create port
Frobby is a software system and project for computations with monomial
ideals. Frobby is free software and it is intended as a vehicle for
computational and mathematical research on monomial ideals.

The current functionality includes Euler characteristic, Hilbert
series, maximal standard monomials, combinatorial optimization on
monomial ideals, primary decomposition, irreducible decomposition,
Alexander dual, associated primes, minimization and intersection of
monomial ideals as well as the computation of Frobenius problems
(using 4ti2) with very large numbers. Frobby is also able to translate
between formats that can be used with several different computer
systems, such as Macaulay 2, Monos, 4ti2, CoCoA4 and Singular. Thus
Frobby can be used with any of those systems.

WWW: http://www.broune.com/frobby/

PR:		231208
Submitted by:	Lorenzo Salvadore <phascolarctos@protonmail.ch>
2019-03-19 16:04:10 +00:00

60 lines
1.5 KiB
Text

--- test/runTests.orig 2011-09-23 20:09:12 UTC
+++ test/runTests
@@ -15,20 +15,23 @@ normalTests="euler alexdual hilbert_deform hilbert_big
specialTests="internal idealFormats polyFormats latticeFormats messages"
params="$*"
+failed=""
runNormalTests () {
action="$1"; shift;
path="$1"; shift;
cd test/$path;
../testScripts/runtests $action $params
- if [ $? != 0 ]; then exit 1; fi
+ if [ $? != 0 ]; then cd ../..; return 1; fi
cd ../..;
+return 0
}
for t in $normalTests; do
echo -n "$t "
runNormalTests $t specialIdeals
+if [ $? -eq 1 ]; then failed="$failed $t"; continue; fi
if [ "$testLevel" = "few" ]; then
if [ "$t" != "frob" ]; then
echo;
@@ -37,15 +40,19 @@ for t in $normalTests; do
fi
runNormalTests $t commonIdeals
+if [ $? -eq 1 ]; then failed="$failed $t"; continue; fi
runNormalTests $t frob
+if [ $? -eq 1 ]; then failed="$failed $t"; continue; fi
if [ "$t" == "euler" ]; then
runNormalTests $t bigIdeals
+if [ $? -eq 1 ]; then failed="$failed $t"; continue; fi
fi
if [ -e "$t" ]; then
runNormalTests $t $t
+if [ $? -eq 1 ]; then failed="$failed $t"; continue; fi
fi
echo
@@ -56,9 +63,10 @@ do
echo -n "$t "
cd test/$t
./runtests $*
- if [ $? != 0 ]; then exit 1; fi
+ if [ $? != 0 ]; then failed="$failed $t"; continue; fi
echo
cd ../..
done
-echo "All normal tests passed."
+echo "Failed tests:$failed."
+echo "But tests hilbert_deform and hilbert_bigatti were expected to fail because simplification is broken for them."