aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAiden Woodruff <aiden.woodruff@gmail.com>2018-08-14 14:47:54 -0500
committerAiden Woodruff <aiden.woodruff@gmail.com>2018-08-14 14:47:54 -0500
commit367fe4bbf4791add4f2238e3ca9dbfc82b8b22ce (patch)
tree21ee0e82f48f8d1ab2d0b26e000139b6ab0ab935 /test
parentb801521b8f662bca827bbbd08561e0a647a06fd2 (diff)
downloadlife-367fe4bbf4791add4f2238e3ca9dbfc82b8b22ce.tar.gz
life-367fe4bbf4791add4f2238e3ca9dbfc82b8b22ce.tar.bz2
life-367fe4bbf4791add4f2238e3ca9dbfc82b8b22ce.zip
Folder setup changed
Moved things into docs or src folders Created tests folder so make check is better Check control characters in life.c with CTRL macro (bitwise AND 037) Create small window for fancy rule entry Change some division by two to bitshifts Use configure to make man page (keep version up to date) Move warnings and pedantic to AM_CFLAGS Move include option to AM_CPPFLAGS Version 1.6.0
Diffstat (limited to 'test')
-rw-r--r--test/.deps/ncursesbasic.Po119
-rw-r--r--test/Makefile.am3
-rw-r--r--test/Makefile.in777
-rwxr-xr-xtest/blank.sh3
-rwxr-xr-xtest/sanity3
5 files changed, 905 insertions, 0 deletions
diff --git a/test/.deps/ncursesbasic.Po b/test/.deps/ncursesbasic.Po
new file mode 100644
index 0000000..d61a9c9
--- /dev/null
+++ b/test/.deps/ncursesbasic.Po
@@ -0,0 +1,119 @@
1ncursesbasic.o: ncursesbasic.c /usr/include/stdc-predef.h \
2 /usr/include/stdlib.h /usr/include/features.h \
3 /usr/include/x86_64-linux-gnu/sys/cdefs.h \
4 /usr/include/x86_64-linux-gnu/bits/wordsize.h \
5 /usr/include/x86_64-linux-gnu/gnu/stubs.h \
6 /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
7 /usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h \
8 /usr/include/x86_64-linux-gnu/bits/waitflags.h \
9 /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
10 /usr/include/x86_64-linux-gnu/sys/types.h \
11 /usr/include/x86_64-linux-gnu/bits/types.h \
12 /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/time.h \
13 /usr/include/endian.h /usr/include/x86_64-linux-gnu/bits/endian.h \
14 /usr/include/x86_64-linux-gnu/bits/byteswap.h \
15 /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \
16 /usr/include/x86_64-linux-gnu/sys/select.h \
17 /usr/include/x86_64-linux-gnu/bits/select.h \
18 /usr/include/x86_64-linux-gnu/bits/sigset.h \
19 /usr/include/x86_64-linux-gnu/bits/time.h \
20 /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
21 /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
22 /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
23 /usr/include/x86_64-linux-gnu/bits/stdlib-float.h /usr/include/curses.h \
24 /usr/include/ncurses_dll.h \
25 /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h /usr/include/stdint.h \
26 /usr/include/x86_64-linux-gnu/bits/wchar.h /usr/include/stdio.h \
27 /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
28 /usr/lib/gcc/x86_64-linux-gnu/6/include/stdarg.h \
29 /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
30 /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \
31 /usr/include/x86_64-linux-gnu/bits/stdio.h \
32 /usr/lib/gcc/x86_64-linux-gnu/6/include/stdbool.h /usr/include/unctrl.h \
33 /usr/include/curses.h
34
35/usr/include/stdc-predef.h:
36
37/usr/include/stdlib.h:
38
39/usr/include/features.h:
40
41/usr/include/x86_64-linux-gnu/sys/cdefs.h:
42
43/usr/include/x86_64-linux-gnu/bits/wordsize.h:
44
45/usr/include/x86_64-linux-gnu/gnu/stubs.h:
46
47/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
48
49/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:
50
51/usr/include/x86_64-linux-gnu/bits/waitflags.h:
52
53/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
54
55/usr/include/x86_64-linux-gnu/sys/types.h:
56
57/usr/include/x86_64-linux-gnu/bits/types.h:
58
59/usr/include/x86_64-linux-gnu/bits/typesizes.h:
60
61/usr/include/time.h:
62
63/usr/include/endian.h:
64
65/usr/include/x86_64-linux-gnu/bits/endian.h:
66
67/usr/include/x86_64-linux-gnu/bits/byteswap.h:
68
69/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
70
71/usr/include/x86_64-linux-gnu/sys/select.h:
72
73/usr/include/x86_64-linux-gnu/bits/select.h:
74
75/usr/include/x86_64-linux-gnu/bits/sigset.h:
76
77/usr/include/x86_64-linux-gnu/bits/time.h:
78
79/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
80
81/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
82
83/usr/include/alloca.h:
84
85/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
86
87/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
88
89/usr/include/curses.h:
90
91/usr/include/ncurses_dll.h:
92
93/usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:
94
95/usr/include/stdint.h:
96
97/usr/include/x86_64-linux-gnu/bits/wchar.h:
98
99/usr/include/stdio.h:
100
101/usr/include/libio.h:
102
103/usr/include/_G_config.h:
104
105/usr/include/wchar.h:
106
107/usr/lib/gcc/x86_64-linux-gnu/6/include/stdarg.h:
108
109/usr/include/x86_64-linux-gnu/bits/stdio_lim.h:
110
111/usr/include/x86_64-linux-gnu/bits/sys_errlist.h:
112
113/usr/include/x86_64-linux-gnu/bits/stdio.h:
114
115/usr/lib/gcc/x86_64-linux-gnu/6/include/stdbool.h:
116
117/usr/include/unctrl.h:
118
119/usr/include/curses.h:
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644
index 0000000..e76b55c
--- /dev/null
+++ b/test/Makefile.am
@@ -0,0 +1,3 @@
1sh_TESTS = sanity blank.sh
2TESTS = $(sh_TESTS)
3EXTRA_DIST = $(sh_TESTS)
diff --git a/test/Makefile.in b/test/Makefile.in
new file mode 100644
index 0000000..3036b0f
--- /dev/null
+++ b/test/Makefile.in
@@ -0,0 +1,777 @@
1# Makefile.in generated by automake 1.15 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2014 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16VPATH = @srcdir@
17am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27}
28am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72pkgdatadir = $(datadir)/@PACKAGE@
73pkgincludedir = $(includedir)/@PACKAGE@
74pkglibdir = $(libdir)/@PACKAGE@
75pkglibexecdir = $(libexecdir)/@PACKAGE@
76am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77install_sh_DATA = $(install_sh) -c -m 644
78install_sh_PROGRAM = $(install_sh) -c
79install_sh_SCRIPT = $(install_sh) -c
80INSTALL_HEADER = $(INSTALL_DATA)
81transform = $(program_transform_name)
82NORMAL_INSTALL = :
83PRE_INSTALL = :
84POST_INSTALL = :
85NORMAL_UNINSTALL = :
86PRE_UNINSTALL = :
87POST_UNINSTALL = :
88subdir = test
89ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
90am__aclocal_m4_deps = $(top_srcdir)/configure.ac
91am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
92 $(ACLOCAL_M4)
93DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
94mkinstalldirs = $(install_sh) -d
95CONFIG_HEADER = $(top_builddir)/config.h
96CONFIG_CLEAN_FILES =
97CONFIG_CLEAN_VPATH_FILES =
98AM_V_P = $(am__v_P_@AM_V@)
99am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
100am__v_P_0 = false
101am__v_P_1 = :
102AM_V_GEN = $(am__v_GEN_@AM_V@)
103am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
104am__v_GEN_0 = @echo " GEN " $@;
105am__v_GEN_1 =
106AM_V_at = $(am__v_at_@AM_V@)
107am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
108am__v_at_0 = @
109am__v_at_1 =
110SOURCES =
111DIST_SOURCES =
112am__can_run_installinfo = \
113 case $$AM_UPDATE_INFO_DIR in \
114 n|no|NO) false;; \
115 *) (install-info --version) >/dev/null 2>&1;; \
116 esac
117am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
118am__tty_colors_dummy = \
119 mgn= red= grn= lgn= blu= brg= std=; \
120 am__color_tests=no
121am__tty_colors = { \
122 $(am__tty_colors_dummy); \
123 if test "X$(AM_COLOR_TESTS)" = Xno; then \
124 am__color_tests=no; \
125 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
126 am__color_tests=yes; \
127 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
128 am__color_tests=yes; \
129 fi; \
130 if test $$am__color_tests = yes; then \
131 red=''; \
132 grn=''; \
133 lgn=''; \
134 blu=''; \
135 mgn=''; \
136 brg=''; \
137 std=''; \
138 fi; \
139}
140am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
141am__vpath_adj = case $$p in \
142 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
143 *) f=$$p;; \
144 esac;
145am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
146am__install_max = 40
147am__nobase_strip_setup = \
148 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
149am__nobase_strip = \
150 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
151am__nobase_list = $(am__nobase_strip_setup); \
152 for p in $$list; do echo "$$p $$p"; done | \
153 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
154 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
155 if (++n[$$2] == $(am__install_max)) \
156 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
157 END { for (dir in files) print dir, files[dir] }'
158am__base_list = \
159 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
160 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
161am__uninstall_files_from_dir = { \
162 test -z "$$files" \
163 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
164 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
165 $(am__cd) "$$dir" && rm -f $$files; }; \
166 }
167am__recheck_rx = ^[ ]*:recheck:[ ]*
168am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
169am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
170# A command that, given a newline-separated list of test names on the
171# standard input, print the name of the tests that are to be re-run
172# upon "make recheck".
173am__list_recheck_tests = $(AWK) '{ \
174 recheck = 1; \
175 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
176 { \
177 if (rc < 0) \
178 { \
179 if ((getline line2 < ($$0 ".log")) < 0) \
180 recheck = 0; \
181 break; \
182 } \
183 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
184 { \
185 recheck = 0; \
186 break; \
187 } \
188 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
189 { \
190 break; \
191 } \
192 }; \
193 if (recheck) \
194 print $$0; \
195 close ($$0 ".trs"); \
196 close ($$0 ".log"); \
197}'
198# A command that, given a newline-separated list of test names on the
199# standard input, create the global log from their .trs and .log files.
200am__create_global_log = $(AWK) ' \
201function fatal(msg) \
202{ \
203 print "fatal: making $@: " msg | "cat >&2"; \
204 exit 1; \
205} \
206function rst_section(header) \
207{ \
208 print header; \
209 len = length(header); \
210 for (i = 1; i <= len; i = i + 1) \
211 printf "="; \
212 printf "\n\n"; \
213} \
214{ \
215 copy_in_global_log = 1; \
216 global_test_result = "RUN"; \
217 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
218 { \
219 if (rc < 0) \
220 fatal("failed to read from " $$0 ".trs"); \
221 if (line ~ /$(am__global_test_result_rx)/) \
222 { \
223 sub("$(am__global_test_result_rx)", "", line); \
224 sub("[ ]*$$", "", line); \
225 global_test_result = line; \
226 } \
227 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
228 copy_in_global_log = 0; \
229 }; \
230 if (copy_in_global_log) \
231 { \
232 rst_section(global_test_result ": " $$0); \
233 while ((rc = (getline line < ($$0 ".log"))) != 0) \
234 { \
235 if (rc < 0) \
236 fatal("failed to read from " $$0 ".log"); \
237 print line; \
238 }; \
239 printf "\n"; \
240 }; \
241 close ($$0 ".trs"); \
242 close ($$0 ".log"); \
243}'
244# Restructured Text title.
245am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
246# Solaris 10 'make', and several other traditional 'make' implementations,
247# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
248# by disabling -e (using the XSI extension "set +e") if it's set.
249am__sh_e_setup = case $$- in *e*) set +e;; esac
250# Default flags passed to test drivers.
251am__common_driver_flags = \
252 --color-tests "$$am__color_tests" \
253 --enable-hard-errors "$$am__enable_hard_errors" \
254 --expect-failure "$$am__expect_failure"
255# To be inserted before the command running the test. Creates the
256# directory for the log if needed. Stores in $dir the directory
257# containing $f, in $tst the test, in $log the log. Executes the
258# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
259# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
260# will run the test scripts (or their associated LOG_COMPILER, if
261# thy have one).
262am__check_pre = \
263$(am__sh_e_setup); \
264$(am__vpath_adj_setup) $(am__vpath_adj) \
265$(am__tty_colors); \
266srcdir=$(srcdir); export srcdir; \
267case "$@" in \
268 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
269 *) am__odir=.;; \
270esac; \
271test "x$$am__odir" = x"." || test -d "$$am__odir" \
272 || $(MKDIR_P) "$$am__odir" || exit $$?; \
273if test -f "./$$f"; then dir=./; \
274elif test -f "$$f"; then dir=; \
275else dir="$(srcdir)/"; fi; \
276tst=$$dir$$f; log='$@'; \
277if test -n '$(DISABLE_HARD_ERRORS)'; then \
278 am__enable_hard_errors=no; \
279else \
280 am__enable_hard_errors=yes; \
281fi; \
282case " $(XFAIL_TESTS) " in \
283 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
284 am__expect_failure=yes;; \
285 *) \
286 am__expect_failure=no;; \
287esac; \
288$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
289# A shell command to get the names of the tests scripts with any registered
290# extension removed (i.e., equivalently, the names of the test logs, with
291# the '.log' extension removed). The result is saved in the shell variable
292# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
293# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
294# since that might cause problem with VPATH rewrites for suffix-less tests.
295# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
296am__set_TESTS_bases = \
297 bases='$(TEST_LOGS)'; \
298 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
299 bases=`echo $$bases`
300RECHECK_LOGS = $(TEST_LOGS)
301AM_RECURSIVE_TARGETS = check recheck
302TEST_SUITE_LOG = test-suite.log
303TEST_EXTENSIONS = @EXEEXT@ .test
304LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
305LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
306am__set_b = \
307 case '$@' in \
308 */*) \
309 case '$*' in \
310 */*) b='$*';; \
311 *) b=`echo '$@' | sed 's/\.log$$//'`; \
312 esac;; \
313 *) \
314 b='$*';; \
315 esac
316am__test_logs1 = $(TESTS:=.log)
317am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
318TEST_LOGS = $(am__test_logs2:.test.log=.log)
319TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
320TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
321 $(TEST_LOG_FLAGS)
322am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
323DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
324ACLOCAL = @ACLOCAL@
325AMTAR = @AMTAR@
326AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
327AUTOCONF = @AUTOCONF@
328AUTOHEADER = @AUTOHEADER@
329AUTOMAKE = @AUTOMAKE@
330AWK = @AWK@
331CC = @CC@
332CCDEPMODE = @CCDEPMODE@
333CFLAGS = @CFLAGS@
334CPP = @CPP@
335CPPFLAGS = @CPPFLAGS@
336CYGPATH_W = @CYGPATH_W@
337DEFS = @DEFS@
338DEPDIR = @DEPDIR@
339ECHO_C = @ECHO_C@
340ECHO_N = @ECHO_N@
341ECHO_T = @ECHO_T@
342EGREP = @EGREP@
343EXEEXT = @EXEEXT@
344GREP = @GREP@
345INSTALL = @INSTALL@
346INSTALL_DATA = @INSTALL_DATA@
347INSTALL_PROGRAM = @INSTALL_PROGRAM@
348INSTALL_SCRIPT = @INSTALL_SCRIPT@
349INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
350LDFLAGS = @LDFLAGS@
351LIBOBJS = @LIBOBJS@
352LIBS = @LIBS@
353LTLIBOBJS = @LTLIBOBJS@
354MAKEINFO = @MAKEINFO@
355MKDIR_P = @MKDIR_P@
356OBJEXT = @OBJEXT@
357PACKAGE = @PACKAGE@
358PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
359PACKAGE_NAME = @PACKAGE_NAME@
360PACKAGE_STRING = @PACKAGE_STRING@
361PACKAGE_TARNAME = @PACKAGE_TARNAME@
362PACKAGE_URL = @PACKAGE_URL@
363PACKAGE_VERSION = @PACKAGE_VERSION@
364PATH_SEPARATOR = @PATH_SEPARATOR@
365SET_MAKE = @SET_MAKE@
366SHELL = @SHELL@
367STRIP = @STRIP@
368VERSION = @VERSION@
369abs_builddir = @abs_builddir@
370abs_srcdir = @abs_srcdir@
371abs_top_builddir = @abs_top_builddir@
372abs_top_srcdir = @abs_top_srcdir@
373ac_ct_CC = @ac_ct_CC@
374am__include = @am__include@
375am__leading_dot = @am__leading_dot@
376am__quote = @am__quote@
377am__tar = @am__tar@
378am__untar = @am__untar@
379bindir = @bindir@
380build_alias = @build_alias@
381builddir = @builddir@
382datadir = @datadir@
383datarootdir = @datarootdir@
384docdir = @docdir@
385dvidir = @dvidir@
386exec_prefix = @exec_prefix@
387host_alias = @host_alias@
388htmldir = @htmldir@
389includedir = @includedir@
390infodir = @infodir@
391install_sh = @install_sh@
392libdir = @libdir@
393libexecdir = @libexecdir@
394localedir = @localedir@
395localstatedir = @localstatedir@
396mandir = @mandir@
397mkdir_p = @mkdir_p@
398oldincludedir = @oldincludedir@
399pdfdir = @pdfdir@
400prefix = @prefix@
401program_transform_name = @program_transform_name@
402psdir = @psdir@
403runstatedir = @runstatedir@
404sbindir = @sbindir@
405sharedstatedir = @sharedstatedir@
406srcdir = @srcdir@
407sysconfdir = @sysconfdir@
408target_alias = @target_alias@
409top_build_prefix = @top_build_prefix@
410top_builddir = @top_builddir@
411top_srcdir = @top_srcdir@
412sh_TESTS = sanity blank.sh
413TESTS = $(sh_TESTS)
414EXTRA_DIST = $(sh_TESTS)
415all: all-am
416
417.SUFFIXES:
418.SUFFIXES: .log .test .test$(EXEEXT) .trs
419$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
420 @for dep in $?; do \
421 case '$(am__configure_deps)' in \
422 *$$dep*) \
423 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
424 && { if test -f $@; then exit 0; else break; fi; }; \
425 exit 1;; \
426 esac; \
427 done; \
428 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
429 $(am__cd) $(top_srcdir) && \
430 $(AUTOMAKE) --gnu test/Makefile
431Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
432 @case '$?' in \
433 *config.status*) \
434 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
435 *) \
436 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
437 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
438 esac;
439
440$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
441 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
442
443$(top_srcdir)/configure: $(am__configure_deps)
444 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
445$(ACLOCAL_M4): $(am__aclocal_m4_deps)
446 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
447$(am__aclocal_m4_deps):
448tags TAGS:
449
450ctags CTAGS:
451
452cscope cscopelist:
453
454
455# Recover from deleted '.trs' file; this should ensure that
456# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
457# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
458# to avoid problems with "make -n".
459.log.trs:
460 rm -f $< $@
461 $(MAKE) $(AM_MAKEFLAGS) $<
462
463# Leading 'am--fnord' is there to ensure the list of targets does not
464# expand to empty, as could happen e.g. with make check TESTS=''.
465am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
466am--force-recheck:
467 @:
468
469$(TEST_SUITE_LOG): $(TEST_LOGS)
470 @$(am__set_TESTS_bases); \
471 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
472 redo_bases=`for i in $$bases; do \
473 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
474 done`; \
475 if test -n "$$redo_bases"; then \
476 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
477 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
478 if $(am__make_dryrun); then :; else \
479 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
480 fi; \
481 fi; \
482 if test -n "$$am__remaking_logs"; then \
483 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
484 "recursion detected" >&2; \
485 elif test -n "$$redo_logs"; then \
486 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
487 fi; \
488 if $(am__make_dryrun); then :; else \
489 st=0; \
490 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
491 for i in $$redo_bases; do \
492 test -f $$i.trs && test -r $$i.trs \
493 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
494 test -f $$i.log && test -r $$i.log \
495 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
496 done; \
497 test $$st -eq 0 || exit 1; \
498 fi
499 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
500 ws='[ ]'; \
501 results=`for b in $$bases; do echo $$b.trs; done`; \
502 test -n "$$results" || results=/dev/null; \
503 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
504 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
505 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
506 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
507 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
508 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
509 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
510 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
511 success=true; \
512 else \
513 success=false; \
514 fi; \
515 br='==================='; br=$$br$$br$$br$$br; \
516 result_count () \
517 { \
518 if test x"$$1" = x"--maybe-color"; then \
519 maybe_colorize=yes; \
520 elif test x"$$1" = x"--no-color"; then \
521 maybe_colorize=no; \
522 else \
523 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
524 fi; \
525 shift; \
526 desc=$$1 count=$$2; \
527 if test $$maybe_colorize = yes && test $$count -gt 0; then \
528 color_start=$$3 color_end=$$std; \
529 else \
530 color_start= color_end=; \
531 fi; \
532 echo "$${color_start}# $$desc $$count$${color_end}"; \
533 }; \
534 create_testsuite_report () \
535 { \
536 result_count $$1 "TOTAL:" $$all "$$brg"; \
537 result_count $$1 "PASS: " $$pass "$$grn"; \
538 result_count $$1 "SKIP: " $$skip "$$blu"; \
539 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
540 result_count $$1 "FAIL: " $$fail "$$red"; \
541 result_count $$1 "XPASS:" $$xpass "$$red"; \
542 result_count $$1 "ERROR:" $$error "$$mgn"; \
543 }; \
544 { \
545 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
546 $(am__rst_title); \
547 create_testsuite_report --no-color; \
548 echo; \
549 echo ".. contents:: :depth: 2"; \
550 echo; \
551 for b in $$bases; do echo $$b; done \
552 | $(am__create_global_log); \
553 } >$(TEST_SUITE_LOG).tmp || exit 1; \
554 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
555 if $$success; then \
556 col="$$grn"; \
557 else \
558 col="$$red"; \
559 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
560 fi; \
561 echo "$${col}$$br$${std}"; \
562 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
563 echo "$${col}$$br$${std}"; \
564 create_testsuite_report --maybe-color; \
565 echo "$$col$$br$$std"; \
566 if $$success; then :; else \
567 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
568 if test -n "$(PACKAGE_BUGREPORT)"; then \
569 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
570 fi; \
571 echo "$$col$$br$$std"; \
572 fi; \
573 $$success || exit 1
574
575check-TESTS:
576 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
577 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
578 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
579 @set +e; $(am__set_TESTS_bases); \
580 log_list=`for i in $$bases; do echo $$i.log; done`; \
581 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
582 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
583 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
584 exit $$?;
585recheck: all
586 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
587 @set +e; $(am__set_TESTS_bases); \
588 bases=`for i in $$bases; do echo $$i; done \
589 | $(am__list_recheck_tests)` || exit 1; \
590 log_list=`for i in $$bases; do echo $$i.log; done`; \
591 log_list=`echo $$log_list`; \
592 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
593 am__force_recheck=am--force-recheck \
594 TEST_LOGS="$$log_list"; \
595 exit $$?
596sanity.log: sanity
597 @p='sanity'; \
598 b='sanity'; \
599 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
600 --log-file $$b.log --trs-file $$b.trs \
601 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
602 "$$tst" $(AM_TESTS_FD_REDIRECT)
603blank.sh.log: blank.sh
604 @p='blank.sh'; \
605 b='blank.sh'; \
606 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
607 --log-file $$b.log --trs-file $$b.trs \
608 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
609 "$$tst" $(AM_TESTS_FD_REDIRECT)
610.test.log:
611 @p='$<'; \
612 $(am__set_b); \
613 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
614 --log-file $$b.log --trs-file $$b.trs \
615 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
616 "$$tst" $(AM_TESTS_FD_REDIRECT)
617@am__EXEEXT_TRUE@.test$(EXEEXT).log:
618@am__EXEEXT_TRUE@ @p='$<'; \
619@am__EXEEXT_TRUE@ $(am__set_b); \
620@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
621@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
622@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
623@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
624
625distdir: $(DISTFILES)
626 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
627 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
628 list='$(DISTFILES)'; \
629 dist_files=`for file in $$list; do echo $$file; done | \
630 sed -e "s|^$$srcdirstrip/||;t" \
631 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
632 case $$dist_files in \
633 */*) $(MKDIR_P) `echo "$$dist_files" | \
634 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
635 sort -u` ;; \
636 esac; \
637 for file in $$dist_files; do \
638 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
639 if test -d $$d/$$file; then \
640 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
641 if test -d "$(distdir)/$$file"; then \
642 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
643 fi; \
644 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
645 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
646 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
647 fi; \
648 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
649 else \
650 test -f "$(distdir)/$$file" \
651 || cp -p $$d/$$file "$(distdir)/$$file" \
652 || exit 1; \
653 fi; \
654 done
655check-am: all-am
656 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
657check: check-am
658all-am: Makefile
659installdirs:
660install: install-am
661install-exec: install-exec-am
662install-data: install-data-am
663uninstall: uninstall-am
664
665install-am: all-am
666 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
667
668installcheck: installcheck-am
669install-strip:
670 if test -z '$(STRIP)'; then \
671 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
672 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
673 install; \
674 else \
675 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
676 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
677 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
678 fi
679mostlyclean-generic:
680 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
681 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
682 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
683
684clean-generic:
685
686distclean-generic:
687 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
688 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
689
690maintainer-clean-generic:
691 @echo "This command is intended for maintainers to use"
692 @echo "it deletes files that may require special tools to rebuild."
693clean: clean-am
694
695clean-am: clean-generic mostlyclean-am
696
697distclean: distclean-am
698 -rm -f Makefile
699distclean-am: clean-am distclean-generic
700
701dvi: dvi-am
702
703dvi-am:
704
705html: html-am
706
707html-am:
708
709info: info-am
710
711info-am:
712
713install-data-am:
714
715install-dvi: install-dvi-am
716
717install-dvi-am:
718
719install-exec-am:
720
721install-html: install-html-am
722
723install-html-am:
724
725install-info: install-info-am
726
727install-info-am:
728
729install-man:
730
731install-pdf: install-pdf-am
732
733install-pdf-am:
734
735install-ps: install-ps-am
736
737install-ps-am:
738
739installcheck-am:
740
741maintainer-clean: maintainer-clean-am
742 -rm -f Makefile
743maintainer-clean-am: distclean-am maintainer-clean-generic
744
745mostlyclean: mostlyclean-am
746
747mostlyclean-am: mostlyclean-generic
748
749pdf: pdf-am
750
751pdf-am:
752
753ps: ps-am
754
755ps-am:
756
757uninstall-am:
758
759.MAKE: check-am install-am install-strip
760
761.PHONY: all all-am check check-TESTS check-am clean clean-generic \
762 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
763 dvi-am html html-am info info-am install install-am \
764 install-data install-data-am install-dvi install-dvi-am \
765 install-exec install-exec-am install-html install-html-am \
766 install-info install-info-am install-man install-pdf \
767 install-pdf-am install-ps install-ps-am install-strip \
768 installcheck installcheck-am installdirs maintainer-clean \
769 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
770 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
771
772.PRECIOUS: Makefile
773
774
775# Tell versions [3.59,3.63) of GNU make to not export all variables.
776# Otherwise a system limit (for SysV at least) may be exceeded.
777.NOEXPORT:
diff --git a/test/blank.sh b/test/blank.sh
new file mode 100755
index 0000000..e375e97
--- /dev/null
+++ b/test/blank.sh
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3echo -n 'q' | ../src/life 2>&1 > /dev/null
diff --git a/test/sanity b/test/sanity
new file mode 100755
index 0000000..e2a8af0
--- /dev/null
+++ b/test/sanity
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3exec ../src/life -V > /dev/null 2>&1