Skip to content

Commit

Permalink
chore(prt-tests): improve Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenctw committed Dec 11, 2024
1 parent 69f724c commit c2300f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions prt/tests/compute-rs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ create-image:
@docker build -t cartesi/prt-compute:rs -f Dockerfile ../../../

test-simple: create-image
@docker run --rm --name prt-compute-test \
@docker run --rm --name prt-compute-test-simple-rs \
--env MACHINE_PATH=$(SIMPLE_MACHINE_PATH) \
--env LUA_NODE=$(LUA_NODE) \
cartesi/prt-compute:rs

test-stress: create-image
@docker run --rm --name prt-compute-test \
@docker run --rm --name prt-compute-test-stress-rs \
--env MACHINE_PATH=$(STRESS_MACHINE_PATH) \
--env LUA_NODE=$(LUA_NODE) \
cartesi/prt-compute:rs

test-doom: create-image
@docker run --rm --name prt-compute-test \
@docker run --rm --name prt-compute-test-doom-rs \
--env MACHINE_PATH=$(DOOM_MACHINE_PATH) \
--env LUA_NODE=$(LUA_NODE) \
cartesi/prt-compute:rs
Expand Down
8 changes: 4 additions & 4 deletions prt/tests/compute/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ create-image:
@docker build -t cartesi/prt-compute:lua -f Dockerfile ../../../

test-simple: create-image
@docker run --rm --name prt-compute-test \
@docker run --rm --name prt-compute-test-simple \
--env MACHINE_PATH=$(SIMPLE_MACHINE_PATH) \
--env LUA_NODE=$(LUA_NODE) \
cartesi/prt-compute:lua

test-stress: create-image
@docker run --rm --name prt-compute-test \
@docker run --rm --name prt-compute-test-stress \
--env MACHINE_PATH=$(STRESS_MACHINE_PATH) \
--env LUA_NODE=$(LUA_NODE) \
cartesi/prt-compute:lua

test-doom: create-image
@docker run --rm --name prt-compute-test \
@docker run --rm --name prt-compute-test-doom \
--env MACHINE_PATH=$(DOOM_MACHINE_PATH) \
--env LUA_NODE=$(LUA_NODE) \
cartesi/prt-compute:lua
Expand All @@ -41,7 +41,7 @@ clean-graphics:
@rm -r pixels outputs

test-doom-with-graphics: create-image create-doom-dirs
@docker run --rm --name prt-compute-test \
@docker run --rm --name prt-compute-test-doom-with-graphics \
--env MACHINE_PATH=$(DOOM_MACHINE_PATH) \
--env LUA_NODE=$(LUA_NODE) \
--mount type=bind,source="$(shell pwd)/pixels",target=/app/pixels \
Expand Down
2 changes: 1 addition & 1 deletion prt/tests/rollups/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ create-image:
@docker build -t cartesi/prt-rollups:test -f Dockerfile ../../../

test-echo: create-image
@docker run --rm --name rollups-echo-test \
@docker run --rm --name prt-rollups-test-echo \
--env MACHINE_PATH=$(ECHO_MACHINE_PATH) \
cartesi/prt-rollups:test

Expand Down

0 comments on commit c2300f5

Please sign in to comment.