DECLARE_SUITE(commit); DECLARE_SUITE(revwalk); DECLARE_SUITE(index); DECLARE_SUITE(hashtable); DECLARE_SUITE(tag); DECLARE_SUITE(tree); DECLARE_SUITE(refs); DECLARE_SUITE(repository); DECLARE_SUITE(threads); DECLARE_SUITE(config); DECLARE_SUITE(remotes); DECLARE_SUITE(buffers); DECLARE_SUITE(status); static libgit2_suite suite_methods[]= { SUITE_NAME(core), SUITE_NAME(rawobjects), SUITE_NAME(objread), SUITE_NAME(objwrite), SUITE_NAME(commit), SUITE_NAME(revwalk), SUITE_NAME(index), SUITE_NAME(hashtable), SUITE_NAME(tag), SUITE_NAME(tree), SUITE_NAME(refs), SUITE_NAME(repository), SUITE_NAME(threads), SUITE_NAME(config), SUITE_NAME(remotes), SUITE_NAME(buffers),
* along with this program; see the file COPYING. If not, write to * the Free Software Foundation, 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include <string.h> #include "test_lib.h" #include "test_helpers.h" DECLARE_SUITE(variant); DECLARE_SUITE(table); DECLARE_SUITE(select_manager); static test_suite suite_methods[]= { SUITE_NAME(variant), SUITE_NAME(table), SUITE_NAME(select_manager) }; #define GIT_SUITE_COUNT (ARRAY_SIZE(suite_methods)) #ifdef GIT_WIN32 int __cdecl #else int #endif main(int __UNUSED(argc), const char ** __UNUSED(argv[])) { // squelch warnings __UNUSED_ARG(argc); __UNUSED_ARG(argv);
static FORCEINLINE const CHAR * __SuiteName( IN ULONG SuiteBit ) { #define SUITE_NAME(_Suite) \ case VER_SUITE_ ## _Suite: \ return #_Suite; switch (1 << SuiteBit) { SUITE_NAME(SMALLBUSINESS); SUITE_NAME(ENTERPRISE); SUITE_NAME(BACKOFFICE); SUITE_NAME(COMMUNICATIONS); SUITE_NAME(TERMINAL); SUITE_NAME(SMALLBUSINESS_RESTRICTED); SUITE_NAME(EMBEDDEDNT); SUITE_NAME(DATACENTER); SUITE_NAME(SINGLEUSERTS); SUITE_NAME(PERSONAL); SUITE_NAME(BLADE); SUITE_NAME(EMBEDDED_RESTRICTED); SUITE_NAME(SECURITY_APPLIANCE); SUITE_NAME(STORAGE_SERVER); SUITE_NAME(COMPUTE_SERVER); default: break; } return "UNKNOWN"; #undef SUITE_NAME }