blob: 1b61d62183c23f781ce45543fd273f326dcbfe96 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
#include <stdio.h>
#include <stdlib.h>
#include <phys/main.h>
#include "test-main.h"
void ZbiMain(void* zbi, arch::EarlyTicks ticks) {
// Early boot may have filled the screen with logs. Add a newline to
// terminate any previous line, and another newline to leave a blank.
// Run the test.
int status = TestMain(zbi, ticks);
if (status == 0) {
printf("\n*** Test succeeded ***\n%s\n\n", ZBI_TEST_SUCCESS_STRING);
} else {
printf("\n*** Test FAILED: status %d ***\n\n", status);