Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions selfcheck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh

output=$(./simplecpp simplecpp.cpp -e 2>&1)
output=$(./simplecpp simplecpp.cpp -e -f 2>&1)
ec=$?
echo "$output" | grep -v 'Header not found: <'
exit $ec
errors=$(echo "$output" | grep -v 'Header not found: <')
if [ $ec -ne 0 ]; then
# only fail if got errors which do not refer to missing system includes
if [ ! -z "$errors" ]; then
exit $ec
fi
fi
Loading