]> granicus.if.org Git - check/commitdiff
Add neglected files
authoramalec <amalec@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 30 Jul 2001 20:10:10 +0000 (20:10 +0000)
committeramalec <amalec@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 30 Jul 2001 20:10:10 +0000 (20:10 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@59 64e312b2-a51f-0410-8e61-82d0ca0eb02a

check/doc/Makefile.in [new file with mode: 0644]
check/tests/ex_log_output.c [new file with mode: 0644]

diff --git a/check/doc/Makefile.in b/check/doc/Makefile.in
new file mode 100644 (file)
index 0000000..f948b90
--- /dev/null
@@ -0,0 +1,248 @@
+# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
+
+# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+
+DESTDIR =
+
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+
+top_builddir = ..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+transform = @program_transform_name@
+
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+AWK = @AWK@
+CC = @CC@
+LN_S = @LN_S@
+MAKEINFO = @MAKEINFO@
+PACKAGE = @PACKAGE@
+RANLIB = @RANLIB@
+VERSION = @VERSION@
+have_lyx = @have_lyx@
+have_sgmltools = @have_sgmltools@
+
+DOCROOTDIR = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+# Fake out automake to make the money subdirectory...
+afakedir = $(DOCROOTDIR)/money
+docdir = $(DOCROOTDIR)
+
+SUFFIXES = .sgml
+
+lyx_docs = example.lyx
+sgml_docs = example.sgml
+html_docs =    example.html    example-1.html  example-2.html  example-3.html  example-4.html
+
+
+example_docs =         money   money/aclocal.m4        money/check_money.c     money/configure.in      money/INSTALL   money/money.c   money/README    money/AUTHORS   money/config.h.in       money/COPYING   money/Makefile.am       money/money.h   money/stamp-h.in        money/ChangeLog         money/configure         money/Makefile.in       money/NEWS
+
+
+EXTRA_DIST = $(lyx_docs) $(example_docs)
+
+afake_DATA = 
+@MAKE_DOC_TRUE@doc_DATA = $(lyx_docs) $(sgml_docs) $(html_docs) $(example_docs)
+@MAKE_DOC_FALSE@doc_DATA = $(lyx_docs) $(example_docs)
+
+CLEANFILES = $(sgml_docs) $(html_docs) *.*~
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = ../config.h
+CONFIG_CLEAN_FILES = 
+DATA =  $(afake_DATA) $(doc_DATA)
+
+DIST_COMMON =  Makefile.am Makefile.in
+
+
+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
+
+TAR = tar
+GZIP_ENV = --best
+all: all-redirect
+.SUFFIXES:
+.SUFFIXES: .sgml
+$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
+       cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile
+
+Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
+       cd $(top_builddir) \
+         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+
+install-afakeDATA: $(afake_DATA)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(DESTDIR)$(afakedir)
+       @list='$(afake_DATA)'; for p in $$list; do \
+         if test -f $(srcdir)/$$p; then \
+           echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(afakedir)/$$p"; \
+           $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(afakedir)/$$p; \
+         else if test -f $$p; then \
+           echo " $(INSTALL_DATA) $$p $(DESTDIR)$(afakedir)/$$p"; \
+           $(INSTALL_DATA) $$p $(DESTDIR)$(afakedir)/$$p; \
+         fi; fi; \
+       done
+
+uninstall-afakeDATA:
+       @$(NORMAL_UNINSTALL)
+       list='$(afake_DATA)'; for p in $$list; do \
+         rm -f $(DESTDIR)$(afakedir)/$$p; \
+       done
+
+install-docDATA: $(doc_DATA)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(DESTDIR)$(docdir)
+       @list='$(doc_DATA)'; for p in $$list; do \
+         if test -f $(srcdir)/$$p; then \
+           echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(docdir)/$$p"; \
+           $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(docdir)/$$p; \
+         else if test -f $$p; then \
+           echo " $(INSTALL_DATA) $$p $(DESTDIR)$(docdir)/$$p"; \
+           $(INSTALL_DATA) $$p $(DESTDIR)$(docdir)/$$p; \
+         fi; fi; \
+       done
+
+uninstall-docDATA:
+       @$(NORMAL_UNINSTALL)
+       list='$(doc_DATA)'; for p in $$list; do \
+         rm -f $(DESTDIR)$(docdir)/$$p; \
+       done
+tags: TAGS
+TAGS:
+
+
+distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = doc
+
+distdir: $(DISTFILES)
+       here=`cd $(top_builddir) && pwd`; \
+       top_distdir=`cd $(top_distdir) && pwd`; \
+       distdir=`cd $(distdir) && pwd`; \
+       cd $(top_srcdir) \
+         && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile
+       $(mkinstalldirs) $(distdir)/money
+       @for file in $(DISTFILES); do \
+         d=$(srcdir); \
+         if test -d $$d/$$file; then \
+           cp -pr $$d/$$file $(distdir)/$$file; \
+         else \
+           test -f $(distdir)/$$file \
+           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
+           || cp -p $$d/$$file $(distdir)/$$file || :; \
+         fi; \
+       done
+info-am:
+info: info-am
+dvi-am:
+dvi: dvi-am
+check-am: all-am
+check: check-am
+installcheck-am:
+installcheck: installcheck-am
+install-exec-am:
+install-exec: install-exec-am
+
+install-data-am: install-afakeDATA install-docDATA
+install-data: install-data-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+install: install-am
+uninstall-am: uninstall-afakeDATA uninstall-docDATA
+uninstall: uninstall-am
+all-am: Makefile $(DATA)
+all-redirect: all-am
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
+installdirs:
+       $(mkinstalldirs)  $(DESTDIR)$(afakedir) $(DESTDIR)$(docdir)
+
+
+mostlyclean-generic:
+
+clean-generic:
+       -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+       -rm -f Makefile $(CONFIG_CLEAN_FILES)
+       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
+
+maintainer-clean-generic:
+mostlyclean-am:  mostlyclean-generic
+
+mostlyclean: mostlyclean-am
+
+clean-am:  clean-generic mostlyclean-am
+
+clean: clean-am
+
+distclean-am:  distclean-generic clean-am
+
+distclean: distclean-am
+
+maintainer-clean-am:  maintainer-clean-generic distclean-am
+       @echo "This command is intended for maintainers to use;"
+       @echo "it deletes files that may require special tools to rebuild."
+
+maintainer-clean: maintainer-clean-am
+
+.PHONY: uninstall-afakeDATA install-afakeDATA uninstall-docDATA \
+install-docDATA tags distdir info-am info dvi-am dvi check check-am \
+installcheck-am installcheck install-exec-am install-exec \
+install-data-am install-data install-am install uninstall-am uninstall \
+all-redirect all-am all installdirs mostlyclean-generic \
+distclean-generic clean-generic maintainer-clean-generic clean \
+mostlyclean distclean maintainer-clean
+
+%.sgml: %.lyx
+       lyx -e linuxdoc $<
+
+%.html : %.sgml
+       sgml2html --split=1 $<
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/check/tests/ex_log_output.c b/check/tests/ex_log_output.c
new file mode 100644 (file)
index 0000000..ea5b57c
--- /dev/null
@@ -0,0 +1,91 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <check.h>
+
+START_TEST(test_pass)
+{
+  fail_unless (1==1, "Shouldn't see this");
+}
+END_TEST
+
+START_TEST(test_fail)
+{
+  fail("Failure");
+}
+END_TEST
+
+START_TEST(test_exit)
+{
+  exit(1);
+}
+END_TEST
+
+START_TEST(test_pass2)
+{
+  fail_unless (1==1, "Shouldn't see this");
+}
+END_TEST
+
+Suite *make_s1_suite (void)
+{
+  Suite *s;
+  TCase *tc;
+
+  s = suite_create("S1");
+  tc = tcase_create ("Core");
+  suite_add_tcase(s, tc);
+  tcase_add_test (tc, test_pass);
+  tcase_add_test (tc, test_fail);
+  tcase_add_test (tc, test_exit);
+
+  return s;
+}
+
+Suite *make_s2_suite (void)
+{
+  Suite *s;
+  TCase *tc;
+
+  s = suite_create("S2");
+  tc = tcase_create ("Core");
+  suite_add_tcase(s, tc);
+  tcase_add_test (tc, test_pass2);
+
+  return s;
+}
+
+void run_tests (int printmode)
+{
+  SRunner *sr;
+
+  sr = srunner_create(make_s1_suite());
+  srunner_add_suite(sr, make_s2_suite());
+  srunner_set_log(sr, "test_logfile");
+  srunner_run_all(sr, printmode);
+}
+
+int main (int argc, char **argv)
+{
+  
+  if (argc != 2) {
+    printf ("Usage: ex_output (CRSILENT | CRMINIMAL | CRNORMAL | CRVERBOSE)\n");
+    return EXIT_FAILURE;
+  }
+
+  if (strcmp (argv[1], "CRSILENT") == 0)
+    run_tests(CRSILENT);
+  else if (strcmp (argv[1], "CRMINIMAL") == 0)
+    run_tests(CRMINIMAL);
+  else if (strcmp (argv[1], "CRNORMAL") == 0)
+    run_tests(CRNORMAL);
+  else if (strcmp (argv[1], "CRVERBOSE") == 0)
+    run_tests(CRVERBOSE);
+  else {
+    printf ("Usage: ex_output (CRSILENT | CRMINIMAL | CRNORMAL | CRVERBOSE)\n");
+    return EXIT_FAILURE;
+  }    
+    
+
+  return EXIT_SUCCESS;
+}
+