summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2003-09-30 19:08:54 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2003-09-30 19:08:54 +0000
commit1cafbe3ea7329b0e73fbfc0f1e37b4fc6d74a9e1 (patch)
tree99c019723ab50629f0f596dbf1cc385d85da2fac /apps
parent8c786edaf78fcbd9fe2dd9ea6481848966935192 (diff)
downloadATCD-1cafbe3ea7329b0e73fbfc0f1e37b4fc6d74a9e1.tar.gz
ChangeLogTag: Tue Sep 30 14:06:53 2003 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/gperf/tests/gperf_test.mpb13
-rw-r--r--apps/gperf/tests/tests.mpc220
2 files changed, 233 insertions, 0 deletions
diff --git a/apps/gperf/tests/gperf_test.mpb b/apps/gperf/tests/gperf_test.mpb
new file mode 100644
index 00000000000..0b6e4b0298d
--- /dev/null
+++ b/apps/gperf/tests/gperf_test.mpb
@@ -0,0 +1,13 @@
+project: aceexe {
+ Define_Custom(GPERF) {
+ command = $(ACE_ROOT)/bin/gperf
+ libpath += $(ACE_ROOT)/lib
+ output_option = >
+ inputext = .gperf
+ source_outputext = .cpp
+ }
+
+ Source_Files {
+ test.cpp
+ }
+}
diff --git a/apps/gperf/tests/tests.mpc b/apps/gperf/tests/tests.mpc
new file mode 100644
index 00000000000..c73806ad78c
--- /dev/null
+++ b/apps/gperf/tests/tests.mpc
@@ -0,0 +1,220 @@
+project(cinset): gperf_test {
+ exename = cout
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing cout"
+ " ./cout -v < c.gperf > cout.out
+ " -diff -b c.exp cout.out"
+ }
+
+ GPERF_Files {
+ commandflags += -a -p -c -l -S1 -o
+ c.gperf
+ }
+
+ Source_Files {
+ c.cpp
+ }
+}
+
+project(adainset): gperf_test {
+ exename = aout
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing aout"
+ " ./aout -v < ada.gperf > aout.out
+ " -diff -b ada-res.exp aout.out"
+ }
+
+ GPERF_Files {
+ commandflags += -a -k1,4,$$
+ ada.gperf
+ }
+
+ Source_Files {
+ ada.cpp
+ }
+}
+
+project(c++inset): gperf_test {
+ exename = c++out
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing c++out"
+ " ./c++out -v < c++.gperf > c++out.out
+ " -diff -b c++-res.exp c++out.out"
+ }
+
+ GPERF_Files {
+ commandflags += -a -D
+ c++.gperf
+ }
+
+ Source_Files {
+ c++.cpp
+ }
+}
+
+project(preinset): gperf_test {
+ exename = preout
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing preout"
+ " ./preout -v < adadefs.gperf > preout.out
+ " -diff -b ada-pred.exp preout.out"
+ }
+
+ GPERF_Files {
+ commandflags += -a -p -D -k1,$$ -s 2 -o
+ adadefs.gperf
+ }
+
+ Source_Files {
+ adadefs.cpp
+ }
+}
+
+project(m3inset): gperf_test {
+ exename = m3out
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing m3out"
+ " ./m3out -v < modula3.gperf > m3out.out
+ " -diff -b modula.exp m3out.out"
+ }
+
+ GPERF_Files {
+ commandflags += -a -k1,2,$$
+ modula3.gperf
+ }
+
+ Source_Files {
+ modula3.cpp
+ }
+}
+
+project(pinset): gperf_test {
+ exename = pout
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing pout"
+ " ./pout -v < pascal.gperf > pout.out
+ " -diff -b pascal.exp pout.out"
+ }
+
+ GPERF_Files {
+ commandflags += -a -o -S2 -p
+ pascal.gperf
+ }
+
+ Source_Files {
+ pascal.cpp
+ }
+}
+
+project(iinset): gperf_test {
+ exename = iout
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing iout"
+ " ./iout -v < idl.gperf > iout.out
+ " -diff -b idl.exp iout.out"
+ }
+
+ GPERF_Files {
+ commandflags += -m -M -c -C -D -S1 -E -T -a -o -p
+ idl.gperf
+ }
+
+ Source_Files {
+ idl.cpp
+ }
+}
+
+project(iinset2): gperf_test {
+ exename = iout2
+ after += iinset
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing iout2"
+ " ./iout2 -v < idl.gperf > iout2.out
+ " -diff -b idl.exp iout2.out"
+ }
+
+ GPERF_Files {
+ commandflags += -m -M -c -C -D -E -T -a -o -p
+ idl.gperf
+ }
+
+ Source_Files {
+ idl.cpp
+ }
+}
+
+project(tinset): gperf_test {
+ exename = tout
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing tout"
+ " ./tout -v < corba.gperf > tout.out
+ " -diff -b corba.exp tout.out"
+ }
+
+ GPERF_Files {
+ commandflags += -a -o
+ corba.gperf
+ }
+
+ Source_Files {
+ corba.cpp
+ }
+}
+
+project(taoinset): gperf_test {
+ exename = taoout
+
+ verbatim(gnuace, bottom) {
+ all: runtests
+
+ runtests:
+ " @echo "Testing taoout"
+ " ./taoout -v < tao.gperf > taoout.out
+ " -diff -b tao.exp taoout.out"
+ }
+
+ GPERF_Files {
+ commandflags += -c -C -D -E -f 0 -a -o
+ tao.gperf
+ }
+
+ Source_Files {
+ tao.cpp
+ }
+}