Add a test/sample program
This commit is contained in:
1 parent
1ea604a531
commit
449899b16f
3 files changed
+156
No files matched your search
@@ -0,0 +1,16 @@
|
||||
extern crate gio;
|
||||
extern crate libostree;
|
||||
|
||||
use gio::prelude::*;
|
||||
use libostree::prelude::*;
|
||||
|
||||
fn main() {
|
||||
let repo = libostree::Repo::new(&gio::File::new_for_path("test-repo"));
|
||||
|
||||
let result = repo.create(libostree::RepoMode::Archive, Option::None);
|
||||
|
||||
result.expect("we did not expect this to fail :O");
|
||||
|
||||
let path = repo.get_path();
|
||||
println!("path: {}", path.unwrap().get_path().unwrap().to_str().unwrap());
|
||||
}
|
||||
Reference in new issue
Block a user