dfmt/tests/gen_expected.sh
2019-11-25 17:10:20 +01:00

18 lines
410 B
Bash
Executable file

#!/usr/bin/env bash
argsFile=$1.args
if [ -e ${argsFile} ]; then
args=$(cat ${argsFile})
fi
echo "Args:" ${args}
../bin/dfmt --brace_style=allman ${args} $1.d > allman/$1.d.ref
../bin/dfmt --brace_style=otbs ${args} $1.d > otbs/$1.d.ref
echo "------------------"
echo "allman:"
echo "------------------"
cat allman/$1.d.ref
echo "------------------"
echo "otbs:"
echo "------------------"
cat otbs/$1.d.ref