rustpkg: Implement `rustpkg test`

r? @metajack Towards #7401