/* wolfssh_test.c * * Copyright (C) 2014-2024 wolfSSL Inc. * * This file is part of wolfSSH. * * wolfSSH is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * wolfSSH is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with wolfSSH. If not, see . */ #include "wolfssh_test.h" #ifndef SINGLE_THREADED #include #ifdef WOLFSSL_DEBUG_MEMORY /* for memory debugging */ #include #endif #endif #include #include #ifdef CMSIS_OS2_H_ void wolfSSHTest(void* argument) #else void wolfSSHTest(const void* argument) #endif { int ret = 0; #if 0 wolfSSL_Debugging_ON(); wolfSSH_Debugging_ON(); #endif printf("Running wolfSSH Tests...\n"); /* TODO: Uncomment once proper threading abstractions have been implemented * in wolfSSL */ /* if (wolfSSH_TestsuiteTest(0, NULL)) ret = -1; */ if (wolfSSH_UnitTest(0, NULL)) ret = -1; if (wolfSSH_ApiTest(0, NULL)) ret = -1; printf("wolfSSH Test: Return code %d\n", ret); }