mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-14 22:38:46 +00:00
Add tests
This commit is contained in:
@@ -48,6 +48,11 @@ fn main() {
|
||||
todo!("test gvn");
|
||||
}
|
||||
|
||||
if matches.is_present("end-to-end") {
|
||||
kecc::test_end_to_end(Path::new(&input));
|
||||
return;
|
||||
}
|
||||
|
||||
assert_eq!(
|
||||
Path::new(input).extension(),
|
||||
Some(std::ffi::OsStr::new("ir"))
|
||||
|
||||
@@ -23,6 +23,9 @@ args:
|
||||
- gvn:
|
||||
long: gvn
|
||||
help: Performs gvn
|
||||
- end-to-end:
|
||||
long: end-to-end
|
||||
help: Fuzzes irgen, optimize and asmgen pipeline
|
||||
- INPUT:
|
||||
help: Sets the input file to use
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user