I yesterday ported the tear-down part of MicroFW from Python back to Bash. (It was just unhappy in Python.) In doing so, I tested it by uploading it to my server, running it and seeing what happens. This is obviously unsatisfactory, but since the script runs a bunch of
iptables calls and the like, how am I supposed to test it? This integrates pretty deeply into the system, no way of mocking that, right?
Well, yes way: You just need to shamelessly abuse the