source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-top.in @ 001b4162

4.104.114.9
Last change on this file since 001b4162 was 001b4162, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 3, 2008 at 6:37:51 PM

2008-09-03 Joel Sherrill <joel.sherrill@…>

  • 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.
  • Property mode set to 100755
File size: 755 bytes
Line 
1#! @KSH@ -p
2#
3#  Shell script to ease invocation of the powerpc simulator
4#
5#  COPYRIGHT (c) 1989-2008.
6#  On-Line Applications Research Corporation (OAR).
7#
8#  The license and distribution terms for this file may be
9#  found in found in the file LICENSE in this distribution or at
10#  http://www.rtems.com/license/LICENSE.
11#
12#  $Id$
13#
14
15TREE_FILE=psim_tree.${LOGNAME}
16RUN=@target_alias@-run
17
18
19progname=${0##*/}        # fast basename hack for ksh, bash
20
21USAGE=\
22"usage: $progname [ -opts ] test [ test ... ]
23        -v         -- verbose
24        -l limit   -- specify time limit (default is 'no limit')
25"
26
27#   log an error to stderr
28prerr()
29{
30    echo "$*" >&2
31}
32
33fatal() {
34    [ "$1" ] && prerr $*
35    prerr "$USAGE"
36    exit 1
37}
38
39warn() {
40    [ "$1" ] && prerr $*
41}
Note: See TracBrowser for help on using the repository browser.