I'm currently working on getting more CI working for bigbro, and am struggling a bit to get the doctests to work. Since bigbro is all about running external commands, I need some external commands to actually run! I have a set of commands that I've been using on linux, and most of them work (with tweaking) for Mac, but windows is another story.
Any suggestions for useful portable commands? Or for a nice way to organize the doctests to use non-portable commands? I've already switched to using
std::env::temp_dir() to increase portability, but the trouble is that the documentation gets more challenging to understand as I start adding more checks in there, so I don't see a match to do different things on different platforms a great option.
As a more concrete question:
sha1sum seems to be portable, but I need to find a file to take the checksum of. Any suggestions for an easy way using the rust standard library to identify some file, any file? Currently I'm just using
/usr/bin/python, which obviously won't work on windows.
For the curious, you could see how (poorly?) my testing is going: