mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-12 09:17:06 +00:00
- Modified test/mp_unit/mp_unit_tests.hpp to use ../framework.hpp instead of gtest/gtest.h - Enhanced test/framework.hpp with GTest-compatible APIs: - Added Environment base class for global test setup/teardown - Added TestInfo and UnitTest classes for test metadata access - Added GTEST_SKIP macro support via SkipHelper class - Added namespace alias 'testing' for compatibility - Added InitGoogleTest and AddGlobalTestEnvironment helper functions - Updated test/framework.cc with implementations for new classes - All mp_unit test files now use framework.hpp through mp_unit_tests.hpp - Formatting applied via lint.sh Co-authored-by: chhwang <8018170+chhwang@users.noreply.github.com>
31 lines
914 B
C++
31 lines
914 B
C++
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#ifndef MSCCLPP_TEST_PERF_FRAMEWORK_HPP_
|
|
#define MSCCLPP_TEST_PERF_FRAMEWORK_HPP_
|
|
|
|
// This file is kept for backwards compatibility with perf tests
|
|
// The actual framework is now in test/framework.hpp
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
#include "../framework.hpp"
|
|
|
|
namespace mscclpp {
|
|
namespace test {
|
|
|
|
// Additional performance test utilities not in the base framework
|
|
|
|
// Result recording for performance tests
|
|
void recordResult(const std::string& test_name, const std::string& test_category, const nlohmann::ordered_json& metrics,
|
|
const std::map<std::string, std::string>& test_params = {});
|
|
|
|
// Output utilities for performance tests
|
|
void writeResultsToFile(const std::string& filename);
|
|
void printResults(bool verbose = false);
|
|
|
|
} // namespace test
|
|
} // namespace mscclpp
|
|
|
|
#endif // MSCCLPP_TEST_PERF_FRAMEWORK_HPP_
|