jeudi 25 février 2016

Unit testing a bash script calling mount partition

I have a bash script that calls linux mount.

I want to unit test that script. I'm currently using shunit2.

One thing that I tried was to create a file mount and tried to use this one to respond 0 or -1 or +1 depending on what I wanted to test.

It obviously didn't work :)

Is there a way to make it work? Any suggestions?

Aucun commentaire:

Enregistrer un commentaire