summaryrefslogtreecommitdiffstats
path: root/bootstat/testrunner.cpp
diff options
context:
space:
mode:
authorJames Hawkins <jhawkins@google.com>2016-01-19 15:10:38 -0800
committerJames Hawkins <jhawkins@google.com>2016-01-19 15:10:38 -0800
commitabd73e617970e2e4cb390d5f66cfd0dda57579d8 (patch)
tree8064ae7c580d228c35e821edc375b19cfd0a6d74 /bootstat/testrunner.cpp
parentd8ecde09c717ded786fde49855ba7347bc2b3910 (diff)
downloadcore-abd73e617970e2e4cb390d5f66cfd0dda57579d8.tar.gz
core-abd73e617970e2e4cb390d5f66cfd0dda57579d8.tar.bz2
core-abd73e617970e2e4cb390d5f66cfd0dda57579d8.zip
system/core: Add initial implementation of the bootstat command.
The bootstat command enables the measurement and logging of boot time metrics for GMS devices. BUG:21724738 Change-Id: I331456dd38a60fb4ef24a4d5320909dbad30db66
Diffstat (limited to 'bootstat/testrunner.cpp')
-rw-r--r--bootstat/testrunner.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/bootstat/testrunner.cpp b/bootstat/testrunner.cpp
new file mode 100644
index 000000000..ff8611ede
--- /dev/null
+++ b/bootstat/testrunner.cpp
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <base/logging.h>
+#include <gtest/gtest.h>
+
+int main(int argc, char** argv) {
+ ::testing::InitGoogleTest(&argc, argv);
+ android::base::InitLogging(argv, android::base::StderrLogger);
+ return RUN_ALL_TESTS();
+}