hello!
for a blackbox tester that uses linux shared libraries i want to use perlxs. the problem is that it seems that perlxs assumes that one knows the way a certain function works (as it will be described in the CODE: fragment of an .xs file). the problem is, when using blackbox-testing i just know the input, and a the category (int, float, string, etc + lt, eq, gt, etc, e.g.), so i can not provide any CODE:-lines beforehand.
is there a way to still make use of perlxs? i get my header-info from a .xml-file that describes what input to a certain function is expected.
so, for example if i have a "hello"-function in my hello_lib.so library that will print out "hello world" n times, my .xml-file says "func: hello, arg: int",
which will reflect in the .xs file as "void hello(i) \n int i". but it seems if i don't provide a CODE:-line like "printf (...)" i always get a "symbol lookup error: ..../myhello.so: undefined symbol: hello".
any hints? TIA
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.