[svn:parrot] r36329 - trunk/languages/lua/config/makefiles

fperrad at svn.parrot.org fperrad at svn.parrot.org
Tue Feb 3 18:13:22 UTC 2009


Author: fperrad
Date: Tue Feb  3 18:13:21 2009
New Revision: 36329
URL: https://trac.parrot.org/parrot/changeset/36329

Log:
[Lua] add a target 'codetest'

Modified:
   trunk/languages/lua/config/makefiles/root.in

Modified: trunk/languages/lua/config/makefiles/root.in
==============================================================================
--- trunk/languages/lua/config/makefiles/root.in	Tue Feb  3 18:12:13 2009	(r36328)
+++ trunk/languages/lua/config/makefiles/root.in	Tue Feb  3 18:13:21 2009	(r36329)
@@ -1,4 +1,4 @@
-# Copyright (C) 2005-2008, The Perl Foundation.
+# Copyright (C) 2005-2009, The Perl Foundation.
 # $Id$
 
 ## configuration settings
@@ -136,7 +136,8 @@
 src/POSTGrammar_gen.pir: src/POSTGrammar.tg
 	$(TGE) --output=src/POSTGrammar_gen.pir src/POSTGrammar.tg
 
-lua.pbc: lua.pir src/lua51.pir src/grammar51.pir src/lua51_gen.pir src/PASTGrammar_gen.pir src/POSTGrammar_gen.pir $(LIB_SRCS)
+lua.pbc: lua.pir src/lua51.pir src/grammar51.pir src/lua51_gen.pir \
+src/PASTGrammar_gen.pir src/POSTGrammar_gen.pir $(LIB_SRCS)
 	$(PARROT) -o lua.pbc --output-pbc lua.pir
 
 lua at exe@: lua.pbc
@@ -255,7 +256,8 @@
 	-$(PARROT) --output=uuid.pbc $(LIBPATH)/uuid.pir
 
 $(LIBPATH)/luabytecode_gen.pir: $(LIBPATH)/luabytecode.rules src/build/translator.pl
-	$(PERL) src/build/translator.pl $(LIBPATH)/luabytecode.rules --output $(LIBPATH)/luabytecode_gen.pir
+	$(PERL) src/build/translator.pl $(LIBPATH)/luabytecode.rules \
+            --output $(LIBPATH)/luabytecode_gen.pir
 
 src/yapp/Lua/parser.pm: src/yapp/Lua/lua51.yp
 	yapp -v -m Lua::parser -o src/yapp/Lua/parser.pm src/yapp/Lua/lua51.yp
@@ -272,9 +274,12 @@
 	@echo "                     This is the default."
 	@echo "Testing:"
 	@echo "  test:              Run the test suite."
-	@echo "  smoke:             Run the test suite and send report to the smolder server"
+	@echo "  codetest:          Run file metadata and coding standards tests."
 	@echo "  testclean:         Clean up test results."
 	@echo ""
+	@echo "Smoke Testing:"
+	@echo "  smoke:             Run the test suite and send report to the smolder server"
+	@echo ""
 	@echo "Cleaning:"
 	@echo "  clean:             Basic cleaning up."
 	@echo "  realclean:         Removes also files generated by 'Configure.pl'"
@@ -287,6 +292,60 @@
 test: all
 	cd .. && $(PERL) t/harness --languages=lua
 
+codetest: codetest-c codetest-make codetest-perl codetest-pir codetest-pod
+
+T_C     = src//pmc//*.pmc src//pmc//lua_private.h
+T_MAKE  = config//makefiles//root.in
+T_PERL  = Configure.pl t//harness t//*.t t//pmc//*.t t//Parrot//Test//*.pm \
+          src//build//*.pl src//yapp//Lua//*.pm
+T_PIR   = *.pir src//lua51.pir src//grammar51.pir src//lib//*.pir
+T_POD   = doc//*.pod
+
+codetest-c:
+	- $(PERL) @build_dir@/t/codingstd/c_code_coda.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/c_cppcomments.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/c_indent.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/c_macro_args.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/c_operator.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/c_parens.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/c_returns.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/copyright.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/cuddled_else.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/filenames.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/linelength.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/svn_id.t $(T_C)
+	- $(PERL) @build_dir@/t/codingstd/trailing_space.t $(T_C)
+
+codetest-make:
+	- $(PERL) @build_dir@/t/codingstd/copyright.t $(T_MAKE)
+	- $(PERL) @build_dir@/t/codingstd/filenames.t $(T_MAKE)
+	- $(PERL) @build_dir@/t/codingstd/make_code_coda.t $(T_MAKE)
+	- $(PERL) @build_dir@/t/codingstd/linelength.t $(T_MAKE)
+	- $(PERL) @build_dir@/t/codingstd/svn_id.t $(T_MAKE)
+	- $(PERL) @build_dir@/t/codingstd/trailing_space.t $(T_MAKE)
+
+codetest-perl:
+	- $(PERL) @build_dir@/t/codingstd/copyright.t $(T_PERL)
+	- $(PERL) @build_dir@/t/codingstd/cuddled_else.t $(T_PERL)
+	- $(PERL) @build_dir@/t/codingstd/filenames.t $(T_PERL)
+#	- $(PERL) @build_dir@/t/codingstd/linelength.t $(T_PERL)
+	- $(PERL) @build_dir@/t/codingstd/svn_id.t $(T_PERL)
+	- $(PERL) @build_dir@/t/codingstd/trailing_space.t $(T_PERL)
+
+codetest-pir:
+	- $(PERL) @build_dir@/t/codingstd/copyright.t $(T_PIR)
+	- $(PERL) @build_dir@/t/codingstd/filenames.t $(T_PIR)
+#	- $(PERL) @build_dir@/t/codingstd/linelength.t $(T_PIR)
+	- $(PERL) @build_dir@/t/codingstd/pir_code_coda.t $(T_PIR)
+	- $(PERL) @build_dir@/t/codingstd/svn_id.t $(T_PIR)
+	- $(PERL) @build_dir@/t/codingstd/trailing_space.t $(T_PIR)
+
+codetest-pod:
+	- $(PERL) @build_dir@/t/codingstd/copyright.t $(T_POD)
+	- $(PERL) @build_dir@/t/codingstd/linelength.t $(T_POD)
+	- $(PERL) @build_dir@/t/codingstd/svn_id.t $(T_POD)
+	- $(PERL) @build_dir@/t/doc/pod.t $(T_POD)
+
 # run the test suite, create a TAP archive and send it off to smolder
 smoke : all
 	-$(PERL) t/harness --archive --send-to-smolder


More information about the parrot-commits mailing list