Created by: linzhp
Before Go 1.10, the file name of .go and .c files generated by cgo contains full relative path to the cgo file, e.g.:
src_vendor_github.com_shirou_gopsutil_cpu_cpu_darwin_cgo.cgo1.go
src_vendor_github.com_shirou_gopsutil_cpu_cpu_darwin_cgo.cgo2.c
Go 1.10 makes it simpler and only include in cgo file name in the .go and .c file names:
cpu_darwin_cgo.cgo1.go
cpu_darwin_cgo.cgo2.c
Go 1.10 also added two methods to testing.testDeps. This PR also update the testmaingen.go.in so that the test main are generated correctly.
cc @monty-uber
@styurin @ttsugriy Please review.