`gofmt` is returning zero even if format is not proper. Instead it
returns list of files which are not properly formatted.
This issue in golang repo suggested to use `test -z` for the same
https://github.com/golang/go/issues/24230
Signed-off-by: Aravinda VK <avishwan@redhat.com>
This removes the now-empty verify target.
The linting and formatting checks are now
at the 020 level in the test directory.
Signed-off-by: Michael Adam <obnox@redhat.com>
This new test script 100-gotest.sh, adopted from heketi,
replaces the original go test line from the "test" make target.
It has the capability of reacting to environment variables:
stopping as soon as an error is hit, creating test coverage
reports, etc.
Signed-off-by: Michael Adam <obnox@redhat.com>
This is a first Makefile test adopted from heketi
that will make sure that Makefile formatting stays
consistent wrt spaces and tabs.
Signed-off-by: Michael Adam <obnox@redhat.com>
This adds a ./test.sh base script as test runner that
will execute test scripts under ./test/ in order.
It adds one simple first test to test the test infra.
Signed-off-by: Michael Adam <obnox@redhat.com>