mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
This patch fixes the alignment of test results. It also displays
'YES' or 'NO' instead of '1' or '0' for expected string columns:
TEST NAME TH_RC DUT_RC TH_STR DUT_STR RESULT
success_test SUCCESS SUCCESS YES YES PASS
fail_dut_test SUCCESS FAILURE YES YES PASS
fail_th_test FAILURE SUCCESS YES YES PASS
fail_both_test FAILURE FAILURE YES YES PASS
bad_sync_test BAD_SYNC SUCCESS YES YES PASS
bad_sync_both_test BAD_SYNC BAD_SYNC YES YES PASS
hang_test SUCCESS DID_NOT_END YES YES PASS
did_not_start_test DID_NOT_END DID_NOT_START YES YES PASS
BUG=chromium:664309
BRANCH=none
TEST=Run cts.py -m meta
Change-Id: I7d266b9a6458fcabafa4da484b54d9d1dffbad61
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/545257
Reviewed-by: Randall Spangler <rspangler@chromium.org>
60 lines
894 B
C
60 lines
894 B
C
/* Copyright 2016 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "common.h"
|
|
#include "cts_common.h"
|
|
#include "task.h"
|
|
#include "timer.h"
|
|
#include "uart.h"
|
|
#include "watchdog.h"
|
|
|
|
enum cts_rc success_test(void)
|
|
{
|
|
return CTS_RC_SUCCESS;
|
|
}
|
|
|
|
enum cts_rc fail_dut_test(void)
|
|
{
|
|
return CTS_RC_SUCCESS;
|
|
}
|
|
|
|
enum cts_rc fail_th_test(void)
|
|
{
|
|
return CTS_RC_FAILURE;
|
|
}
|
|
|
|
enum cts_rc fail_both_test(void)
|
|
{
|
|
return CTS_RC_FAILURE;
|
|
}
|
|
|
|
enum cts_rc bad_sync_test(void)
|
|
{
|
|
return CTS_RC_BAD_SYNC;
|
|
}
|
|
|
|
enum cts_rc bad_sync_both_test(void)
|
|
{
|
|
return CTS_RC_BAD_SYNC;
|
|
}
|
|
|
|
enum cts_rc hang_test(void)
|
|
{
|
|
return CTS_RC_SUCCESS;
|
|
}
|
|
|
|
enum cts_rc did_not_start_test(void)
|
|
{
|
|
return CTS_RC_SUCCESS;
|
|
}
|
|
|
|
#include "cts_testlist.h"
|
|
|
|
void cts_task(void)
|
|
{
|
|
cts_main_loop(tests, "Meta");
|
|
task_wait_event(-1);
|
|
}
|