Homework 0 forum

Integration tests on Windows

 
Picture of Andrej Janchevski
Integration tests on Windows
by Andrej Janchevski - Friday, 25 September 2020, 20:57
 

Hello, I was solving the homework on Windows 10 and all of the unit tests pass, however I still don't understand how to run the integration tests successfully.

I have in any case no way of running these tests on Windows if they require the original Windows-compiled binary of your implementation, as this kind of file was not pushed on GitLab.

Also, I have noticed that some functions in bingossip.go have panic("not implemented") as their body. Do we have to implement these or are there some errors in the pushed integration test files?

Picture of Cristina Basescu
Re: Integration tests on Windows
by Cristina Basescu - Friday, 25 September 2020, 22:57
 

Hi,

1. Indeed, we haven't provided a Windows binary, sorry. We'll hopefully do that next week. In the meantime, could you perhaps run the integration tests via gitlab's CI?

2. No, there's no error in bingossip.go and there's no need to add anything to that file.

Cristina


Picture of Andrej Janchevski
Re: Integration tests on Windows
by Andrej Janchevski - Friday, 25 September 2020, 23:43
 

Thank you for your response.

On GitLab for the integration tests I get "Permission denied" errors about the binary ./hw0

Picture of Bastien Wermeille
Re: Integration tests on Windows
by Bastien Wermeille - Saturday, 26 September 2020, 01:25
 
There exist a solution on windows to run the tests, you can use WSL(Windows Subsystem for Linux). I personally use this technology for a lot of projets and it works pretty well. Regarding the issue your are facing, you might try to run the command `
git update-index --chmod=+x gossiper/hw0
` which will normally change the rights of the file and make it executable on gitlab.