]> granicus.if.org Git - re2c/commitdiff
Added build script that checks that all headers are self-contained.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 12 Jul 2019 13:11:20 +0000 (14:11 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 12 Jul 2019 13:31:02 +0000 (14:31 +0100)
__alltest.sh
__build_check_headers.sh [new file with mode: 0755]
release.sh
src/dfa/posix_precedence.h

index a451a6becd8477462b1e62114c9d046fdac3ce87..7d0bb07581de3c26fd7fcd24e88773cb46cf97ec 100755 (executable)
@@ -2,7 +2,7 @@
 
 # normal tests
 # - exclude _clang_msan as it requires libc++ built with MSan
-for d in __build{,_asan,_ubsan,_lsan,_clang,_m32,_glibcxx_debug} ; do
+for d in __build{,_check_headers,_asan,_ubsan,_lsan,_clang,_m32,_glibcxx_debug} ; do
     ./${d}.sh \
         && cd ${d} \
         && make check VERBOSE=1 \
diff --git a/__build_check_headers.sh b/__build_check_headers.sh
new file mode 100755 (executable)
index 0000000..273bb9d
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+builddir=__build_check_headers
+rm -rf $builddir
+mkdir $builddir
+
+cd $builddir
+
+../configure \
+    --enable-debug \
+    --enable-libs \
+    && make -j$(nproc)
+
+for h in $(find ../src/ ../lib/ -name '*.h*'); do
+    echo "CHECKING $h"
+    g++ -I. -I.. -c $h -o foo.o || exit 1
+done
+
+rm -f foo.o
+
+cd ..
index edf0e6a3d3a37b95938c1b83e71faa9a074460a9..c231ee499757065ec94fd428c22b3e9879ca780c 100755 (executable)
@@ -2,18 +2,10 @@
 
 set -e
 
-echo 'RUNME: configure CXX=include-what-you-use CXXFLAGS="--check-also" && make -k 2>log && python2 `which fix_inclydes.py` < log'
+# checks for which there are no scripts yet
 echo 'RUNME: cppcheck --enable=all --inconclusive --std=posix --quiet --force -I. src/'
-echo 'RUNME: for h in $(find src/ -name ''*.h*''); do echo "CHECKING $h"; g++ -I. -c $h -o foo.o; done'
 echo "RUNME: uselex `find <objdir> -type f -name '*.o'`"
 echo 'RUNME: configure CFLAGS="-ffunction-sections -fdata-sections" LDFLAGS="-Wl,--gc-sections -Wl,--print-gc-sections"'
-echo 'RUNME: configure CXX=clang++'
-echo 'RUNME: configure CXXFLAGS="-m32"'
-echo 'RUNME: configure --host i686-w64-mingw32, test with wine: make wtests'
-echo 'RUNME: configure CXXFLAGS="-fsanitize=address"'
-echo 'RUNME: configure CXXFLAGS="-fsanitize=undefined"'
-echo 'RUNME: valgrind: make vtests'
-echo 'RUNME: skeleton: ./run_tests.sh --skeleton'
 
 if [[ $# -ne 1 ]]
 then
index 116614c1f6734a1f38366eadcf1699423919fd5d..ab68ee809c584c354534bb759bbf55092f884cac 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _RE2C_DFA_POSIX_PRECEDENCE_
 #define _RE2C_DFA_POSIX_PRECEDENCE_
 
+#include "src/dfa/determinization.h"
 #include "src/dfa/tag_history.h"
 #include "src/debug/debug.h"