Refactor cache configuration

This commit is contained in:
Artur Jamro
2019-09-06 15:09:05 -07:00
committed by Dan Gohman
parent c3a519d3a1
commit 1c22211d57
14 changed files with 747 additions and 592 deletions

View File

@@ -1,12 +1,12 @@
use tempfile;
use wasmtime_environ::cache_config;
use wasmtime_environ::cache_init;
#[test]
fn test_cache_write_default_config() {
let dir = tempfile::tempdir().expect("Can't create temporary directory");
let config_path = dir.path().join("cache-config.toml");
let errors = cache_config::init(true, Some(&config_path), true, None);
let errors = cache_init(true, Some(&config_path), true, None);
assert!(errors.is_empty());
assert!(config_path.exists());
}