Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
refactor some test targets
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Sep 28, 2009
1 parent 57459b0 commit 62fbfec
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ t/*.luac
t/*.orig_out
t/*.parrot_out
t/*.pir
t/pmc/*.pir

Test/More.*

28 changes: 20 additions & 8 deletions config/makefiles/root.in
Original file line number Diff line number Diff line change
Expand Up @@ -360,21 +360,33 @@ help:
@echo " help: Print this help message."
@echo ""

test: build
oldtest: build
$(PERL) -I$(LIB_DIR)/tools/lib t/harness

pmctest: build
prove -f t/pmc/*.t

export LUA_PATH=;;../src/?.lua
export LUA_INIT=platform = { osname=[[@osname@]], intsize=@intsize@, longsize=@longsize@ }

spectest : build
#UNLESS(win32): which parrot-lua
staging : build
$(MKPATH) t/lua-TestMore/test_lua51/lua/library
$(CP) lua//*.pbc t/lua-TestMore/test_lua51/lua
$(CP) lua/library//*.pbc t/lua-TestMore/test_lua51/lua/library

#spectest : staging
# cd t && cd lua-TestMore && cd test_lua51 \
# && prove -f --exec="$(PARROT) ../../../lua.pbc" --jobs 1 *.t lib//*.t
spectest : install
cd t && cd lua-TestMore && cd test_lua51 \
&& prove -f --exec=parrot-lua --jobs 1 *.t lib//*.t
&& prove -f --exec=parrot-lua@exe@ --jobs 1 *.t lib//*.t

smolder : build
#UNLESS(win32): which parrot-lua
#smolder : staging
# -cd t && cd lua-TestMore && cd test_lua51 \
# && prove -f --archive=test_lua51.tar.gz --exec="$(PARROT) ../../../lua.pbc" --jobs 1 *.t
smolder : install
-cd t && cd lua-TestMore && cd test_lua51 \
&& prove -f --archive=test_lua51.tar.gz --exec=parrot-lua --jobs 1 *.t
&& prove -f --archive=test_lua51.tar.gz --exec=parrot-lua@exe@ --jobs 1 *.t
curl -F architecture=@cpuarch@ \
-F platform=@osname@ \
-F revision=@revision@ \
Expand Down Expand Up @@ -480,7 +492,7 @@ win32-inno-installer: installable
$(PERL) -I$(LIB_DIR)/tools/lib $(LIB_DIR)/tools/dev/mk_inno_language.pl lua
iscc parrot-lua.iss

testclean:
oldtestclean:
$(RM_F) $(TEST_CLEANUPS)

clean:
Expand Down

0 comments on commit 62fbfec

Please sign in to comment.