gencpp/test/test.cpp
Ed_ 3319bfcaa9 Updates to test and workspace
Added a more granular test using the original library files. Already helped me identify a bug.
2023-11-21 20:03:51 -05:00

39 lines
596 B
C++

#if GEN_TIME
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
#define GEN_ENFORCE_STRONG_CODE_TYPES
#define GEN_EXPOSE_BACKEND
#define GEN_BENCHMARK
#include "gen.cpp"
#include "gen.builder.cpp"
#include "sanity.cpp"
#include "SOA.cpp"
#include "validate.original.cpp"
#include "validate.singleheader.cpp"
int gen_main()
{
using namespace gen;
log_fmt("\ngen_time:");
// check_sanity();
// check_SOA();
validate_original_files_ast();
validate_singleheader_ast();
return 0;
}
#endif
// This only has to be done if symbol conflicts occur.
#ifndef GEN_TIME
int main()
{
return 0;
}
#endif