summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-22 07:34:28 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-22 07:34:28 +0000
commit47c64b6511ad19eec9385ce961add7aeabbae33f (patch)
treefb7505358287e85a4bbc1985785d79a02eca1fd8
parentbeb2f89f03d5d6006b6075f8b93698e9144ca5ff (diff)
downloadATCD-47c64b6511ad19eec9385ce961add7aeabbae33f.tar.gz
*** empty log message ***
-rw-r--r--apps/gperf/tests/Makefile4
-rw-r--r--apps/gperf/tests/idl.gperf9
2 files changed, 13 insertions, 0 deletions
diff --git a/apps/gperf/tests/Makefile b/apps/gperf/tests/Makefile
index 651401f0c7d..94ce0ef9fe3 100644
--- a/apps/gperf/tests/Makefile
+++ b/apps/gperf/tests/Makefile
@@ -57,6 +57,10 @@ all:
$(CXX) $(CCFLAGS) -o pout pinset.cpp test.o $(LDFLAGS) $(VLDLIBS)
./pout -v < $(srcdir)/pascal.gperf > pascal.out
-diff -b $(srcdir)/pascal.exp pascal.out
+ $(GPERF) -m -M -J -c -C -D -E -T -a -o -p -L C++ < $(srcdir)/idl.gperf > iinset.cpp
+ $(CXX) $(CCFLAGS) -o iout iinset.cpp test.o $(LDFLAGS) $(VLDLIBS)
+ ./iout -v < $(srcdir)/idl.gperf > idl.out
+ -diff -b $(srcdir)/idl.exp idl.out
# these next 5 are demos that show off the generated code
$(GPERF) -p -j1 -o -t -N is_reserved_word -k1,3,'$$' < $(srcdir)/c-parse.gperf | egrep -v 'ing time is ' > test-1.out
-diff -b $(srcdir)/test-1.exp test-1.out
diff --git a/apps/gperf/tests/idl.gperf b/apps/gperf/tests/idl.gperf
new file mode 100644
index 00000000000..cbce5603da8
--- /dev/null
+++ b/apps/gperf/tests/idl.gperf
@@ -0,0 +1,9 @@
+set
+_is_a
+destroy
+get
+_get_width
+_set_width
+_get_height
+_set_height
+_non_existent