summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim/tools/psim-top.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-03 18:37:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-03 18:37:51 +0000
commit001b41625e461404288c2e3ec7821992c06233ef (patch)
tree80052d3b071688cb86ce016a217241fea6e5254f /c/src/lib/libbsp/powerpc/psim/tools/psim-top.in
parent2008-09-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-001b41625e461404288c2e3ec7821992c06233ef.tar.bz2
2008-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Rework psim scripts to share code for creating device trees and actually running the tests. Overhaul the device tree generated to always include a block of Flash and a Real-Time Clock. When running MP tests enable the shared memory and semaphore devices. * psim-bottom, psim-gdb-bottom, psim-gdb-top.in, psim-shared, psim-top.in, runtest-bottom, runtest-top.in: New files. * psim, psim-gdb, runtest: Removed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/tools/psim-top.in')
-rwxr-xr-xc/src/lib/libbsp/powerpc/psim/tools/psim-top.in41
1 files changed, 41 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/tools/psim-top.in b/c/src/lib/libbsp/powerpc/psim/tools/psim-top.in
new file mode 100755
index 0000000000..f6d2cced6b
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/psim/tools/psim-top.in
@@ -0,0 +1,41 @@
+#! @KSH@ -p
+#
+# Shell script to ease invocation of the powerpc simulator
+#
+# COPYRIGHT (c) 1989-2008.
+# On-Line Applications Research Corporation (OAR).
+#
+# The license and distribution terms for this file may be
+# found in found in the file LICENSE in this distribution or at
+# http://www.rtems.com/license/LICENSE.
+#
+# $Id$
+#
+
+TREE_FILE=psim_tree.${LOGNAME}
+RUN=@target_alias@-run
+
+
+progname=${0##*/} # fast basename hack for ksh, bash
+
+USAGE=\
+"usage: $progname [ -opts ] test [ test ... ]
+ -v -- verbose
+ -l limit -- specify time limit (default is 'no limit')
+"
+
+# log an error to stderr
+prerr()
+{
+ echo "$*" >&2
+}
+
+fatal() {
+ [ "$1" ] && prerr $*
+ prerr "$USAGE"
+ exit 1
+}
+
+warn() {
+ [ "$1" ] && prerr $*
+}