tests: Add CPU switching tests
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>
Mon, 7 Jan 2013 18:05:52 +0000 (13:05 -0500)
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>
Mon, 7 Jan 2013 18:05:52 +0000 (13:05 -0500)
commit5fb00e1df6b2b7d9db472d0c25765263ed1b839f
tree2f94ca554d9f92d1fe737ed98931856e43b52f6a
parente09e9fa279dec86b171b5e3efeb7057fa0d21cc9
tests: Add CPU switching tests

This changeset adds a set of tests that stress the CPU switching
code. It adds the following test configurations:

 * tsunami-switcheroo-full -- Alpha system (atomic, timing, O3)
 * realview-switcheroo-atomic -- ARM system (atomic<->atomic)
 * realview-switcheroo-timing -- ARM system (timing<->timing)
 * realview-switcheroo-o3 -- ARM system (O3<->O3)
 * realview-switcheroo-full -- ARM system (atomic, timing, O3)

Reference data is provided for the 10.linux-boot test case. All of the
tests trigger a CPU switch once per millisecond during the boot
process.

The in-order CPU model was not included in any of the tests as it does
not support CPU handover.
36 files changed:
tests/SConscript
tests/configs/alpha_generic.py
tests/configs/arm_generic.py
tests/configs/base_config.py
tests/configs/realview-switcheroo-atomic.py [new file with mode: 0644]
tests/configs/realview-switcheroo-full.py [new file with mode: 0644]
tests/configs/realview-switcheroo-o3.py [new file with mode: 0644]
tests/configs/realview-switcheroo-timing.py [new file with mode: 0644]
tests/configs/switcheroo.py [new file with mode: 0644]
tests/configs/tsunami-switcheroo-full.py [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/alpha/linux/tsunami-switcheroo-full/config.ini [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/alpha/linux/tsunami-switcheroo-full/simerr [new file with mode: 0755]
tests/long/fs/10.linux-boot/ref/alpha/linux/tsunami-switcheroo-full/simout [new file with mode: 0755]
tests/long/fs/10.linux-boot/ref/alpha/linux/tsunami-switcheroo-full/stats.txt [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/alpha/linux/tsunami-switcheroo-full/system.terminal [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-full/config.ini [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-full/simerr [new file with mode: 0755]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-full/simout [new file with mode: 0755]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-full/stats.txt [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-full/system.terminal [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-o3/config.ini [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-o3/simerr [new file with mode: 0755]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-o3/simout [new file with mode: 0755]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-o3/stats.txt [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-o3/system.terminal [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-timing/config.ini [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-timing/simerr [new file with mode: 0755]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-timing/simout [new file with mode: 0755]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-timing/stats.txt [new file with mode: 0644]
tests/long/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-timing/system.terminal [new file with mode: 0644]
tests/quick/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-atomic/config.ini [new file with mode: 0644]
tests/quick/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-atomic/simerr [new file with mode: 0755]
tests/quick/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-atomic/simout [new file with mode: 0755]
tests/quick/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-atomic/stats.txt [new file with mode: 0644]
tests/quick/fs/10.linux-boot/ref/arm/linux/realview-switcheroo-atomic/system.terminal [new file with mode: 0644]
tests/run.py