From 29b19530ce6dbca9fa3d00b987cdde592e1ab0d0 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Wed, 8 Feb 2023 20:07:25 +0000 Subject: [PATCH] tests: Incorporate Looppoint example scripts into TestLib Change-Id: I97d89d3cc80ce8d8991ca8d3cb4aab8019324d76 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/67758 Maintainer: Bobby Bruce Tested-by: kokoro Reviewed-by: Bobby Bruce --- .../test_gem5_library_examples.py | 56 ++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py b/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py index 9b5c2c67ff..7db46b0770 100644 --- a/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py +++ b/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 The Regents of the University of California +# Copyright (c) 2021-2023 The Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -324,3 +324,57 @@ gem5_verify_config( valid_hosts=constants.supported_hosts, length=constants.very_long_tag, ) + +gem5_verify_config( + name="test-gem5-library-create-looppoint-checkpoints", + fixtures=(), + verifiers=(), + config=joinpath( + config.base_dir, + "configs", + "example", + "gem5_library", + "looppoints", + "create-looppoint-checkpoint.py", + ), + config_args=[ + "--checkpoint-path", + joinpath(resource_path, "looppoint-checkpoint-save"), + ], + valid_isas=(constants.all_compiled_tag,), + valid_hosts=constants.supported_hosts, + length=constants.very_long_tag, +) + +for region in ( + "1", + "2", + "3", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", +): + gem5_verify_config( + name=f"test-gem5-library-restore-looppoint-checkpoint-region-f{region}", + fixtures=(), + verifiers=(), + config=joinpath( + config.base_dir, + "configs", + "example", + "gem5_library", + "looppoints", + "restore-looppoint-checkpoint.py", + ), + config_args=["--checkpoint-region", region], + valid_isas=(constants.all_compiled_tag,), + valid_hosts=constants.supported_hosts, + length=constants.very_long_tag, + )