]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/commitdiff
Fix MessageQMulti's multi_process.sh script for QNX and install it
authorvwan@ti.com <vwan@ti.com>
Thu, 30 May 2013 23:05:12 +0000 (16:05 -0700)
committerChris Ring <cring@ti.com>
Fri, 31 May 2013 20:45:19 +0000 (13:45 -0700)
qnx/src/tests/MessageQMulti/common.mk
qnx/src/tests/MessageQMulti/multi_process.sh

index c942202670ff8a5a848e07a89f019cfd03b14c3b..d54c4d54db1ba83c5027c4ef340b880ff47fc8e9 100644 (file)
@@ -58,3 +58,6 @@ EXTRA_INCVPATH += \
 include $(MKFILES_ROOT)/qtargets.mk
 
 LDFLAGS += -M
 include $(MKFILES_ROOT)/qtargets.mk
 
 LDFLAGS += -M
+
+POST_INSTALL = -$(CP_HOST) $(PROJECT_ROOT)/multi_process.sh \
+        $(INSTALL_ROOT_$(BUILD_TYPE))/$(INSTALLDIR)
index 2f2c965020f374a99ced9432b6fd9b1544214e7b..b72f9734aa346d6b18b34e7759bab22280e23858 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/bash
 # Run MessageQMulti in parallel processes
 #
 if [ $# -ne 2 ]
 # Run MessageQMulti in parallel processes
 #
 if [ $# -ne 2 ]
@@ -7,10 +6,10 @@ then
     exit
 fi
 
     exit
 fi
 
-for i in `seq 0 $(( $1 - 1))`
-do
-       echo "MessageQMulti Test #" $i
+num=0; while [ $num -lt $1 ];  do
+    ((num = $num + 1))
+       echo "MessageQMulti Test #" $num
        # This calls MessageQMulti with One Thread, a process #, and
        # number of iterations per thread.
        # This calls MessageQMulti with One Thread, a process #, and
        # number of iterations per thread.
-       MessageQMulti 1 $2 $i &
+       MessageQMulti 1 $2 $num &
 done
 done