travis-ci build CMake project

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig 2021-04-15 10:18:59 +02:00
parent 0c034ffba1
commit a0fa598cee
No known key found for this signature in database
GPG key ID: 22C5333D922537D2
5 changed files with 31 additions and 14 deletions

View file

@ -68,6 +68,12 @@ mkdir -p /tmp/nDPId-test-stderr
set +e
TESTS_FAILED=0
${nDPId_test_EXEC} -h 2>/dev/null
if [ $? -ne 1 ]; then
printf '%s\n' "nDPId-test: ${nDPId_test_EXEC} seems to be an invalid executable"
exit 7
fi
for pcap_file in $(ls *.pcap *.pcapng *.cap); do
if file "${pcap_file}" | grep -qoE ':\s(pcap|pcap-ng) capture file'; then
true # pass