Skip to content

Commit

Permalink
a makefile to help run testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed Dec 20, 2014
1 parent 597ab49 commit 67386a1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/Makefile
@@ -0,0 +1,21 @@
julia_cmd := julia --color --check-bounds
srun_cmd := srun --pty -p gpu --gres=gpu:1 --mem=8000

default:
@echo "Target List"
@echo " test - run local test"
@echo " test-ext - run local test with native extension"
@echo " test-gpu - run local test with CUDA backend"
@echo " test-srun - run test with CUDA backend on server"

test:
$(julia_cmd) runtests.jl

test-ext:
bash -c "MOCHA_USE_NATIVE_EXT=true $(julia_cmd) runtests.jl"

test-gpu:
bash -c "MOCHA_USE_CUDA=true $(julia_cmd) runtests.jl"

test-srun:
$(srun_cmd) bash -c "$(julia_cmd) runtests.jl"

0 comments on commit 67386a1

Please sign in to comment.