From 5a6f7e2db556f93765b75baf2d1ee1509225410d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 30 Nov 2006 23:52:50 +0000 Subject: Added a testsuite. More support for COPY relocations. --- gold/testsuite/testmain.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gold/testsuite/testmain.cc (limited to 'gold/testsuite/testmain.cc') diff --git a/gold/testsuite/testmain.cc b/gold/testsuite/testmain.cc new file mode 100644 index 0000000..eb46b72 --- /dev/null +++ b/gold/testsuite/testmain.cc @@ -0,0 +1,18 @@ +// testmain.cc -- main function for simplisitic gold test framework. + +#include "gold.h" + +#include "test.h" + +using namespace gold_testsuite; + +int +main(int, char** argv) +{ + gold::program_name = argv[0]; + + Test_framework tf; + Register_test::run_tests(&tf); + + exit(tf.failures()); +} -- cgit v1.1