diff options
author | Will Estes <westes575@gmail.com> | 2014-06-14 11:25:43 -0400 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2014-11-12 05:14:27 -0500 |
commit | 5c48969b76b2141997af228b8cbbbb73bc3e4e57 (patch) | |
tree | e1c964c4e92847b8c77eb42ef599751a1ff92680 /tests | |
parent | 62d4a4a3632a55505a53c33f0c2b5153899f6f5c (diff) |
refactor string_r test for new test suite layout
Diffstat (limited to 'tests')
-rw-r--r-- | tests/.gitignore | 2 | ||||
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/string_r.l (renamed from tests/test-string-r/scanner.l) | 2 | ||||
-rw-r--r-- | tests/test-string-r/.gitignore | 7 | ||||
-rw-r--r-- | tests/test-string-r/Makefile.am | 46 |
5 files changed, 6 insertions, 55 deletions
diff --git a/tests/.gitignore b/tests/.gitignore index 33527c0..28be059 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -48,3 +48,5 @@ prefix_r prefix_r.c string_nr string_nr.c +string_r +string_r.c diff --git a/tests/Makefile.am b/tests/Makefile.am index aeeba0f..a749761 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -48,7 +48,8 @@ check_PROGRAMS = \ posix \ prefix_nr \ prefix_r \ - string_nr + string_nr \ +string_r alloc_extra_SOURCES = alloc_extra.l array_nr_SOURCES = array_nr.l @@ -72,6 +73,7 @@ posix_SOURCES = posix.l prefix_nr_SOURCES = prefix_nr.l prefix_r_SOURCES = prefix_r.l string_nr_SOURCES = string_nr.l +string_r_SOURCES = string_r.l BUILT_SOURCES = \ bison_nr_scanner.h \ diff --git a/tests/test-string-r/scanner.l b/tests/string_r.l index 6b594d7..9528015 100644 --- a/tests/test-string-r/scanner.l +++ b/tests/string_r.l @@ -32,7 +32,7 @@ %} -%option 8bit outfile="scanner.c" prefix="test" +%option 8bit prefix="test" %option nounput nomain nodefault noyywrap %option warn reentrant diff --git a/tests/test-string-r/.gitignore b/tests/test-string-r/.gitignore deleted file mode 100644 index 6dbb225..0000000 --- a/tests/test-string-r/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -Makefile -Makefile.in -parser.c -parser.h -scanner.c -test-string-r -OUTPUT diff --git a/tests/test-string-r/Makefile.am b/tests/test-string-r/Makefile.am deleted file mode 100644 index ec3d4da..0000000 --- a/tests/test-string-r/Makefile.am +++ /dev/null @@ -1,46 +0,0 @@ -# This file is part of flex. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: - -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. - -# Neither the name of the University nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. - -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -# PURPOSE. - - -FLEX = $(top_builddir)/flex - -EXTRA_DIST = scanner.l -CLEANFILES = scanner.c scanner.h parser.c parser.h $(testname)$(EXEEXT) OUTPUT $(OBJS) -OBJS = scanner.o # parser.o - -AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir) -#LDFLAGS = $(top_srcdir)/libfl.a -#LFLAGS = --header="scanner.h" -#YFLAGS = --defines --output=parser.c - -testname = test-string-r - -scanner.c: $(srcdir)/scanner.l - $(FLEX) $(LFLAGS) $< - -$(testname)$(EXEEXT): $(OBJS) - $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJS) $(LOADLIBES) - -test: $(testname)$(EXEEXT) - ./$(testname)$(EXEEXT) - -.c.o: - $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $< |