test/: Add a simple rational-number class.
[sod] / test / Makefile.am
index 5c4d59d..de5b634 100644 (file)
@@ -58,4 +58,13 @@ check-local:: kwtest kwtest.ref
        ./kwtest >kwtest.out
        diff -u $(srcdir)/kwtest.ref kwtest.out
 
+check_PROGRAMS         += rat
+
+EXTRA_DIST             += rat.sod rat.ref
+nodist_rat_SOURCES      = rat.c rat.h
+BUILT_SOURCES          += $(nodist_rat_SOURCES)
+check-local:: rat rat.ref
+       ./rat >rat.out
+       diff -u $(srcdir)/rat.ref rat.out
+
 ###----- That's all, folks --------------------------------------------------