On 09/18/2013 03:04 PM, Reindl Harald wrote:
> Hi Paul
> 
> would it be possible to extract the test-messages of your unit-tests
> as eml-files so i could copy them on my testserver, calculate one
> time a checksum for my autotests and so in the future have a clean
> way to automatically detect if any OS-upgrade could break things

i'm sorry but you will have to do that yourself.

following sed command will convert test/check_dbmail.h to PHP syntax.
After that you can easily generate files yourself from the variables.

sed -e 's/^#.*//' \
    -e 's/^const //' \
    -e 's/char \*\W*/$/' \
    -e 's/"$/" \\/' \
    -e '1s/^/<?php\n/' \
    -e '$s,$,\n?>,' test/check_dbmail.h


-- 
________________________________________________________________
Paul J Stevens        pjstevns @ gmail, twitter, skype, linkedin

  * Premium Hosting Services and Web Application Consultancy *

           www.nfg.nl/[email protected]/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to