1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#pragma once
6
7// Declarations of symbols that will have different definitions on different platforms.
8// These are defined by <platform>-test-main.cpp.
9
10#include <runtests-utils/runtests-utils.h>
11
12namespace runtests {
13
14// Shell script shebang.
15extern const char kScriptShebang[32];
16
17// Invokes a test binary and writes its output to a file.
18extern const RunTestFn PlatformRunTest;
19
20// Returns the root directory of filesystem used for testing. For Fuchsia, we
21// use the in-memory memfs; for POSIX systems, we use a unique subdirectory of
22// TMPDIR if set, else that of /tmp.
23const char* TestFsRoot();
24
25} // namespace runtests
26