Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:15

0001 /**
0002 sbuild_test.cc
0003 ================
0004 
0005 ~/o/sysrap/tests/sbuild_test.sh 
0006    script built
0007 
0008 sbuild_test 
0009    CMake built
0010 
0011 **/
0012 
0013 #include <iostream>
0014 #include "sbuild.h"
0015 #include "ssys.h"
0016 
0017 struct sbuild_test
0018 {
0019     static int main();  
0020 }; 
0021 
0022 inline int sbuild_test::main()
0023 {
0024     const char* TEST = ssys::getenvvar("TEST", "ContextString"); 
0025     bool ALL = strcmp(TEST, "ALL") == 0 ; 
0026     if(ALL||0==strcmp(TEST,"Desc"))          std::cout << sbuild::Desc() << "\n" ; 
0027     if(ALL||0==strcmp(TEST,"BuildType"))     std::cout << sbuild::BuildType() << "\n" ; 
0028     if(ALL||0==strcmp(TEST,"RNGName"))       std::cout << sbuild::RNGName() << "\n" ; 
0029     if(ALL||0==strcmp(TEST,"ContextString")) std::cout << sbuild::ContextString() << "\n" ; 
0030     return 0 ; 
0031 }
0032 
0033 int main(){ return sbuild_test::main() ; }
0034