diff --git a/src/nvcore/poshlib/tests/arch/archtest.c b/src/nvcore/poshlib/tests/arch/archtest.c deleted file mode 100644 index 1d12832..0000000 --- a/src/nvcore/poshlib/tests/arch/archtest.c +++ /dev/null @@ -1,29 +0,0 @@ -#include "../../posh.c" - -#include - -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; -} diff --git a/src/nvcore/poshlib/tests/linktest/linktest.cpp b/src/nvcore/poshlib/tests/linktest/linktest.cpp deleted file mode 100644 index ae2c7da..0000000 --- a/src/nvcore/poshlib/tests/linktest/linktest.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "testlib.hpp" -#include "testdll.h" - -#include - -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; -} diff --git a/src/nvcore/poshlib/tests/linktest/testdll.h b/src/nvcore/poshlib/tests/linktest/testdll.h deleted file mode 100644 index 72f9d8a..0000000 --- a/src/nvcore/poshlib/tests/linktest/testdll.h +++ /dev/null @@ -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 */ diff --git a/src/nvcore/poshlib/tests/linktest/testlib.cpp b/src/nvcore/poshlib/tests/linktest/testlib.cpp deleted file mode 100644 index e5df05c..0000000 --- a/src/nvcore/poshlib/tests/linktest/testlib.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#define POSH_BUILDING_LIB 1 -#include "testlib.hpp" - -#include - -void TestLib_Foo( void ) -{ - printf( "...TestLib_Foo called successfully!\n" ); -} - - diff --git a/src/nvcore/poshlib/tests/linktest/testlib.hpp b/src/nvcore/poshlib/tests/linktest/testlib.hpp deleted file mode 100644 index 91b63ea..0000000 --- a/src/nvcore/poshlib/tests/linktest/testlib.hpp +++ /dev/null @@ -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 */