Tests to ensure that cross compilation is working as expected.
Contents
Tests that cross compilation controlled by the goos and goarch attributes on a go_binary produces executables of the correct type. This builds binaries using main.go in multiple configurations, and then passes them as data to a test written in go. The test executes the unix command "file" on the binaries to determine their type, and checks they were built for the expected architecture.