aboutsummaryrefslogtreecommitdiff
path: root/unittests/TestMain.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-01-01 02:24:48 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-01-01 02:24:48 +0000
commit8fb520eb4f06d4ef771abe9c22d85b2a275988ee (patch)
treec510dfdb8b8f11c23b494ebe0c283c8068ec9e40 /unittests/TestMain.cpp
parente5f9471bd25b82bbe1920b1afab75138870c3274 (diff)
Original patch by Talin.
* Added the first LLVM unittest -- DenseMap. * Updated mkpatch utility to include llvm/unittests dir * Added top-level target "unittests" to run all unittests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/TestMain.cpp')
-rw-r--r--unittests/TestMain.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/unittests/TestMain.cpp b/unittests/TestMain.cpp
new file mode 100644
index 0000000000..095076b23e
--- /dev/null
+++ b/unittests/TestMain.cpp
@@ -0,0 +1,15 @@
+//===--- unittests/TestMain.cpp - unittest driver -------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "gtest/gtest.h"
+
+int main(int argc, char **argv) {
+ testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}