aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/testmain.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-11-30 23:52:50 +0000
committerIan Lance Taylor <iant@google.com>2006-11-30 23:52:50 +0000
commit5a6f7e2db556f93765b75baf2d1ee1509225410d (patch)
tree6db53a1cd843958dc18135430dbf37bd7b92b17e /gold/testsuite/testmain.cc
parent2621033b5dbe773f00cb90d24604b70a1cead2f1 (diff)
downloadbinutils-5a6f7e2db556f93765b75baf2d1ee1509225410d.zip
binutils-5a6f7e2db556f93765b75baf2d1ee1509225410d.tar.gz
binutils-5a6f7e2db556f93765b75baf2d1ee1509225410d.tar.bz2
Added a testsuite. More support for COPY relocations.
Diffstat (limited to 'gold/testsuite/testmain.cc')
-rw-r--r--gold/testsuite/testmain.cc18
1 files changed, 18 insertions, 0 deletions
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());
+}