csm icon indicating copy to clipboard operation
csm copied to clipboard

Unit test support for windows

Open delldubey opened this issue 2 years ago • 5 comments

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

Screenshot (1)

Additional Environment Information

  1. Windows 10
  2. Go installed: go version go1.17.1 windows/amd64

Steps to Reproduce

  1. Clone https://github.com/dell/csi-powermax
  2. cd to csi-powermax
  3. 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

delldubey avatar Mar 22 '22 06:03 delldubey

@shanmydell @delldubey have any updates been made here?

shaynafinocchiaro avatar Mar 22 '23 14:03 shaynafinocchiaro

@tssushma why is this tagged a feature? This was opened as a bug.

sharmilarama avatar Oct 11 '23 15:10 sharmilarama

As windows platform is not supported currently, it is set to feature

shanmydell avatar Oct 11 '23 15:10 shanmydell

@shanmydell , @delldubey if this is a request for Windows Support, let's change the description to reflect it as opposed to Unit tests. Thanks!

AronAtDell avatar Oct 16 '23 13:10 AronAtDell

@delldubey Please provide more information on what this request is for? Is this for development or deployment purpose?

Prabhu-Dell avatar Oct 16 '23 13:10 Prabhu-Dell