checkBuild :: FilePath -> Assertion
checkBuild ghcPath = do
    let spec = PackageSpec
            { directory = dir
            , distPref = Nothing
            , configOpts = []
            }
    buildResult <- cabal_build spec ghcPath
    assertBuildSucceeded buildResult
checkBuild :: FilePath -> Assertion
checkBuild ghcPath = do
    let spec = PackageSpec
            { directory = dir
            , distPref = Nothing
            , configOpts = []
            }
    buildResult <- cabal_build spec ghcPath
    assertBuildSucceeded buildResult
checkBuild ghcPath = do
    let spec = PackageSpec
            { directory = dir
            , distPref = Nothing
            , configOpts = []
            }
    buildResult <- cabal_build spec ghcPath
    assertBuildSucceeded buildResult