Rewriting Bash scripts in Go using black box testing
When rewriting software in a new language, how do you test that your new and old programs do the same thing?
![](https://cdn.stackoverflow.co/images/jo7n4k8s/production/110976f49a93b63fd335e9081d04f240045ce9a2-2400x1260.jpg?rect=1,0,2399,1260&w=415&h=218&auto=format&dpr=2)
When rewriting software in a new language, how do you test that your new and old programs do the same thing?
DevOps job posts often ask for automation skills, which is a positive way of asking for someone who’s professionally lazy in a way that results in efficiency. The good news is that developers can also learn a few tricks from the land of ops to make their days easier and their work better.