blob: 6b607e294e4fb75b214ff20761162d58314e212b [file] [log] [blame]
// Copyright 2018 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.
#pragma once
#include <stdio.h>
#include <memory>
#include <runtests-utils/runtests-utils.h>
namespace runtests {
// Invokes a POSIX test binary and writes its output to a file.
//
// |argv| is an array of argument strings passed to the test program.
// |output_filename| is the name of the file to which the test binary's output
// will be written. May be nullptr, in which case the output will not be
// redirected.
std::unique_ptr<Result> PosixRunTest(const char* argv[],
const char* output_dir,
const char* output_filename);
} // namespace runtests