trick/trick_source/sim_services/UnitTest/UnitTest_c_intf.cpp
Alex Lin 19025d77ad Standardize directory names
Reorganized.  Created a new top level include directory that will hold all of Trick's header files. Moved all of the Trick headers to this directory.  Created a libexec directory that holds all of the executables that users don't need to execute directly.  Changed all of the executables remaining in bin to start with "trick-".  In the sim_services directories changed all source files to find the Trick headers in their new location.  Since all of the include files are gone in sim_services, removed the src directories as well, moving all of the source files up a level.  Moved the makefiles, docs, man, and other architecture independent files into a top level share directory.  Renamed lib_${TRICK_HOST_CPU} to lib64 or lib depending on the platform we're currently on.

refs #63
2015-06-09 08:44:42 -05:00

29 lines
774 B
C++

#include <iostream>
#include <fstream>
#include "trick/UnitTest.hh"
extern Trick::UnitTest * the_unit_test_output ;
extern "C" int add_test_result( const char * in_test_suite_name , const char * in_test_case , const char * in_failure_string ) {
if ( in_failure_string == NULL ) {
in_failure_string = "" ;
}
the_unit_test_output->add_test_results(in_test_suite_name , in_test_case , in_failure_string ) ;
return(0) ;
}
extern "C" int trick_test_add_parent(const char * in_test_suite_name, const char * in_test_case, const char * par_num ) {
the_unit_test_output->add_test_requirements(in_test_suite_name, in_test_case, par_num);
return(0);
}
extern "C" int call_write_output() {
the_unit_test_output->write_output() ;
return(0) ;
}