source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom @ 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: 478 bytes
Line 
1#
2# process the options
3#
4# defaults for getopt vars
5#
6
7verbose=""
8limit="0"
9
10## TODO: may want command line ability to turn on some psim tracing
11while getopts vl: OPT
12do
13    case "$OPT" in
14        v)
15            verbose="yes";;
16        l)
17            limit="$OPTARG";;
18        *)
19            fatal;;
20    esac
21done
22shiftcount=`expr $OPTIND - 1`
23shift $shiftcount
24
25args=$*
26
27if [ $# -eq 0 ] ; then
28  fatal
29fi
30
31gen_device_tree ${1} >${TREE_FILE}
32runone ${1} ${limit}
33rm -f ${TREE_FILE}
34exit $?
35
Note: See TracBrowser for help on using the repository browser.