# Copyright (c) 2013 The Chromium OS Authors. # # SPDX-License-Identifier: GPL-2.0+ # # Simple test script for tracing with sandbox TRACE_OPT="FTRACE=1" BASE="$(dirname $0)/.." . $BASE/common.sh run_trace() { echo "Run trace" ./${OUTPUT_DIR}/u-boot < 0 ? 1 : 0)}')" if [ "${counts}" != "1 1 0 1 " ]; then fail "trace collection error: ${counts}" fi } echo "Simple trace test / sanity check using sandbox" echo tmp="$(tempfile)" build_uboot "${TRACE_OPT}" run_trace >${tmp} check_results ${tmp} rm ${tmp} echo "Test passed"