Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow concurrency for cross-compile tests #1877

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions compiler/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,17 @@ crossCompileTests =
testGroup "cross-compilation tests"
[
testCase "build hello --target aarch64-macos-none --db" $ do
runActon "build --target aarch64-macos-none --db" ExitSuccess False "../test/compiler/hello/"
runActon "build --target aarch64-macos-none --db" ExitSuccess False "../test/compiler/hello_aarch64-macos-none/"
, testCase "build hello --target aarch64-windows-gnu" $ do
runActon "build --target aarch64-windows-gnu" ExitSuccess False "../test/compiler/hello/"
runActon "build --target aarch64-windows-gnu" ExitSuccess False "../test/compiler/hello_aarch64-windows-gnu/"
, testCase "build hello --target x86_64-macos-none --db" $ do
runActon "build --target x86_64-macos-none --db" ExitSuccess False "../test/compiler/hello/"
runActon "build --target x86_64-macos-none --db" ExitSuccess False "../test/compiler/hello_x86_64-macos-none/"
, testCase "build hello --target x86_64-linux-gnu.2.27 --db" $ do
runActon "build --target x86_64-linux-gnu.2.27 --db" ExitSuccess False "../test/compiler/hello/"
runActon "build --target x86_64-linux-gnu.2.27 --db" ExitSuccess False "../test/compiler/hello_x86_64-linux-gnu.2.27/"
, testCase "build hello --target x86_64-linux-musl --db" $ do
runActon "build --target x86_64-linux-musl --db" ExitSuccess False "../test/compiler/hello/"
runActon "build --target x86_64-linux-musl --db" ExitSuccess False "../test/compiler/hello_x86_64-linux-musl/"
, testCase "build hello --target x86_64-windows-gnu" $ do
runActon "build --target x86_64-windows-gnu" ExitSuccess False "../test/compiler/hello/"
runActon "build --target x86_64-windows-gnu" ExitSuccess False "../test/compiler/hello_x86_64-windows-gnu/"
]

-- Creates testgroup from .act files found in specified directory
Expand Down
3 changes: 3 additions & 0 deletions test/compiler/hello_aarch64-macos-none/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.actonc.lock
build-cache
out
Empty file.
6 changes: 6 additions & 0 deletions test/compiler/hello_aarch64-macos-none/src/hello.act
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
#

actor main(env):
print("Hello World!")
await async env.exit(0)
3 changes: 3 additions & 0 deletions test/compiler/hello_aarch64-windows-gnu/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.actonc.lock
build-cache
out
Empty file.
6 changes: 6 additions & 0 deletions test/compiler/hello_aarch64-windows-gnu/src/hello.act
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
#

actor main(env):
print("Hello World!")
await async env.exit(0)
3 changes: 3 additions & 0 deletions test/compiler/hello_x86_64-linux-gnu.2.27/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.actonc.lock
build-cache
out
Empty file.
6 changes: 6 additions & 0 deletions test/compiler/hello_x86_64-linux-gnu.2.27/src/hello.act
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
#

actor main(env):
print("Hello World!")
await async env.exit(0)
3 changes: 3 additions & 0 deletions test/compiler/hello_x86_64-linux-musl/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.actonc.lock
build-cache
out
Empty file.
6 changes: 6 additions & 0 deletions test/compiler/hello_x86_64-linux-musl/src/hello.act
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
#

actor main(env):
print("Hello World!")
await async env.exit(0)
3 changes: 3 additions & 0 deletions test/compiler/hello_x86_64-macos-none/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.actonc.lock
build-cache
out
Empty file.
6 changes: 6 additions & 0 deletions test/compiler/hello_x86_64-macos-none/src/hello.act
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
#

actor main(env):
print("Hello World!")
await async env.exit(0)
3 changes: 3 additions & 0 deletions test/compiler/hello_x86_64-windows-gnu/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.actonc.lock
build-cache
out
Empty file.
6 changes: 6 additions & 0 deletions test/compiler/hello_x86_64-windows-gnu/src/hello.act
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
#

actor main(env):
print("Hello World!")
await async env.exit(0)
Loading