1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ := ..$/..
29PRJNAME := registry
30TARGET := test_regcompare
31
32.INCLUDE: settings.mk
33.INCLUDE: target.mk
34
35ALLTAR: test
36
37test .PHONY: $(MISC)$/$(TARGET)$/psa.urd $(MISC)$/$(TARGET)$/psb.urd \
38        $(MISC)$/$(TARGET)$/usa.urd $(MISC)$/$(TARGET)$/usb.urd \
39        $(MISC)$/$(TARGET)$/pe.urd $(MISC)$/$(TARGET)$/ue.urd \
40        $(MISC)$/$(TARGET)$/other1.urd $(MISC)$/$(TARGET)$/other2.urd
41    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
42        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/psa.urd
43    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t \
44        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/psb.urd
45    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t \
46        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/usa.urd
47    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t \
48        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/usb.urd
49    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t \
50        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/pe.urd
51    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t \
52        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/ue.urd
53    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t \
54        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/other1.urd
55    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t \
56        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/other2.urd
57    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t -u \
58        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/psa.urd
59    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
60        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/psb.urd
61    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
62        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/usa.urd
63    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
64        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/usb.urd
65    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
66        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/pe.urd
67    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
68        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/ue.urd
69    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
70        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/other1.urd
71    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
72        -r1 $(MISC)$/$(TARGET)$/psa.urd -r2 $(MISC)$/$(TARGET)$/other2.urd
73    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
74        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/psa.urd
75    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
76        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/psb.urd
77    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
78        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/usa.urd
79    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
80        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/usb.urd
81    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
82        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/pe.urd
83    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
84        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/ue.urd
85    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
86        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/other1.urd
87    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t \
88        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/other2.urd
89    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t -u \
90        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/psa.urd
91    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
92        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/psb.urd
93    $(EXECTEST) -SUCCESS $(BIN)/regcompare$(EXECPOST) -f -t -u \
94        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/usa.urd
95    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
96        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/usb.urd
97    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
98        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/pe.urd
99    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
100        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/ue.urd
101    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
102        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/other1.urd
103    $(EXECTEST) -FAILURE $(BIN)/regcompare$(EXECPOST) -f -t -u \
104        -r1 $(MISC)$/$(TARGET)$/usa.urd -r2 $(MISC)$/$(TARGET)$/other2.urd
105
106$(MISC)$/$(TARGET)$/%.urd: %.idl
107    $(IDLC) -O$(MISC)$/$(TARGET) -cid -we $<
108