should build "all" before "test"; close #1774