mirror of
https://github.com/zerwes/ansible-fqcn-converter.git
synced 2024-11-27 03:00:47 -06:00
simple test script
This commit is contained in:
parent
715d971d8c
commit
b7eb7b4480
23
test.sh
Executable file
23
test.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user