simple test script

This commit is contained in:
Klaus Zerwes 2022-09-17 19:16:21 +02:00
parent 715d971d8c
commit b7eb7b4480

23
test.sh Executable file
View File

@ -0,0 +1,23 @@
#! /bin/bash
declare -i E=0
cd $(dirname $0)
cp example.yml example.yml.orig
./fqcn-fixer.py -e example.yml -w -x
cmp example.yml exampleconverted.yml
E=$?
if [ $E -gt 0 ]; then
diff -Naur example.yml exampleconverted.yml
echo -e "\n\tERROR: conversion not as expected\n"
else
echo -e "\n\tconversion successful\n"
fi
mv example.yml.orig example.yml
exit $E