From 7623af56c7f944f1d6c9037baf0d30d1d91c60f8 Mon Sep 17 00:00:00 2001 From: Philipp Jungkamp Date: Thu, 14 Sep 2023 11:39:21 +0200 Subject: [PATCH] hook-frame: Add integration test Signed-off-by: Philipp Jungkamp --- tests/integration/hook-frame.sh | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 tests/integration/hook-frame.sh diff --git a/tests/integration/hook-frame.sh b/tests/integration/hook-frame.sh new file mode 100755 index 000000000..dce8d18ee --- /dev/null +++ b/tests/integration/hook-frame.sh @@ -0,0 +1,50 @@ +#!/bin/bash +# +# Integration test for frame hook. +# +# Author: Philipp Jungkamp +# SPDX-FileCopyrightText: 2023 OPAL-RT Germany GmbH +# SPDX-License-Identifier: Apache-2.0 + +set -e + +DIR=$(mktemp -d) +pushd ${DIR} + +function finish { + popd + rm -rf ${DIR} +} +trap finish EXIT + +cat > input.dat < expect.dat < output.dat + +villas compare output.dat expect.dat