The idea is that gocheck framework prepares a temporary directory and calls this function to create package files; each test case gets it fresh and it's automatically deleted afterwards.
With this commit we also introduce a custom Checker (extends gocheck library), TarGzEquals, that checks whether content of tar.gz file is a realization of given recipe.
@gberginc I think we forgot to click merge button on this one. Just wanted to add another similar test for capstan package describe here and noticed this is not in master yet. Please take a look.
We introduce a utility function
PrepareFiles
that knows how to realize a file-structure recipe written as a simple map. E.g.is realized into:
The idea is that gocheck framework prepares a temporary directory and calls this function to create package files; each test case gets it fresh and it's automatically deleted afterwards.
With this commit we also introduce a custom Checker (extends gocheck library),
TarGzEquals
, that checks whether content of tar.gz file is a realization of given recipe.