Skip to content

Commit

Permalink
Add rake task to run new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yhara committed Oct 9, 2024
1 parent f0c82fd commit 0cf49f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
*.ll
*.out
*.bc
Expand All @@ -14,4 +15,4 @@
/target
/tests/tmp.*
/tests/tmp/hello.txt
.DS_Store
/tests/new_runtime/*.actual_out
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0cf49f5

Please sign in to comment.