Hello,

I'm writing a very initial version of a code generator. I would like to add 
proper tests for the generated c code. The test will involve a compilation with 
gcc and linking against a small c program that tests the output of the function 
for several inputs. If some outputs are wrong, the negative return code can be 
captured with a proper assert statement.

I could not find existing tests that generate output files. What is the 
recommended directory to write these files? I was thinking of tempfile.mkdtemp, 
but that makes it annoying to check the generated code manually. A temporary 
test_output directory at the root level of the source tree with subdirectories 
created by the tests seems convenient to me, but this involves changes in 
setup.py, which runs the tests. './setup.py test' should create this directory 
and './setup.py clean' should remove it enterily. Is this OK?

cheers,

Toon


-- 
ir. Toon Verstraelen
Center for Molecular Modeling
Ghent University
Proeftuinstraat 86
B9000 Gent
Belgium
Tel: +32 9 264 65 56
E-mail: [email protected]
http://molmod.UGent.be/
http://molmod.UGent.be/code/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

begin:vcard
fn:Toon Verstraelen
n:Verstraelen;Toon
org:Ghent University;Center for Molecular Modeling
adr:;;Proeftuinstraat 86;Ghent;;9000;Belgium
email;internet:[email protected]
title:ir.
tel;work:+32 (0) 9 264 65 56
tel;home:+32 (0) 9 351 56 05
x-mozilla-html:FALSE
url:http://molmod.ugent.be
version:2.1
end:vcard

Reply via email to