lw-build-system/scripts/build.tests.c++/template

44 lines
777 B
Plaintext
Raw Normal View History

/* @P@/src/@NAME@/???.cpp
*
2009-01-03 22:55:04 +00:00
* (c)2009, @AUTHOR@, <@EMAIL@>.
2007-10-14 11:31:40 +01:00
* Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/
@TEST_HEADERS@
#include <iostream>
int main(int argc, char* argv[])
{
if(argc == 2 && !strcmp(argv[1], "--print-summary")) {
std::cout << "One line summary.\n";
return 0;
}
if(argc == 1) {
// empty argument list
}
int ret = 0;
try {
// TODO
}
catch(std::exception& e) {
std::cerr << e.what() << std::endl;
ret = 1;
}
catch(...) {
std::cerr << "Unknown exception caught." << std::endl;
ret = 1;
}
return ret;
}
/* options for text editors
kate: @KATE_MODELINE@
vim: @VIM_MODELINE@
*/