Please help in creating .t file and perform tests for C code.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramapv
    New Member
    • Oct 2006
    • 28

    Please help in creating .t file and perform tests for C code.

    Hai!


    I am new to this field. I have to prepare a script for various test cases in C .In some web sites i found that to test more modules go for .t file. what is this ".t" file and what is the inputs and where to place them.

    Thanks in advance.
    Rama.
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    A .t file is simply the standard extension used for test scripts in perl.



    Most of these scripts can be run as raw perl, but the only real standard that they are built around is how the output is formatted. This enables the scripts to be handled by many of the standard Test Harnesses, and also to be easily integrated into the installation procedure for modules and packages.



    As a C programmer, I doubt that any of this is relevant to you directly. But since you asked....

    Comment

    • ramapv
      New Member
      • Oct 2006
      • 28

      #3
      i have some test suitesin C that are to be tested. The functions in C need some structures to be accessed from a header file. Then how should i include .
      I have to include every structure in the typemap file in lib/ExtUtils/. Is it a must?
      I tried even by placing the structure in typemap and use to use in my raw perl file.But it gave some error in the .c file in my module which is automatically generated while compiling Makefile.PL.

      Thanks for the reply & thanks inadvance for future replies.
      Ram.

      Comment

      Working...