Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / rst / tests / Makefile
CommitLineData
920dae64
AT
1# ========== Copyright Header Begin ==========================================
2#
3# OpenSPARC T2 Processor File: Makefile
4# Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
5# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
6#
7# The above named program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public
9# License version 2 as published by the Free Software Foundation.
10#
11# The above named program is distributed in the hope that it will be
12# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14# General Public License for more details.
15#
16# You should have received a copy of the GNU General Public
17# License along with this work; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19#
20# ========== Copyright Header End ============================================
21# Makefile for rst/tests
22include ../Makefile.master
23
24# make tests should be run only after install (or installdbg)
25
26
27CFLAGS = $(CFLAGS_BASE) $(CFLAGS32) $(CFLAGSOPT)
28
29# The first group of tests generates a simple rst file and runs it through trconv and rstzip
30test1: test1.rst
31 ../pkg/bin/trconv test1.rst | tail +2 > test1.out
32 @echo +++ test1.rst created
33 cmp test1.out test1.ref.out
34 @echo +++ test1.rst file matches reference
35 @-rm -rf test1.out
36 ../pkg/bin/rstzip -o test1.rz3.gz test1.rst
37 @echo +++ rstzip compressed test1.rst to test1.rz3.gz
38 ../pkg/bin/rstunzip test1.rz3.gz | ../pkg/bin/trconv | tail +2 > test1_a.out
39 @echo +++ rstunzip decompressed test1.rz3.gz
40 cmp test1_a.out test1.ref.out
41 @echo +++ decompressed file matches reference
42 @-rm -rf test1_a.out test1.rz3.gz
43 @echo +++ test1 complete
44
45gen_test1: gen_test1.o
46 $(CCC) $(CFLAGS) -o gen_test1 gen_test1.o
47
48test1.rst: gen_test1
49 ./gen_test1 > test1.rst
50
51.KEEP_STATE: