From 08e22978535f81c54a2d75b05b7db414f0432858 Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Sun, 7 Apr 2024 15:17:28 +0200 Subject: [PATCH] CI: Add tests to avoid a repeat of #328 Extend tests to cover the file content filter example plugins in order to avoid a repeat of #328. --- t/file_data_filter.t | 4 +++- t/plugins/id | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 t/plugins/id diff --git a/t/file_data_filter.t b/t/file_data_filter.t index a938e97..aa054c9 100755 --- a/t/file_data_filter.t +++ b/t/file_data_filter.t @@ -25,7 +25,9 @@ git_convert() { cd "$2" && hg-fast-export.sh --repo "../$1" \ -s --hgtags -n \ - --plugin ../../plugins/rename_file_test_plugin + --plugin ../../plugins/rename_file_test_plugin \ + --plugin dos2unix \ + --plugin shell_filter_file_contents=../../plugins/id ) } diff --git a/t/plugins/id b/t/plugins/id new file mode 100755 index 0000000..2cebdbd --- /dev/null +++ b/t/plugins/id @@ -0,0 +1,2 @@ +#!/bin/bash +cat