blob: 775d4fe1c92d80ef5574cd3634e3a08e598ea042 [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.
mod environment;
mod input_actor;
mod pointer_state;
mod session;
mod session_actor;
use {
fuchsia_async as fasync,
stress_test::{run_test, StdoutLogger},
#[derive(Clone, Debug, FromArgs)]
/// Creates an instance of scenic and performs stressful operations on it
pub struct Args {
/// number of operations to complete before exiting.
#[argh(option, short = 'o')]
num_operations: Option<u64>,
/// filter logging by level (off, error, warn, info, debug, trace)
#[argh(option, short = 'l')]
log_filter: Option<LevelFilter>,
/// controls delay between each touch operation (down, up)
#[argh(option, short = 'd', default = "1")]
// TODO(
touch_delay_secs: u64,
/// if set, the test runs for this time limit before exiting successfully.
#[argh(option, short = 't')]
time_limit_secs: Option<u64>,
/// flag passed in by rust test runner
// TODO(
nocapture: bool,
async fn test() {
// Get arguments from command line
let args: Args = argh::from_env();
// Initialize logging
// Setup the scenic environment
let env = ScenicEnvironment::new(args).await;
// Run the test