Remove poshlib tests
This commit is contained in:
parent
cf1d93ebf4
commit
0cbe2baaa5
@ -1,29 +0,0 @@
|
|||||||
#include "../../posh.c"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main( void )
|
|
||||||
{
|
|
||||||
printf( "archtest:\n" );
|
|
||||||
printf( "--------\n" );
|
|
||||||
|
|
||||||
printf( "%s", POSH_GetArchString() );
|
|
||||||
printf( "byte min: %d\n", POSH_BYTE_MIN );
|
|
||||||
printf( "byte max: %d\n", POSH_BYTE_MAX );
|
|
||||||
printf( "i16 min: %d\n", POSH_I16_MIN );
|
|
||||||
printf( "i16 max: %d\n", POSH_I16_MAX );
|
|
||||||
printf( "i32 min: %d\n", POSH_I32_MIN );
|
|
||||||
printf( "i32 max: %d\n", POSH_I32_MAX );
|
|
||||||
printf( "u16 min: %u\n", POSH_U16_MIN );
|
|
||||||
printf( "u16 max: %u\n", POSH_U16_MAX );
|
|
||||||
printf( "u32 min: %u\n", POSH_U32_MIN );
|
|
||||||
printf( "u32 max: %u\n", POSH_U32_MAX );
|
|
||||||
#ifdef POSH_64BIT_INTEGER
|
|
||||||
printf( "i64 min: %"POSH_I64_PRINTF_PREFIX"d\n", POSH_I64_MIN );
|
|
||||||
printf( "i64 max: %"POSH_I64_PRINTF_PREFIX"d\n", POSH_I64_MAX );
|
|
||||||
printf( "u64 min: %"POSH_I64_PRINTF_PREFIX"u\n", POSH_U64_MIN );
|
|
||||||
printf( "u64 max: %"POSH_I64_PRINTF_PREFIX"u\n", POSH_U64_MAX );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
#include "testlib.hpp"
|
|
||||||
#include "testdll.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main( void )
|
|
||||||
{
|
|
||||||
printf( "linktest:\n" );
|
|
||||||
printf( "---------\n" );
|
|
||||||
printf( "linktest is a simple verification test that tests:\n" );
|
|
||||||
printf( " * correct linkage between C and C++\n" );
|
|
||||||
printf( " * proper handling when multiple libs use posh\n" );
|
|
||||||
printf( " * correct handling of DLL vs. LIB linkage (Windows)\n" );
|
|
||||||
printf( "\n\n" );
|
|
||||||
printf( "POSH_GetArchString() reporting:\n%s\n\n", POSH_GetArchString() );
|
|
||||||
|
|
||||||
TestLib_Foo();
|
|
||||||
TestDLL_Foo();
|
|
||||||
|
|
||||||
printf( "\n\nlinktest succeeded!\n" );
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
#ifndef TESTDLL_H
|
|
||||||
#define TESTDLL_H
|
|
||||||
|
|
||||||
#define POSH_DLL 1 //define this since poshtestdll is a DLL
|
|
||||||
#include "../../posh.h"
|
|
||||||
#undef POSH_DLL //undefine so that another include of posh.h doesn't cause problems
|
|
||||||
|
|
||||||
#define TESTDLL_PUBLIC_API POSH_PUBLIC_API
|
|
||||||
|
|
||||||
#if defined __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TESTDLL_PUBLIC_API(void) TestDLL_Foo( void );
|
|
||||||
|
|
||||||
#if defined __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* TESTDLL_H */
|
|
@ -1,11 +0,0 @@
|
|||||||
#define POSH_BUILDING_LIB 1
|
|
||||||
#include "testlib.hpp"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
void TestLib_Foo( void )
|
|
||||||
{
|
|
||||||
printf( "...TestLib_Foo called successfully!\n" );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
#ifndef TESTLIB_HPP
|
|
||||||
#define TESTLIB_HPP
|
|
||||||
|
|
||||||
#undef POSH_DLL
|
|
||||||
#include "../../posh.h"
|
|
||||||
|
|
||||||
#define TESTLIB_PUBLIC_API POSH_PUBLIC_API
|
|
||||||
|
|
||||||
#if defined __cplusplus && defined POSH_DLL
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TESTLIB_PUBLIC_API(void) TestLib_Foo( void );
|
|
||||||
|
|
||||||
#if defined __cplusplus && defined POSH_DLL
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* POSHTESTLIB_H */
|
|
Loading…
Reference in New Issue
Block a user