aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2012-05-24 19:52:17 +0200
committerJiri Vanek <[email protected]>2012-05-24 19:52:17 +0200
commitda93921bc035aefc845cf554ae0c46481316ea11 (patch)
treec9a3be36e160453aa9ee0609e3eb4707e69ac2a0
parentb352a803f1a40654d7b10bfed48f5ef634b35395 (diff)
Introduced whitelist for reproducers
-rw-r--r--ChangeLog10
-rw-r--r--Makefile.am19
-rw-r--r--netx-dist-tests-whitelist1
3 files changed, 28 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 988395a..d00bebb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-05-24 Jiri Vanek <[email protected]>
+
+ Introduced whitelist for reproducers
+ * netx-dist-tests-whitelist: new file, contains regular expressions
+ (separated by space) for expr to select testcases which only will be
+ run. By default set to all by expression .*
+ * Makefile.am: (REPRODUCERS_CLASS_NAMES) When class with testcases is
+ going to be included in list, it is at first check for match in whitelist.
+ If there is no match, will not be included.
+
2012-05-24 Martin Olsson <[email protected]>
* plugin/icedteanp/IcedTeaPluginUtils.cc:
Fix two typos.
diff --git a/Makefile.am b/Makefile.am
index 5d14eb6..9cfa543 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,6 +32,7 @@ PUBLIC_KEYSTORE_PASS=changeit
JUNIT_RUNNER_JAR=$(abs_top_builddir)/junit-runner.jar
UNIT_CLASS_NAMES = $(abs_top_builddir)/unit_class_names
REPRODUCERS_CLASS_NAMES = $(abs_top_builddir)/reproducers_class_names
+REPRODUCERS_CLASS_WHITELIST = $(abs_top_builddir)/netx-dist-tests-whitelist
EMMA_JAVA_ARGS=-Xmx2G
META_MANIFEST = META-INF/MANIFEST.MF
@@ -587,13 +588,27 @@ stamps/netx-dist-tests-compile-testcases.stamp: stamps/netx.stamp stamps/junit-j
mkdir -p stamps && \
touch $@
-$(REPRODUCERS_CLASS_NAMES):
+$(REPRODUCERS_CLASS_NAMES): $(REPRODUCERS_CLASS_WHITELIST)
+ whiteListed=`cat $(REPRODUCERS_CLASS_WHITELIST)`; \
cd $(JNLP_TESTS_ENGINE_DIR) ; \
class_names= ; \
for test in `find -type f` ; do \
class_name=`echo $$test | sed -e 's|\.class$$||' -e 's|^\./||'` ; \
class_name=`echo $$class_name | sed -e 's|/|.|g' ` ; \
- class_names="$$class_names $$class_name" ; \
+ INLCUDE="NO" ; \
+ for x in $$whiteListed ; do \
+ q=`expr match "$$class_name" "$$x"`; \
+ r=$$? ; \
+ if [ $$r = 0 ]; then \
+ echo "$$class_name will be included in reproducers testcases because of $$x pattern in $(REPRODUCERS_CLASS_WHITELIST). Matching was $$q"; \
+ INLCUDE="YES" ; \
+ fi; \
+ done; \
+ if [ "$$INLCUDE" = "YES" ]; then \
+ class_names="$$class_names $$class_name" ; \
+ else \
+ echo "$$class_name had no match in $(REPRODUCERS_CLASS_WHITELIST). Excluding"; \
+ fi; \
done ; \
echo $$class_names > $(REPRODUCERS_CLASS_NAMES)
diff --git a/netx-dist-tests-whitelist b/netx-dist-tests-whitelist
new file mode 100644
index 0000000..8d98f9d
--- /dev/null
+++ b/netx-dist-tests-whitelist
@@ -0,0 +1 @@
+.*