Fixed README to include threading
parent
4561caa6cf
commit
3693ff1668
|
@ -3,7 +3,7 @@
|
||||||
This is a (mostly) drop-in replacement for the previous tester written for CMPUT 415.
|
This is a (mostly) drop-in replacement for the previous tester written for CMPUT 415.
|
||||||
|
|
||||||
Most of the options are specified in the [config file](#configuration-file), so the cli is minimal. We do specify some options:
|
Most of the options are specified in the [config file](#configuration-file), so the cli is minimal. We do specify some options:
|
||||||
``` rust
|
```
|
||||||
Usage: tester [OPTIONS] --config-file <CONFIG> <COMMAND>
|
Usage: tester [OPTIONS] --config-file <CONFIG> <COMMAND>
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
|
@ -14,11 +14,11 @@ Commands:
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-v, --verbosity... Sets the verbosity of the tester
|
-v, --verbosity... Sets the verbosity of the tester
|
||||||
|
-t, --threads <THREADS> Set the number of threads (only valid in run and grade mode)
|
||||||
-c, --config-file <CONFIG> Set the config file
|
-c, --config-file <CONFIG> Set the config file
|
||||||
-g, --grading-conf <GRADING_CONFIG> Set the grading config file
|
-g, --grading-conf <GRADING_CONFIG> Set the grading config file
|
||||||
-h, --help Print help
|
-h, --help Print help
|
||||||
-V, --version Print version
|
-V, --version Print version
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
the verbosity defines the level of logging, you can play around with it (specify `-v[v]+` for more verbose logging).
|
the verbosity defines the level of logging, you can play around with it (specify `-v[v]+` for more verbose logging).
|
||||||
|
|
|
@ -15,12 +15,12 @@ pub fn validate(verbosity: u8, config: util::config::Config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_dir_files(path: PathBuf) -> Result<Vec<PathBuf>, &'static str> {
|
fn get_dir_files(path: PathBuf) -> Result<Vec<PathBuf>, &'static str> {
|
||||||
let mut res: Vec<PathBuf>;
|
let mut res: Vec<PathBuf> = vec![];
|
||||||
|
|
||||||
// get the readout of the path for error handling
|
// get the readout of the path for error handling
|
||||||
let entries = match fs::read_dir(path) {
|
let entries = match fs::read_dir(path) {
|
||||||
Ok(x) => x,
|
Ok(x) => x,
|
||||||
Err(error) => return Err("Failed to read from the given directory"),
|
Err(..) => return Err("Failed to read from the given directory"),
|
||||||
};
|
};
|
||||||
|
|
||||||
for entry in entries {
|
for entry in entries {
|
||||||
|
@ -37,11 +37,11 @@ fn get_dir_files(path: PathBuf) -> Result<Vec<PathBuf>, &'static str> {
|
||||||
|
|
||||||
|
|
||||||
fn check_suffix(path: PathBuf, suf: String) -> bool {
|
fn check_suffix(path: PathBuf, suf: String) -> bool {
|
||||||
return
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_match(path1: PathBuf, path2: PathBuf, in_suf: String, out_suf: String) -> bool {
|
fn check_match(path1: PathBuf, path2: PathBuf, in_suf: String, out_suf: String) -> bool {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue