pub struct RemoteCompilationTest { /* private fields */ }Expand description
Remote compilation test runner.
Verifies that the RCH pipeline works correctly by:
- Making a detectable change to the source
- Building locally for a reference
- Building remotely
- Comparing the results
Implementations§
Source§impl RemoteCompilationTest
impl RemoteCompilationTest
Sourcepub fn new(
worker: WorkerConfig,
project_path: impl Into<PathBuf>,
config: VerificationConfig,
) -> Self
pub fn new( worker: WorkerConfig, project_path: impl Into<PathBuf>, config: VerificationConfig, ) -> Self
Create a new remote compilation test.
§Arguments
worker- Worker configuration for remote executionproject_path- Path to the Rust project to testconfig- Verification configuration
Sourcepub fn with_remote_path_suffix(self, suffix: impl AsRef<str>) -> Self
pub fn with_remote_path_suffix(self, suffix: impl AsRef<str>) -> Self
Set the remote project path suffix.
Sourcepub fn run(&self) -> Result<VerificationResult>
pub fn run(&self) -> Result<VerificationResult>
Run the verification test.
This performs the full verification flow:
- Apply test change to make binary unique
- Build locally for reference hash
- rsync source to worker
- Build on worker
- rsync artifacts back
- Compare hashes
Auto Trait Implementations§
impl Freeze for RemoteCompilationTest
impl RefUnwindSafe for RemoteCompilationTest
impl Send for RemoteCompilationTest
impl Sync for RemoteCompilationTest
impl Unpin for RemoteCompilationTest
impl UnsafeUnpin for RemoteCompilationTest
impl UnwindSafe for RemoteCompilationTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more