mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 17:37:20 +00:00 
			
		
		
		
	metrics: Add general FIO makefile
This PR adds a general FIO makefile for kata metrics. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
		
							
								
								
									
										28
									
								
								tests/metrics/storage/fio-k8s/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								tests/metrics/storage/fio-k8s/Makefile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| # | ||||
| # Copyright (c) 2021-2022 Intel Corporation | ||||
| # | ||||
| # SPDX-License-Identifier: Apache-2.0 | ||||
| # | ||||
|  | ||||
| MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||||
| MKFILE_DIR := $(dir $(MKFILE_PATH)) | ||||
|  | ||||
| build: | ||||
| 	make -C $(MKFILE_DIR)/cmd/fiotest/ gomod | ||||
| 	make -C $(MKFILE_DIR)/cmd/fiotest/ build | ||||
|  | ||||
| test-report: | ||||
| 	$(MKFILE_DIR)/scripts/dax-compare-test/report/gen-html-fio-report.sh $(MKFILE_DIR)/cmd/fiotest/test-results/ | ||||
|  | ||||
| test-report-interactive: | ||||
| 	$(MKFILE_DIR)/scripts/dax-compare-test/report/run-docker-jupyter-server.sh $(MKFILE_DIR)/cmd/fiotest/test-results/ | ||||
|  | ||||
| test: build | ||||
| 	make -C $(MKFILE_DIR)/cmd/fiotest/ run | ||||
| 	make test-report | ||||
|  | ||||
| run: build | ||||
| 	make -C $(MKFILE_DIR)/scripts/dax-compare-test/ run | ||||
|  | ||||
| test-ci: build | ||||
| 	make -C $(MKFILE_DIR)/cmd/fiotest/ runci | ||||
							
								
								
									
										24
									
								
								tests/metrics/storage/fio-k8s/cmd/fiotest/go.mod
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tests/metrics/storage/fio-k8s/cmd/fiotest/go.mod
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| module github.com/kata-containers/kata-containers/tests/metrics/storage/fio-k8s | ||||
|  | ||||
| go 1.19 | ||||
|  | ||||
| replace github.com/kata-containers/kata-containers/tests/metrics/exec => ../../pkg/exec | ||||
|  | ||||
| replace github.com/kata-containers/kata-containers/tests/metrics/k8s => ../../pkg/k8s | ||||
|  | ||||
| replace github.com/kata-containers/kata-containers/tests/metrics/env => ../../pkg/env | ||||
|  | ||||
| require ( | ||||
| 	github.com/kata-containers/kata-containers/tests/metrics/env v0.0.0-00010101000000-000000000000 | ||||
| 	github.com/kata-containers/kata-containers/tests/metrics/exec v0.0.0-00010101000000-000000000000 | ||||
| 	github.com/kata-containers/kata-containers/tests/metrics/k8s v0.0.0-00010101000000-000000000000 | ||||
| 	github.com/pkg/errors v0.9.1 | ||||
| 	github.com/sirupsen/logrus v1.9.3 | ||||
| 	github.com/urfave/cli v1.22.14 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect | ||||
| 	github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||||
| 	golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect | ||||
| ) | ||||
							
								
								
									
										31
									
								
								tests/metrics/storage/fio-k8s/cmd/fiotest/go.sum
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								tests/metrics/storage/fio-k8s/cmd/fiotest/go.sum
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= | ||||
| github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= | ||||
| github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= | ||||
| github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||||
| github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= | ||||
| github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||||
| github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= | ||||
| github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= | ||||
| github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= | ||||
| github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= | ||||
| github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||
| github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= | ||||
| github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= | ||||
| github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= | ||||
| github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= | ||||
| github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= | ||||
| github.com/urfave/cli v1.22.14 h1:ebbhrRiGK2i4naQJr+1Xj92HXZCrK7MsyTS/ob3HnAk= | ||||
| github.com/urfave/cli v1.22.14/go.mod h1:X0eDS6pD6Exaclxm99NJ3FiCDRED7vIHpx2mDOHLvkA= | ||||
| golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= | ||||
| golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= | ||||
| gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= | ||||
| gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
							
								
								
									
										3
									
								
								tests/metrics/storage/fio-k8s/pkg/env/env.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								tests/metrics/storage/fio-k8s/pkg/env/env.go
									
									
									
									
										vendored
									
									
								
							| @@ -1,14 +1,13 @@ | ||||
