1
0
forked from Alepha/Alepha

More progress on the testing front.

This commit is contained in:
2023-10-12 18:57:40 -04:00
parent 7bafa453da
commit a8433d13e3
7 changed files with 58 additions and 2 deletions

25
Testing/testlib.cc Normal file
View File

@ -0,0 +1,25 @@
static_assert( __cplusplus > 2020'00 );
#include <Alepha/Testing/test.h>
#include <Alepha/ProgramOptions.h>
namespace
{
namespace impl
{
int
main( const int argcnt, const char *const *const argvec )
{
// TODO: Have test selection options here and more.
const auto args= Alepha::handleOptions( argcnt, argvec );
const auto result= Alepha::Testing::runAllTests( args );
return result;
}
}
}
int
main( const int argcnt, const char *const *const argvec )
{
return impl::main( argcnt, argvec );
}