diff options
Diffstat (limited to 'cts/meta')
-rw-r--r-- | cts/meta/cts.testlist | 52 | ||||
-rw-r--r-- | cts/meta/dut.c | 64 | ||||
-rw-r--r-- | cts/meta/th.c | 59 |
3 files changed, 0 insertions, 175 deletions
diff --git a/cts/meta/cts.testlist b/cts/meta/cts.testlist deleted file mode 100644 index 28ac7e325f..0000000000 --- a/cts/meta/cts.testlist +++ /dev/null @@ -1,52 +0,0 @@ -/* 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. - */ - -/* - * Test SUCCESS from both TH and DUT - */ -CTS_TEST(success_test,,,,) - -/* - * Test FAILURE from DUT - */ -CTS_TEST(fail_dut_test,,, CTS_RC_FAILURE,) - -/* - * Test FAILURE from TH - */ -CTS_TEST(fail_th_test, CTS_RC_FAILURE,,,) - -/* - * Test failure from both TH and DUT. - */ -CTS_TEST(fail_both_test, CTS_RC_FAILURE,, CTS_RC_FAILURE,) - -/* - * Test bad sync for TH - */ -CTS_TEST(bad_sync_test, CTS_RC_BAD_SYNC,,,) - -/* - * Test should fail with bad sync. - */ -CTS_TEST(bad_sync_both_test, CTS_RC_BAD_SYNC,, CTS_RC_BAD_SYNC,) - -/* - * Test hang on DUT - */ -CTS_TEST(hang_test, CTS_RC_SUCCESS,, CTS_RC_DID_NOT_END,) - -/* - * Test CTS_RC_DID_NOT_START - * - * Since the previous test hung on DUT, this test won't run on DUT. - * TH will wait forever in sync(), thus won't end. - */ - CTS_TEST(did_not_start_test, CTS_RC_DID_NOT_END,, CTS_RC_DID_NOT_START,) - -/* - * TODO: Add test for expected string - * TODO: Make sync() return CTS_RC_BAD_SYNC when it times out. - */
\ No newline at end of file diff --git a/cts/meta/dut.c b/cts/meta/dut.c deleted file mode 100644 index c321676aec..0000000000 --- a/cts/meta/dut.c +++ /dev/null @@ -1,64 +0,0 @@ -/* 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_FAILURE; -} - -enum cts_rc fail_th_test(void) -{ - return CTS_RC_SUCCESS; -} - -enum cts_rc fail_both_test(void) -{ - return CTS_RC_FAILURE; -} - -enum cts_rc bad_sync_test(void) -{ - return CTS_RC_SUCCESS; -} - -enum cts_rc bad_sync_both_test(void) -{ - return CTS_RC_BAD_SYNC; -} - -enum cts_rc hang_test(void) -{ - while (1) { - watchdog_reload(); - sleep(1); - } - - 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); -} diff --git a/cts/meta/th.c b/cts/meta/th.c deleted file mode 100644 index 57b2f492bd..0000000000 --- a/cts/meta/th.c +++ /dev/null @@ -1,59 +0,0 @@ -/* 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); -} |