Permalink
Browse files

Add smoke testing.

  • Loading branch information...
1 parent 60d67aa commit 45349c786e86e1a6a6217f2f921f4c91c6ed474f @bschmalhofer committed Feb 8, 2009
Showing with 31 additions and 17 deletions.
  1. +2 −1 .gitignore
  2. +27 −14 config/makefiles/root.in
  3. +2 −2 t/harness
View
@@ -1,4 +1,5 @@
-Makefile
+/Makefile
+/eclectus_test_run.tar.gz
/driver_nqp.pbc
/src/builtins/all.pbc
/src/pmc/eclectus_group.c
View
@@ -17,8 +17,8 @@ BUILD_DYNPMC = $(PERL) @build_dir@/tools/build/dynpmc.pl
#IF(darwin):export MACOSX_DEPLOYMENT_TARGET := @osx_version@
# Set up directories
-PARROT_DYNEXT = @build_dir@/runtime/parrot/dynext
-PMC_DIR = src/pmc
+PARROT_DYNEXT = @build_dir@/runtime/parrot/dynext
+PMC_DIR = src/pmc
ECLECTUS_GROUP = $(PMC_DIR)/eclectus_group@load_ext@
PMCS = \
@@ -42,20 +42,28 @@ PMC_SOURCES = \
# The default target
default: build
+# This is a listing of all targets, that are meant to be called by users
help :
@echo ""
@echo "Following targets are available for the user:"
@echo ""
+ @echo "Building:"
@echo " build: Builds the dynamic PMCSs needed by Eclectus."
@echo " This is the default target."
@echo ""
+ @echo "Testing:"
@echo " test: Run the test suite."
+ @echo " smoke: Run the test suite and send report to the smolder server"
@echo ""
- @echo " clean: Clean up temporary files."
- @echo ""
- @echo " realclean: Clean up generated files."
+ @echo "Cleaning:"
+ @echo " clean: Clean up."
+ @echo " clean-test: Clean up temporary files from testing."
+ @echo " clean-pmc: Clean up temporary files from the PMC build process."
+ @echo " realclean: Clean and remove Makefile."
@echo ""
+ @echo "Misc:"
@echo " help: Print this help message."
+ @echo ""
# regenerate the Makefile
Makefile: config/makefiles/root.in
@@ -78,15 +86,23 @@ driver_nqp.pbc: src/builtins/all.pbc driver_nqp.pir
src/builtins/all.pbc: src/builtins/all.pir
$(PARROT) -o src/builtins/all.pbc src/builtins/all.pir
+# testing
+test: build
+ $(PERL) t/harness
+
+# run the test suite, create a TAP archive and send it off to smolder
+smoke : build
+ - $(PERL) t/harness --archive --send-to-smolder
+
# cleaning up
-clean: dynext-clean test-clean
+clean: clean-pmc clean-test
$(RM_F) \
stst.out \
driver_nqp.pbc \
src/builtins/all.pbc
-dynext-clean:
+clean-pmc:
$(RM_F) \
$(PMC_DIR)/*.h \
$(PMC_DIR)/*.c \
@@ -103,10 +119,7 @@ dynext-clean:
realclean: clean
$(RM_F) Makefile
-# testing
-test: build
- $(PERL) t/harness
-
-test-clean:
- $(RM_F) t/*.nqp
- $(RM_F) t/*.pir
+# Local variables:
+# mode: makefile
+# End:
+# vim: ft=make:
View
@@ -78,7 +78,7 @@ $verbosity ||= 0;
if ( $archive_flag ) {
my %env_data = Parrot::Harness::Smoke::collect_test_environment_data();
- my $report_file = ['pipp_test_run.tar.gz'];
+ my $report_file = ['eclectus_test_run.tar.gz'];
my $harness = TAP::Harness::Archive->new(
{
exec => $exec_sub,
@@ -92,7 +92,7 @@ $verbosity ||= 0;
if ( $send_to_smolder_flag ) {
$env_data{report_file} = $report_file;
- $env_data{project_id} = 10;
+ $env_data{project_id} = 13;
Parrot::Harness::Smoke::send_archive_to_smolder(%env_data);
}
} else {

0 comments on commit 45349c7

Please sign in to comment.