Skip to content

Commit

Permalink
Introduce preliminary test code
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteOtter committed Jul 19, 2024
1 parent 14bd174 commit 21c85bf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vnc-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "vnc-test"
version = "0.1.0"
edition = "2021"

[dependencies]
tokio = "1.38.1"
vnc-rs = "0.5.1"
isototest = { package = "isototest", path = "../isototest"}
14 changes: 14 additions & 0 deletions vnc-test/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use tokio::{self, net::TcpStream};
use isototest::create_vnc_client;

#[tokio::main]
async fn main() {
match create_vnc_client("qamaster.qe.nue2.suse.org:14889".to_string(), Some(String::new())).await {
Ok(client) => {
println!("All ok!");
},
Err(e) => {
panic!("{}", e);
}
};
}

0 comments on commit 21c85bf

Please sign in to comment.