 
       let delegate = JobCollectingDelegate()
       let executor = JobExecutor(jobs: [compileFoo, compileMain, link], resolver: resolver, executorDelegate: delegate)
-      try executor.build(.relative(RelativePath("main")))
+      try executor.execute()
 
       let output = try TSCBasic.Process.checkNonZeroExit(args: exec.pathString)
       XCTAssertEqual(output, "5\n")


  func jobStarted(job: Job, arguments: [String], pid: Int) {
    started.append(job)
  }
}


  }

  func testStubProcessProtocol() throws {
    let job = Job(
      kind: .compile,
      tool: .absolute(AbsolutePath("/usr/bin/swift")),
