test: add cmpout to testlib

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5699060
10 files changed