1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2019 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.

use test_runners_elf_lib::{
    launcher::ElfComponentLauncher, runner::add_runner_service, test_server::TestServer,
};

type ElfTestServer = TestServer<ElfComponentLauncher>;

fn get_test_server() -> ElfTestServer {
    TestServer { launcher: ElfComponentLauncher::new() }
}

#[fuchsia::main(logging_tags=["elf_test_runner"])]
fn main() -> Result<(), anyhow::Error> {
    add_runner_service(get_test_server, ElfTestServer::validate_args)
}