Skip to content

Commit

Permalink
[libc] Support running tests for Pigweed
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D144146
  • Loading branch information
abrachet committed Feb 16, 2023
1 parent 2ac85cd commit d9a04d1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libc/test/UnitTest/PigweedTest.h
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions libc/test/UnitTest/Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9a04d1

Please sign in to comment.