Add tests

This commit is contained in:
Jeehoon Kang
2020-06-09 14:45:11 +00:00
parent ea97330e03
commit ea9e6afcf8
258 changed files with 149921 additions and 26 deletions

View File

@@ -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"))

View File

@@ -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