New issue
Advanced search Search tips

Issue 663873 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

eCTS: Implement Task Suite

Project Member Reported by dnojiri@chromium.org, Nov 9 2016

Issue description

(eCTS: https://docs.google.com/document/d/1VFZgGV6uBxOWS7mJHlOAWWmkvqz6ctdgcbCaDo7RYhc/edit)

Umbrella bug for all task related tests including switching, setting events, sleeping, waking up, enforcing priorities.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Nov 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/ec/+/0874f1a197349c464f8e1002096bda8c33598cf4

commit 0874f1a197349c464f8e1002096bda8c33598cf4
Author: Daisuke Nojiri <dnojiri@chromium.org>
Date: Wed Nov 09 21:00:59 2016

eCTS: Add task suite

Task A wakes up B and goes to sleep. Task B wakes up C then goes to
sleep. Task C wakes up A then goes to sleep. This is repeated
repeat_count times:

  A -> B -> C -> A -> ...

It's expected all tasks to run exactly repeat_count times. Tick task
runs to inject some irregularity.

BUG=chromium:663873
BRANCH=none
TEST=cts.py -m task

Change-Id: Ib7227f05f09b7a49f8528aff6e6e8d3e6df93ba7
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/409534
Reviewed-by: Randall Spangler <rspangler@chromium.org>

[add] https://crrev.com/0874f1a197349c464f8e1002096bda8c33598cf4/cts/task/th.c
[delete] https://crrev.com/d7178e9b5faddabbfc5cdf2223bd5b865c58338e/cts/pingpong/th.c
[delete] https://crrev.com/d7178e9b5faddabbfc5cdf2223bd5b865c58338e/cts/pingpong/dut.c
[rename] https://crrev.com/0874f1a197349c464f8e1002096bda8c33598cf4/cts/task/cts.tasklist
[add] https://crrev.com/0874f1a197349c464f8e1002096bda8c33598cf4/cts/task/cts.testlist
[add] https://crrev.com/0874f1a197349c464f8e1002096bda8c33598cf4/cts/task/dut.c

Project Member

Comment 2 by bugdroid1@chromium.org, Nov 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/ec/+/2ae311c901602f0be553d4d3e2bf91e435ce5bd0

commit 2ae311c901602f0be553d4d3e2bf91e435ce5bd0
Author: Daisuke Nojiri <dnojiri@chromium.org>
Date: Wed Nov 09 23:29:24 2016

eCTS: Test task priority

CTS task wakes up A and C then goes to sleep:

  CTS -> A, C -> A -> B -> C

Since C has a higher priority, C should run first. This should result
in C running one more time than A (or B).

BUG=chromium:663873
BRANCH=none
TEST=cts.py -m task

Change-Id: I89c733ba3aab09b293edf8583d6ed73791531e59
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/409535
Reviewed-by: Randall Spangler <rspangler@chromium.org>

[modify] https://crrev.com/2ae311c901602f0be553d4d3e2bf91e435ce5bd0/cts/task/dut.c
[modify] https://crrev.com/2ae311c901602f0be553d4d3e2bf91e435ce5bd0/cts/task/cts.testlist

Labels: eCTS
Project Member

Comment 4 by bugdroid1@chromium.org, Jun 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/ec/+/60800678ca1a7454a20ae2c270a4ea0bda34b9c0

commit 60800678ca1a7454a20ae2c270a4ea0bda34b9c0
Author: Daisuke Nojiri <dnojiri@chromium.org>
Date: Fri Jun 23 07:51:18 2017

eCTS: Add stack overflow test

This patch adds a test for stack overflow detection. CTS task tries
to overflow by calling a function recursively. This function sleeps
to incur context switch, where stack overflow is checked. Reboot is
expected but not checked.

BUG=chromium:663873
BRANCH=none
TEST=cts.py -m task

Change-Id: I6ad98d209acf873d2d23b48bac6fc751fa8c2f74
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/410283
Reviewed-by: Randall Spangler <rspangler@chromium.org>

[modify] https://crrev.com/60800678ca1a7454a20ae2c270a4ea0bda34b9c0/cts/task/dut.c
[modify] https://crrev.com/60800678ca1a7454a20ae2c270a4ea0bda34b9c0/cts/task/cts.testlist

Sign in to add a comment