# Tests for conntrack-tools - hosts: localhost tags: - classic roles: - role: standard-test-source - role: standard-test-basic required_packages: - gcc - make - libnfnetlink-devel - libnetfilter_conntrack-devel - libnetfilter_cttimeout-devel - libnetfilter_cthelper-devel - libnetfilter_queue-devel - libmnl-devel - libtirpc-devel - systemd-devel - bison - flex tests: - build-test: dir: ./source run: ./configure && sed -i "s/DEFAULT_INCLUDES = -I./DEFAULT_INCLUDES = -I. -I\/usr\/include\/tirpc/" src/helpers/Makefile && make - conntrack-test: dir: ./source/tests/conntrack run: chmod +x run-test.sh && ./run-test.sh 2>/dev/null | tee conntrack_test.log | grep -q '^OK':' [0-9]* BAD':' 0$' save_files: - conntrack_test.log - nfct-test: dir: ./source/tests/nfct run: chmod +x run-test.sh && ./run-test.sh 2>/dev/null | tee nfct_test.log | grep -q '^OK':' [0-9]* BAD':' 0$' save_files: - nfct_test.log