-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support running integration tests under bazel.
$ bazel test :all_integration does what you'd expect. But we can also do things like: $ bazel test --runs_per_test 10 scripts:NoneTest to catch flakes. TESTED=integration,duh Change-Id: Ida7bfe51275edfa21afe53c9242a9621616e0629
- Loading branch information
Showing
6 changed files
with
264 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,196 @@ | |||
# Description: | |||
# XIOSim integration tests | |||
|
|||
package(default_visibility = ["//visibility:public"]) | |||
|
|||
licenses(["notice"]) # BSD | |||
|
|||
exports_files(["LICENSE"]) | |||
|
|||
test_suite( | |||
name = "integration_tests", | |||
tags = ["large"], | |||
) | |||
|
|||
py_test( | |||
name = "Fib1Test", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["Fib1Test"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "NoneTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["NoneTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "Fib1LengthTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["Fib1LengthTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "Fib1SkipTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["Fib1SkipTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "Fib1PinPointTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["Fib1PinPointTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "Fib1PinPointsTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["Fib1PinPointsTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "ROITest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["ROITest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "ReplaceTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["ReplaceTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "PowerTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["PowerTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "DFSTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["DFSTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "Fib2Test", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["Fib2Test"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "REPTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["REPTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "SegfTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["SegfTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "ChaseTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["ChaseTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "PrefetchTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["PrefetchTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "IgnorePCTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["IgnorePCTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "TimeTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["TimeTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
py_test( | |||
name = "AttachTest", | |||
size = "large", | |||
srcs = [":integration_framework"], | |||
args = ["AttachTest"], | |||
data = [":integration_data"], | |||
main = "run_tests.py", | |||
) | |||
|
|||
# Framework files to launch the simulator and define tests | |||
filegroup( | |||
name = "integration_framework", | |||
srcs = [ | |||
"run_tests.py", | |||
"xiosim_driver.py", | |||
"xiosim_stat.py", | |||
], | |||
visibility = ["//visibility:private"], | |||
) | |||
|
|||
# The actual simulator and simulated programs | |||
filegroup( | |||
name = "integration_data", | |||
srcs = [ | |||
"//:xiosim", | |||
"//tests:ubench", | |||
], | |||
visibility = ["//visibility:private"], | |||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
# Description: | |||
# XIOSim ubenchmarks for integration tests | |||
|
|||
package(default_visibility = ["//visibility:public"]) | |||
|
|||
licenses(["notice"]) # BSD | |||
|
|||
exports_files(["LICENSE"]) | |||
|
|||
filegroup( | |||
name = "ubench", | |||
srcs = select({ | |||
":k8": glob(["k8/*"]), | |||
":piii": glob(["piii/*"]), | |||
}), | |||
) | |||
|
|||
config_setting( | |||
name = "k8", | |||
values = {"cpu": "k8"}, | |||
) | |||
|
|||
config_setting( | |||
name = "piii", | |||
values = {"cpu": "piii"}, | |||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters