diff --git a/.gitignore b/.gitignore index 4e701924..0727118b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.DS_Store *.ll *.out *.bc @@ -14,4 +15,4 @@ /target /tests/tmp.* /tests/tmp/hello.txt -.DS_Store +/tests/new_runtime/*.actual_out diff --git a/Rakefile b/Rakefile index cc8ffe02..2a92915b 100644 --- a/Rakefile +++ b/Rakefile @@ -163,3 +163,10 @@ end task async_test: :async do sh "./a" end +task :async_integration_test do + Dir["tests/new_runtime/*.sk"].each do |path| + name = path.sub(".sk", "") + sh "cargo run --bin exp_shiika -- #{name}.sk > #{name}.actual_out" + sh "diff #{name}.actual_out #{name}.expected_out" + end +end