summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ab688e)
raw | patch | inline | side by side (parent: 6ab688e)
author | vwan@ti.com <vwan@ti.com> | |
Thu, 30 May 2013 23:05:12 +0000 (16:05 -0700) | ||
committer | Chris Ring <cring@ti.com> | |
Fri, 31 May 2013 20:45:19 +0000 (13:45 -0700) |
qnx/src/tests/MessageQMulti/common.mk | patch | blob | history | |
qnx/src/tests/MessageQMulti/multi_process.sh | patch | blob | history |
index c942202670ff8a5a848e07a89f019cfd03b14c3b..d54c4d54db1ba83c5027c4ef340b880ff47fc8e9 100644 (file)
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)
diff --git a/qnx/src/tests/MessageQMulti/multi_process.sh b/qnx/src/tests/MessageQMulti/multi_process.sh
index 2f2c965020f374a99ced9432b6fd9b1544214e7b..b72f9734aa346d6b18b34e7759bab22280e23858 100644 (file)
-#!/bin/bash
# Run MessageQMulti in parallel processes
#
if [ $# -ne 2 ]
# Run MessageQMulti in parallel processes
#
if [ $# -ne 2 ]
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