aboutsummaryrefslogtreecommitdiff
path: root/tests/test_macro_processor.sh
diff options
context:
space:
mode:
authorQrius <[email protected]>2025-03-05 08:41:05 +0100
committerQrius <[email protected]>2025-03-05 08:41:08 +0100
commit313e059f367f2ac291cd409e77d22673f9595848 (patch)
tree6440ebdd65e015f8c6b0147fd8eb5f877f35c34e /tests/test_macro_processor.sh
parent5fb097851d88b42188ee0502270d8c336102783a (diff)
downloadskaldpress-313e059f367f2ac291cd409e77d22673f9595848.tar.gz
skaldpress-313e059f367f2ac291cd409e77d22673f9595848.zip
First iteration of py skaldpress version
Diffstat (limited to 'tests/test_macro_processor.sh')
-rwxr-xr-xtests/test_macro_processor.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_macro_processor.sh b/tests/test_macro_processor.sh
index 1a7accd..daee5d2 100755
--- a/tests/test_macro_processor.sh
+++ b/tests/test_macro_processor.sh
@@ -3,7 +3,7 @@
ALL_OUTPUT=0
test () {
- file_content=$(<tests/input_files/$1)
+ file_content=$(<tests/smp/$1)
readarray -t sections < <(awk -v RS="---" '{print}' <<< "$file_content")
var1=$(echo "$file_content" | awk -v RS="\n---\n" 'NR==1')
var2=$(echo "$file_content" | awk -v RS="\n---\n" 'NR==2')
@@ -36,7 +36,7 @@ if [ "$#" -eq 1 ]; then
ALL_OUTPUT=1
test $1
else
- for file in tests/input_files/*; do
+ for file in tests/smp/*; do
test "$(basename $file)"
done
fi