[Crosstoolchain-logs] [device-tree-compiler] 140/357: dtc: Cleanup testsuite organization

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit ef90baa0c6405fe6d9400d2f091576ac0df87155
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Mon Sep 17 14:39:24 2007 +1000

    dtc: Cleanup testsuite organization
    
    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 at gibson.dropbear.id.au>
---
 tests/Makefile.tests | 12 ------------
 tests/run_tests.sh   | 15 ++++-----------
 2 files changed, 4 insertions(+), 23 deletions(-)

diff --git a/tests/Makefile.tests b/tests/Makefile.tests
index e865daf..cc034bb 100644
--- a/tests/Makefile.tests
+++ b/tests/Makefile.tests
@@ -49,18 +49,6 @@ check:	tests
 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
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index d47677d..3973730 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -49,7 +49,7 @@ tree1_tests () {
     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 @@ functional_tests () {
     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 @@ while getopts "vdt:" ARG ; do
 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list