forked from Singular/Singular
-
Notifications
You must be signed in to change notification settings - Fork 0
Porting instructions
Singular2 edited this page Sep 15, 2011
·
8 revisions
To create a test environment:
- get the sources with
git clone -b spielwiese git://git.berlios.de/singular <directory_name> cd <directory_name_from_above>- run
./for_Hans_with_love.shfrom the root directory - run
./configure - build:
make(ormake -jNwhere N is the number of the your CPU cores + 1)
Now one can test the build Singular:
-
make -jN checkwill build and run simple unit-tests in omalloc/, libpolys/, kernel/ and Singular/ (N as above) - the test-suites from Tst/ can be run, for example, as follows:
cd Tst/ln -s ../Singular/LIBln -s ../Singular/Singularln -s ../Singular/Singulargln -s ../libpolys/polys/.libs MOD- after the above symbolic-linking one can simply run
./regress.cmd something.{lst,tst}, where .lst files are just lists of tests, which are .tst files
- we would like to start with the very basic Singular functionality.
- we are looking for broken features and need tests in order to check the correctness of our fixes
- beware that some tests in test-suite take way tooooo long!
- furthermore, some features of the legacy Singular are commented out or switched off at the moment: we will try to get them back while testing them against the legacy Singular using existing code from test-suites or manual.
- In the very bad case of a feature without any reflection in test-suites and manual - one will have to fix this!
- lots of stuff moved in the headers, which messes up the includes. This should be fixed already. If there is still a problem look in
test.ccfor the correct includes. - coefficients were separated from polynomial rings.
- There is a new type
coeffs. - Operations on
coeffsare done byn_*functions, wherecoeffsis the last argument (consider it as the context storing information on the coefficient domain). - Functions like
nAdd(a, b)becomen_Add(a, b, r).
- new arithmetic functions.
- Same as the previous.
- Arithmetic is done with
p_*functions, which take a ring as the last argument. - The use of the global variable
currRingis discouraged.
- please use ring members (e.g. r->N) instead of (currRing specific) global variables (e.g.
pVariables)