blob: d6cc5ef7f99659f86d9a59719f2b56499327b7d7 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cpu_workloads.h"
#include <stdio.h>
#include <string>
#include <gtest/gtest.h>
#include "cpu_stressor.h"
namespace hwstress {
namespace {
TEST(CpuWorkloads, Test) {
StopIndicator stop;
WorkIndicator indicator(stop, 1.0);
// Test one iteration of each of the workloads.
// Even though the stop indicator is already set, each workload should
// unconditionally perform one iteration before returning.
for (const auto& workload : GetCpuWorkloads()) {
printf(" Testing %s... ",;
} // namespace
} // namespace hwstress