linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Jon Loeliger <jdl@freescale.com>
Cc: linuxppc-dev@ozlabs.org
Subject: dtc: Cleanup testsuite organization
Date: Mon, 17 Sep 2007 14:39:24 +1000	[thread overview]
Message-ID: <20070917043924.GJ32725@localhost.localdomain> (raw)

run_tests.sh from the dtc testsuite currently has a facility ro run
just "functional" or just "stress" tests.  This distinction is carried
over from libhugetlbfs where the test framework originated, and where
it made sense.

In dtc, we have no stress tests, so running these subsections isn't
particularly interesting.  This patch removes these test subsets,
instead defining a single "libfdt" test subset for testcases related
to libfdt (and not dtc proper only.  Currently that's all of the
testcases, but with any luck we'll have some dtc testcases in the
future.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>

Index: dtc/tests/Makefile.tests
===================================================================
--- dtc.orig/tests/Makefile.tests	2007-09-04 14:17:32.000000000 +1000
+++ dtc/tests/Makefile.tests	2007-09-04 14:17:36.000000000 +1000
@@ -49,18 +49,6 @@
 checkv:	tests
 	cd $(TESTS_PREFIX); ./run_tests.sh -v
 
-func:	tests
-	cd $(TESTS_PREFIX); ./run_tests.sh -t func
-
-funcv:	tests
-	cd $(TESTS_PREFIX); ./run_tests.sh -t func -v
-
-stress:	tests
-	cd $(TESTS_PREFIX); ./run_tests.sh -t stress
-
-stressv: tests
-	cd $(TESTS_PREFIX); ./run_tests.sh -t stress -v
-
 ifneq ($(DEPTARGETS),)
 -include $(TESTS_DEPFILES)
 endif
Index: dtc/tests/run_tests.sh
===================================================================
--- dtc.orig/tests/run_tests.sh	2007-09-04 14:16:22.000000000 +1000
+++ dtc/tests/run_tests.sh	2007-09-04 14:55:29.000000000 +1000
@@ -49,7 +49,7 @@
     run_test nop_node $TREE
 }
 
-functional_tests () {
+libfdt_tests () {
     # Make sure we don't have stale blobs lying around
     rm -f *.test.dtb
 
@@ -86,10 +86,6 @@
     run_test truncated_property
 }
 
-stress_tests () {
-    ITERATIONS=10           # Number of iterations for looping tests
-}
-
 while getopts "vdt:" ARG ; do
     case $ARG in
 	"v")
@@ -102,16 +98,13 @@
 done
 
 if [ -z "$TESTSETS" ]; then
-    TESTSETS="func stress"
+    TESTSETS="libfdt"
 fi
 
 for set in $TESTSETS; do
     case $set in
-	"func")
-	    functional_tests
-	    ;;
-	"stress")
-	    stress_tests
+	"libfdt")
+	    libfdt_tests
 	    ;;
     esac
 done

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

             reply	other threads:[~2007-09-17  4:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-17  4:39 David Gibson [this message]
2007-09-17 19:23 ` dtc: Cleanup testsuite organization Jon Loeliger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070917043924.GJ32725@localhost.localdomain \
    --to=david@gibson.dropbear.id.au \
    --cc=jdl@freescale.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).