]> granicus.if.org Git - re2c/commitdiff
run_tests.sh: use '--no-version --no-generation-date' instead of sed hack.
authorUlya Trofimovich <skvadrik@gmail.com>
Sun, 29 Nov 2015 11:04:56 +0000 (11:04 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Sun, 29 Nov 2015 11:04:56 +0000 (11:04 +0000)
These options make re2c omit version and date info and thus produce
stable test results.

re2c/run_tests.sh.in

index dfa7978c64d689638886c97781db75d72e6cde70..a8c9b84f0adfbbfc7e171e95021f6ee53d327d62 100644 (file)
@@ -128,7 +128,7 @@ run_pack() {
                        -e 's/^\([^-]\)/-\1/' \
                        -e 's/--\([^ (-]*\)/ --\1/g' \
                        -e 's/(\([^)]*\))/ \1/g'`
-               local switches="$switches -o $outc"
+               local switches="$switches -o $outc --no-version --no-generation-date"
                # enable warnings globally
                local switches="$switches -W"
 
@@ -163,7 +163,6 @@ run_pack() {
                        rm "$outx" && find . -type f \
                                | lc_run sort \
                                | xargs cat \
-                               | lc_run sed -e 's,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g' \
                                >> "../$outc"
                        # cleanup sandbox
                        cd .. \