Check-in Number:
|
2492 | |
Date: |
2002-Aug-02 21:18:00 (local)
2002-Aug-02 19:18:00 (UTC) |
User: | rse |
Branch: | |
Comment: |
Enhanced test suite by comparing against previously saved output |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/cfg/.cvsignore 1.2 -> 1.3
--- .cvsignore 2002/07/09 08:29:19 1.2
+++ .cvsignore 2002/08/02 19:18:00 1.3
@@ -6,6 +6,7 @@
cfg_syn_parse.h
cfg_syn_scan.c
cfg_test
+cfg_test.try
config.guess
config.h
config.h.in
|
|
ossp-pkg/cfg/ChangeLog 1.2 -> 1.3
--- ChangeLog 2002/08/02 19:07:12 1.2
+++ ChangeLog 2002/08/02 19:18:00 1.3
@@ -10,6 +10,9 @@
Changes between 0.9.0 and 0.9.1 (01-Jul-2002 to 02-Aug-2002)
+ *) Enhanced test suite by comparing against previously saved output
+ [Ralf S. Engelschall <rse@engelschall.com>]
+
*) Switch from text-based VERSION file to C-based cfg_vers.c
and use this to provide a cfg_version(3) API function.
[Ralf S. Engelschall <rse@engelschall.com>]
|
|
ossp-pkg/cfg/Makefile.in 1.3 -> 1.4
--- Makefile.in 2002/08/02 19:07:12 1.3
+++ Makefile.in 2002/08/02 19:18:00 1.4
@@ -105,7 +105,15 @@
# running the test suite
test: check
check: $(TST_NAME)
- @./$(TST_NAME) cfg_test.cfg
+ @$(SHTOOL) echo -e "%BParsing cfg_test.cfg:%b"; \
+ ./$(TST_NAME) cfg_test.cfg 2>&1 | tee cfg_test.try
+ -@diff -u3 cfg_test.out cfg_test.try >/dev/null 2>&1; \
+ if [ $$? -ne 0 ]; then \
+ $(SHTOOL) echo -e "%BATTENTION: Parsing Difference (cfg_test.cfg vs. cfg_test.out):%b"; \
+ diff -u3 cfg_test.out cfg_test.try; \
+ fi
+check-setup:
+ @./$(TST_NAME) cfg_test.cfg >cfg_test.out
# perform installation procedure
install:
@@ -136,6 +144,7 @@
clean:
-$(RM) $(LIB_NAME) $(LIB_OBJS)
-$(RM) $(TST_NAME) $(TST_OBJS)
+ -$(RM) cfg_test.try
-$(RM) -r .libs >/dev/null 2>&1 || $(TRUE)
-$(RM) *.o *.lo
|
|
ossp-pkg/cfg/cfg_test.out -> 1.1
*** /dev/null Sat Nov 23 01:15:20 2024
--- - Sat Nov 23 01:15:21 2024
***************
*** 0 ****
--- 1,23 ----
+ "==== Shell-style EOL comments ====";
+ foo1;
+ foo2;
+ foo3#bar foo4;
+ "==== C++-style EOL comments ====";
+ foo1;
+ foo2;
+ foo3//bar foo4;
+ "==== C-style block comments ====";
+ foo1;
+ foo2;
+ foo3/*bar*/ foo4;
+ "==== Single-Quoted Strings ====";
+ foo;
+ "foo bar";
+ "foo\\bar'baz";
+ "'";
+ "==== Double-Quoted Strings ====";
+ "foo\r\nbar\r\n";
+ "foo\x1bbar\x01\x1bbaz";
+ "==== Flexible-Quoted Strings ====";
+ foo "foo{bar{baz}bar}quux" bar;
+ foo "foo{bar{baz}}bar}quux" bar
|
|