ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Darwin/testlmem.sh
Revision: 1.2
Committed: 2004-01-12T15:54:42Z (20 years, 8 months ago) by cebix
Content type: application/x-sh
Branch: MAIN
Changes since 1.1: +1 -1 lines
Log Message:
Happy New Year!

File Contents

# User Rev Content
1 gbeauche 1.1 #!/bin/sh
2    
3     # testlmem.sh - test whether the Mach-O hack works
4     #
5 cebix 1.2 # Basilisk II (C) 1997-2004 Christian Bauer
6 gbeauche 1.1 #
7     # testlmem.sh Copyright (C) 2003 Michael Z. Sliczniak
8     #
9     # This program is free software; you can redistribute it and/or modify
10     # it under the terms of the GNU General Public License as published by
11     # the Free Software Foundation; either version 2 of the License, or
12     # (at your option) any later version.
13     #
14     # This program is distributed in the hope that it will be useful,
15     # but WITHOUT ANY WARRANTY; without even the implied warranty of
16     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17     # GNU General Public License for more details.
18     #
19     # You should have received a copy of the GNU General Public License
20     # along with this program; if not, write to the Free Software
21     # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22    
23     PAGEZERO_SIZE=0x2000
24     [[ -n "$1" ]] && PAGEZERO_SIZE=$1
25     # You want all the output to go to stderr so that configure is quiet but
26     # config.log is verbose.
27     { echo 'building lowmem utility' && \
28     make -f /dev/null Darwin/lowmem && \
29     echo 'building pagezero test' && \
30     make -f /dev/null LDFLAGS="-pagezero_size $PAGEZERO_SIZE" Darwin/pagezero && \
31     echo 'enabling low memory globals in pagezero' && \
32     Darwin/lowmem Darwin/pagezero && \
33     echo 'running pagezero test' && \
34     Darwin/pagezero; } 1>&2