Project

General

Profile

Feature #243

Normaliz tests for CoCoA5

Added by Christof Soeger over 11 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
External Libs
Start date:
28 Sep 2012
Due date:
% Done:

100%

Estimated time:
3.05 h
Spent time:

Description

I will make a little Normaliz test CoCoA5 script.

But we have to find a way how to let it run automatically if and only if CoCoA is configured with Normaliz. Maybe by only conditionally add it to the tests list in the Makefile, the WITH_NORMALIZ flag is known there.


Related issues

Related to CoCoA-5 - Support #251: How to add a test for CoCoA-5 (CoCoAInterpreter)Closed2012-10-02

History

#1 Updated by Anna Maria Bigatti over 11 years ago

the line in Makefile running the tests is

@./RunTests.sh $(TESTS) 2> /dev/null

it runs all the tests in $(TESTS)

We could add the Normaliz tests to $(TESTS) with a conditional: if $HAVE_NORMALIZ=yes

Problem number (1):
Do we know how to put a conditional in Makefile (... which is not just for gmake?)

Problem number (2):
But I would rather have a way to check against another file (with desired error messages) if $HAVE_NORMALIZ=no

#2 Updated by Christof Soeger over 11 years ago

Another possibility is to modify the test script to behave slightly different with external libs. For an example library foo it could be like this:
  • Name the test files ExtLibFoo.cocoa5, ExtLibFoo.out and ExtLibFoo.without (that is the expected output without lib foo ;) ).
  • Pass the information about the COCOA_WITH_FOO flag to the test script and it will decide on that whether to compare with .out or .without

Names are just examples and how to pass the information has to be specified.

#3 Updated by Anna Maria Bigatti over 11 years ago

CVSed first trivial test for Normaliz and mechanisms for running it when HAVE_NORMALIZ=yes
(modified RunTests.sh more or less as you suggested)

#4 Updated by Christof Soeger over 11 years ago

  • Assignee set to Christof Soeger
  • % Done changed from 0 to 70

Add some tests and will extend it when new Nmz functions come.

#5 Updated by Anna Maria Bigatti almost 11 years ago

  • Status changed from New to In Progress

#6 Updated by Anna Maria Bigatti about 10 years ago

  • Target version set to CoCoA-5.1.0 Easter14

#7 Updated by John Abbott about 10 years ago

  • Target version changed from CoCoA-5.1.0 Easter14 to CoCoA-5.?.?

#8 Updated by John Abbott almost 9 years ago

  • Target version changed from CoCoA-5.?.? to CoCoA-5.1.2 summer 2015

#9 Updated by Anna Maria Bigatti almost 9 years ago

  • Category set to External Libs

#10 Updated by John Abbott over 8 years ago

  • Target version changed from CoCoA-5.1.2 summer 2015 to CoCoA-5.1.3/4 Jan 2016

Postponing this issue as we shall be seeing Christof in September, and can talk to him about this issue then.

#11 Updated by John Abbott about 8 years ago

  • Target version changed from CoCoA-5.1.3/4 Jan 2016 to CoCoA-5.2.0 spring 2017

Uuuhh! Does anyone remember anything about this?

Maybe it works now? (or am I too blindly optimistic)

#12 Updated by Christof Soeger about 8 years ago

The tests in ExtLibNORMALIZ.cocoa5 look useful and is active in my setup (with libnormaliz). If it also gives no error without libnormaliz I guess this can be closed.

#13 Updated by Christof Soeger about 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 70 to 100

#14 Updated by Anna Maria Bigatti over 7 years ago

  • Estimated time set to 3.05 h

Also available in: Atom PDF