[libc-commits] [PATCH] D144146: [libc] Support running tests for Pigweed

Alex Brachet via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Feb 15 16:40:49 PST 2023


abrachet created this revision.
abrachet added reviewers: sivachandra, michaelrj, lntue.
Herald added subscribers: ecnelises, tschuett.
Herald added a project: All.
abrachet requested review of this revision.

https://reviews.llvm.org/D144146

Files:
  test/UnitTest/PigweedTest.h
  test/UnitTest/Test.h


Index: test/UnitTest/Test.h
===================================================================
--- test/UnitTest/Test.h
+++ test/UnitTest/Test.h
@@ -11,6 +11,8 @@
 
 #ifdef LIBC_COPT_TEST_USE_FUCHSIA
 #include "FuchsiaTest.h"
+#elif defined(LIBC_COPT_TEST_USE_PIGWEED)
+#include "PigweedTest.h"
 #else
 #include "LibcTest.h"
 #endif
Index: test/UnitTest/PigweedTest.h
===================================================================
--- /dev/null
+++ test/UnitTest/PigweedTest.h
@@ -0,0 +1,18 @@
+//===-- Header for setting up the Pigweed tests -----------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H
+#define LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H
+
+#include <gtest/gtest.h>
+
+namespace __llvm_libc::testing {
+using Test = ::testing::Test;
+}
+
+#endif // LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144146.497839.patch
Type: text/x-patch
Size: 1124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230216/8f9d4f21/attachment.bin>


More information about the libc-commits mailing list