csm
csm copied to clipboard
Unit test support for windows
Bug Description
While running unit test on a windows machine, the test complains about the following files in gofsutil: C:\Users\go\pkg\mod\github.com\dell\[email protected]\gofsutil_fs.go:174:13: undefined: unix.Statfs_t C:\Users\go\pkg\mod\github.com\dell\[email protected]\gofsutil_fs.go:175:9: undefined: unix.Statfs
Logs
PS C:\Work\CSI\external\csi-powermax\service> go test github.com/dell/gofsutil C:\Users\Utkarsh_Dubey\go\pkg\mod\github.com\dell\[email protected]\gofsutil_fs.go:174:13: undefined: unix.Statfs_t C:\Users\Utkarsh_Dubey\go\pkg\mod\github.com\dell\[email protected]\gofsutil_fs.go:175:9: undefined: unix.Statfs FAIL github.com/dell/csi-powermax/v2/service [build failed] PS C:\Work\CSI\external\csi-powermax\service>
Screenshots
Additional Environment Information
- Windows 10
- Go installed: go version go1.17.1 windows/amd64
Steps to Reproduce
- Clone https://github.com/dell/csi-powermax
- cd to csi-powermax
- Run make unit-test or cd csi-powermax/service and run cmd go test
Expected Behavior
Unit test should run clean on windows machine
CSM Driver(s)
CSI Driver for Powermax 2.1
Installation Type
No response
Container Storage Modules Enabled
No response
Container Orchestrator
NA
Operating System
Windows 10
@shanmydell @delldubey have any updates been made here?
@tssushma why is this tagged a feature? This was opened as a bug.
As windows platform is not supported currently, it is set to feature
@shanmydell , @delldubey if this is a request for Windows Support, let's change the description to reflect it as opposed to Unit tests. Thanks!
@delldubey Please provide more information on what this request is for? Is this for development or deployment purpose?