mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
tests: Add unit test with many keywords.
* tests/generate-5000.sh: New file. * tests/5000.gperf: New generated file. * tests/5000.exp: New generated file. * tests/Makefile.in (SOURCE_FILES): Add them. (check-large): New rule.
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2025-04-19 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
tests: Add unit test with many keywords.
|
||||||
|
* tests/generate-5000.sh: New file.
|
||||||
|
* tests/5000.gperf: New generated file.
|
||||||
|
* tests/5000.exp: New generated file.
|
||||||
|
* tests/Makefile.in (SOURCE_FILES): Add them.
|
||||||
|
(check-large): New rule.
|
||||||
|
|
||||||
2025-04-19 Bruno Haible <bruno@clisp.org>
|
2025-04-19 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
build: Update dependencies after 2025-04-16 change.
|
build: Update dependencies after 2025-04-16 change.
|
||||||
|
|||||||
16995
tests/5000.exp
Normal file
16995
tests/5000.exp
Normal file
File diff suppressed because it is too large
Load Diff
5000
tests/5000.gperf
Normal file
5000
tests/5000.gperf
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
# Makefile for gperf/tests
|
# Makefile for gperf/tests
|
||||||
|
|
||||||
# Copyright (C) 1989, 1992-1993, 1995, 1998, 2000, 2002-2004, 2007-2009, 2012, 2016, 2018 Free Software Foundation, Inc.
|
# Copyright (C) 1989, 1992-1993, 1995, 1998, 2000, 2002-2004, 2007-2009, 2012, 2016, 2018, 2025 Free Software Foundation, Inc.
|
||||||
# Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
|
# Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
|
||||||
# and Bruno Haible <bruno@clisp.org>.
|
# and Bruno Haible <bruno@clisp.org>.
|
||||||
#
|
#
|
||||||
@@ -61,7 +61,7 @@ installdirs :
|
|||||||
|
|
||||||
uninstall :
|
uninstall :
|
||||||
|
|
||||||
check : check-c check-ada check-modula3 check-pascal check-lang-utf8 check-lang-ucs2 check-smtp check-test
|
check : check-c check-ada check-modula3 check-pascal check-lang-utf8 check-lang-ucs2 check-smtp check-test check-large
|
||||||
@true
|
@true
|
||||||
|
|
||||||
extracheck : @CHECK_LANG_SYNTAX@
|
extracheck : @CHECK_LANG_SYNTAX@
|
||||||
@@ -173,6 +173,9 @@ check-test: check-ada
|
|||||||
@echo "only if, do, for, case, goto, else, while, and return should be found "
|
@echo "only if, do, for, case, goto, else, while, and return should be found "
|
||||||
./aout -v < $(srcdir)/c.gperf | $(POSTPROCESS_FOR_MINGW) > test-7.out
|
./aout -v < $(srcdir)/c.gperf | $(POSTPROCESS_FOR_MINGW) > test-7.out
|
||||||
diff $(srcdir)/test-7.exp test-7.out
|
diff $(srcdir)/test-7.exp test-7.out
|
||||||
|
check-large:
|
||||||
|
$(GPERF) -m 10 < $(srcdir)/5000.gperf | $(POSTPROCESS_FOR_MINGW) > 5000.out
|
||||||
|
diff $(srcdir)/5000.exp 5000.out
|
||||||
|
|
||||||
# The following validates valid language syntax with different parameters.
|
# The following validates valid language syntax with different parameters.
|
||||||
# Works only with gcc and g++, and only on platforms where "gcc -ansi" is
|
# Works only with gcc and g++, and only on platforms where "gcc -ansi" is
|
||||||
@@ -373,6 +376,7 @@ SOURCE_FILES = \
|
|||||||
incomplete.gperf incomplete.exp \
|
incomplete.gperf incomplete.exp \
|
||||||
test-6.exp \
|
test-6.exp \
|
||||||
test-7.exp \
|
test-7.exp \
|
||||||
|
generate-5000.sh 5000.gperf 5000.exp \
|
||||||
validate \
|
validate \
|
||||||
jstest1.gperf \
|
jstest1.gperf \
|
||||||
jstest2.gperf \
|
jstest2.gperf \
|
||||||
|
|||||||
2
tests/generate-5000.sh
Executable file
2
tests/generate-5000.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
clisp -q -x '(dotimes (i 5000) (write (random 10000000000000000) :base 36) (terpri))'
|
||||||
Reference in New Issue
Block a user