# 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 \
--- /dev/null
+#!/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 ..
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
#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"