[pisa-src] r2571 - in trunk/tools/testbed/plugins/classes: hipl/build_pre_hook openwrt/build_pre_hook pisa/build_pre_hook

  • From: Samuel Richter <samuel.richter@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 16 May 2011 19:46:09 +0200

Author: richter
Date: Mon May 16 19:46:09 2011
New Revision: 2571

Log:
testbed building: only the classes of selected targets should be build

Modified:
   trunk/tools/testbed/plugins/classes/hipl/build_pre_hook
   trunk/tools/testbed/plugins/classes/openwrt/build_pre_hook
   trunk/tools/testbed/plugins/classes/pisa/build_pre_hook

Modified: trunk/tools/testbed/plugins/classes/hipl/build_pre_hook
==============================================================================
--- trunk/tools/testbed/plugins/classes/hipl/build_pre_hook     Mon May 16 
16:24:51 2011        (r2570)
+++ trunk/tools/testbed/plugins/classes/hipl/build_pre_hook     Mon May 16 
19:46:09 2011        (r2571)
@@ -3,7 +3,10 @@
 build_hipl_pre_hook(){
     echo "building hipl"
     # collect all classes of nodes that have the hipl class
-    grep -l hipl "$BUILD_PATH"/*_classes | xargs cat | sort | uniq | while 
read -r PKG_CLASS; do
+    #grep -l hipl "$BUILD_PATH"/*_classes | xargs cat | sort | uniq | while 
read -r PKG_CLASS; do
+    for TARGET in $TARGETS; do
+        grep -l hipl "$BUILD_PATH/$TARGET"_classes | xargs cat
+    done | sort | uniq | while read -r PKG_CLASS; do
         case $PKG_CLASS in
 
             debian|ubuntu_live)

Modified: trunk/tools/testbed/plugins/classes/openwrt/build_pre_hook
==============================================================================
--- trunk/tools/testbed/plugins/classes/openwrt/build_pre_hook  Mon May 16 
16:24:51 2011        (r2570)
+++ trunk/tools/testbed/plugins/classes/openwrt/build_pre_hook  Mon May 16 
19:46:09 2011        (r2571)
@@ -1,7 +1,11 @@
 #!/bin/sh
 
 build_openwrt_pre_hook(){
-    grep -l openwrt "$BUILD_PATH"/*_classes | xargs cat | sort | uniq | while 
read -r NODE_TYPE; do
+    # collect all classes of nodes that have the openwrt class
+    #grep -l openwrt "$BUILD_PATH"/*_classes | xargs cat | sort | uniq | while 
read -r NODE_TYPE; do
+    for TARGET in $TARGETS; do
+        grep -l hipl "$BUILD_PATH/$TARGET"_classes | xargs cat
+    done | sort | uniq | while read -r PKG_CLASS; do
         case $NODE_TYPE in
             linksys)
                "$PISA_PATH"/openwrt/configure_router.sh pisa-testbed 
"$OPENWRT_PATH" "$PISA_PATH" "$HIPL_PATH" "$NODE_TYPE"

Modified: trunk/tools/testbed/plugins/classes/pisa/build_pre_hook
==============================================================================
--- trunk/tools/testbed/plugins/classes/pisa/build_pre_hook     Mon May 16 
16:24:51 2011        (r2570)
+++ trunk/tools/testbed/plugins/classes/pisa/build_pre_hook     Mon May 16 
19:46:09 2011        (r2571)
@@ -2,7 +2,10 @@
 
 build_pisa_pre_hook(){
     # collect all classes of nodes that have the pisa class
-    grep -l pisa "$BUILD_PATH"/*_classes | xargs cat | sort | uniq | while 
read -r PKG_CLASS; do
+    #grep -l pisa "$BUILD_PATH"/*_classes | xargs cat | sort | uniq | while 
read -r PKG_CLASS; do
+    for TARGET in $TARGETS; do
+        grep -l pisa "$BUILD_PATH/$TARGET"_classes | xargs cat
+    done | sort | uniq | while read -r PKG_CLASS; do
         case $PKG_CLASS in
 
             debian|ubuntu_live)
-- 
This is the pisa developer mailing list. Please also subscribe to the main pisa 
list at:
//www.freelists.org/list/pisa

Other related posts:

  • » [pisa-src] r2571 - in trunk/tools/testbed/plugins/classes: hipl/build_pre_hook openwrt/build_pre_hook pisa/build_pre_hook - Samuel Richter