tests: Reduce checkpoint interval used by realview regressions
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 9 Apr 2020 15:25:55 +0000 (16:25 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 14 Apr 2020 15:01:19 +0000 (15:01 +0000)
With the current interval, the realview(64)-simple-atomic-checkpoint
regressions are not actually checkpointing since they finish boot
(and hit m5 exit) before creating the first checkpoint.

Change-Id: I297864ccb7ec8a818c9eccd94406b69d89d1f8d3
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27709
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
tests/configs/realview-simple-atomic-checkpoint.py
tests/configs/realview64-simple-atomic-checkpoint.py

index 3525fc00b0eaa9d00dbbbdba48ed55392e01a9d7..9c61deb0601afeefb5d570300b505882e591bde2 100644 (file)
@@ -33,6 +33,8 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+import functools
+
 from m5.objects import *
 from arm_generic import *
 import checkpoint
@@ -42,4 +44,4 @@ root = LinuxArmFSSystemUniprocessor(aarch64_kernel=False,
                                     mem_class=SimpleMemory,
                                     cpu_class=AtomicSimpleCPU).create_root()
 
-run_test = checkpoint.run_test
+run_test = functools.partial(checkpoint.run_test, interval=0.2)
index 40302e0f2ec850bd6a1db1f3a0b367e542e678e3..2a3ee7a554555f6b2b05ea45b43af99a28a28161 100644 (file)
@@ -43,5 +43,5 @@ root = LinuxArmFSSystemUniprocessor(mem_mode='atomic',
                                     mem_class=SimpleMemory,
                                     cpu_class=AtomicSimpleCPU).create_root()
 
-run_test = functools.partial(checkpoint.run_test, interval=1.0)
+run_test = functools.partial(checkpoint.run_test, interval=0.2)