| // Copyright (c) 2021 Intel Corporation | ||||
| // | ||||
| // SPDX-License-Identifier: Apache-2.0 | ||||
| // | ||||
| package env | ||||
|  | ||||
| import ( | ||||
| 	exec "github.com/kata-containers/kata-containers/tests/metrics/exec" | ||||
| ) | ||||
|  | ||||
| //logger interface for pkg | ||||
| // logger interface for pkg | ||||
| var log logger | ||||
| var Debug bool = false | ||||
|  | ||||
|   | ||||
							
								
								
									
										10
									
								
								tests/metrics/storage/fio-k8s/pkg/env/go.mod
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tests/metrics/storage/fio-k8s/pkg/env/go.mod
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| module github.com/kata-containers/kata-containers/tests/metrics/storage/fio-k8s/exec | ||||
|  | ||||
| go 1.19 | ||||
|  | ||||
| require ( | ||||
| 	github.com/kata-containers/kata-containers/tests/metrics/exec v0.0.0-00010101000000-000000000000 // indirect | ||||
| 	github.com/pkg/errors v0.9.1 // indirect | ||||
| ) | ||||
|  | ||||
| replace github.com/kata-containers/kata-containers/tests/metrics/exec => ../exec | ||||
							
								
								
									
										2
									
								
								tests/metrics/storage/fio-k8s/pkg/env/go.sum
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								tests/metrics/storage/fio-k8s/pkg/env/go.sum
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= | ||||
| github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| @@ -1,7 +1,6 @@ | ||||
| // Copyright (c) 2021 Intel Corporation | ||||
| // | ||||
| // SPDX-License-Identifier: Apache-2.0 | ||||
| // | ||||
| package exec | ||||
|  | ||||
| import ( | ||||
| @@ -13,7 +12,7 @@ import ( | ||||
| 	"github.com/pkg/errors" | ||||
| ) | ||||
|  | ||||
| //logger interface for pkg | ||||
| // logger interface for pkg | ||||
| var log logger | ||||
|  | ||||
| type logger interface { | ||||
|   | ||||
							
								
								
									
										5
									
								
								tests/metrics/storage/fio-k8s/pkg/exec/go.mod
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/metrics/storage/fio-k8s/pkg/exec/go.mod
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| module github.com/kata-containers/kata-containers/tests/metrics/storage/fio-k8s/exec | ||||
|  | ||||
| go 1.19 | ||||
|  | ||||
| require github.com/pkg/errors v0.9.1 | ||||
							
								
								
									
										2
									
								
								tests/metrics/storage/fio-k8s/pkg/exec/go.sum
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								tests/metrics/storage/fio-k8s/pkg/exec/go.sum
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= | ||||
| github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| @@ -1,7 +1,6 @@ | ||||
| // Copyright (c) 2021 Intel Corporation | ||||
| // | ||||
| // SPDX-License-Identifier: Apache-2.0 | ||||
| // | ||||
| package k8s | ||||
|  | ||||
| import ( | ||||
|   | ||||
							
								
								
									
										10
									
								
								tests/metrics/storage/fio-k8s/pkg/k8s/go.mod
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tests/metrics/storage/fio-k8s/pkg/k8s/go.mod
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| module github.com/kata-containers/kata-containers/tests/metrics/k8s | ||||
|  | ||||
| go 1.19 | ||||
|  | ||||
| replace github.com/kata-containers/kata-containers/tests/metrics/exec => ../exec | ||||
|  | ||||
| require ( | ||||
| 	github.com/kata-containers/kata-containers/tests/metrics/exec v0.0.0-00010101000000-000000000000 // indirect | ||||
| 	github.com/pkg/errors v0.9.1 // indirect | ||||
| ) | ||||
							
								
								
									
										2
									
								
								tests/metrics/storage/fio-k8s/pkg/k8s/go.sum
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								tests/metrics/storage/fio-k8s/pkg/k8s/go.sum
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= | ||||
| github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| @@ -1,7 +1,6 @@ | ||||
| // Copyright (c) 2021 Intel Corporation | ||||
| // | ||||
| // SPDX-License-Identifier: Apache-2.0 | ||||
| // | ||||
| package k8s | ||||
|  | ||||
| import ( | ||||
| @@ -11,7 +10,7 @@ import ( | ||||
| 	"github.com/pkg/errors" | ||||
| ) | ||||
|  | ||||
| //logger interface for pkg | ||||
| // logger interface for pkg | ||||
| var log logger | ||||
| var Debug bool = false | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user