N
N
nuclear_Jam2014-10-30 22:23:44
Perl
nuclear_Jam, 2014-10-30 22:23:44

Automatic testing of C++ code (in Perl)?

Hi all.
My task is to build a C++ program from source and write automatic Perl tests for it.
If there are no problems with the first one, then I have not encountered Perl and automated testing.
Tell me which way to dig? and how are tests written in script languages ​​(perl in particular)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xandox, 2014-10-31
@xandox

I believe that automatic tests here mean a perl script that will say that something has broken after rebuilding the project. Why write it in Perl is not clear, but the algorithm is always the same for everyone
for each set of parameters, you remember the output of the program (this is canonicalization),
then in the script you run your tool with the parameters and compare the output with what you remember. If it does not match, you swear loudly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question