summaryrefslogtreecommitdiffstats
path: root/include/dnsjit/test/test2.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xinclude/dnsjit/test/test2.sh (renamed from fmt.sh)11
1 files changed, 3 insertions, 8 deletions
diff --git a/fmt.sh b/include/dnsjit/test/test2.sh
index 8585229..9a58d06 100755
--- a/fmt.sh
+++ b/include/dnsjit/test/test2.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
# Copyright (c) 2018-2021, OARC, Inc.
# All rights reserved.
#
@@ -17,10 +17,5 @@
# You should have received a copy of the GNU General Public License
# along with dnsjit. If not, see <http://www.gnu.org/licenses/>.
-clang-format \
- -style=file \
- -i \
- src/*.c \
- `find src/core src/input src/filter src/output src/lib -name '*.c'` \
- `find src/core src/input src/filter src/output src/lib -name '*.h'` \
- `find src/core src/input src/filter src/output src/lib -name '*.hh'`
+../dnsjit "$srcdir/../../examples/dumpdns-qr.lua" dns.pcap-dist >test2.out
+diff "$srcdir/test2.gold" test2.out