On Sat, Mar 11, 2017 at 7:58 PM, Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> wrote: > The goal is to use this in some of test cases, by comparing > the expected output with the actual one. > > diff --git a/sparse-llvm-dis b/sparse-llvm-dis > new file mode 100755 > index 000000000..573f8bbd0 > --- /dev/null > +++ b/sparse-llvm-dis > @@ -0,0 +1,13 @@ > +#!/bin/sh > + > +set +e > + > +DIRNAME=`dirname $0` > +DIS=`"${LLVM_CONFIG:-llvm-config}" --bindir`/llvm-dis > + > +if [ $# -eq 0 ]; then > + echo "`basename $0`: no input files" > + exit 1 > +fi > + > +$DIRNAME/sparse-llvm $@ | $DIS Looks good. You might want to check llvm-dis and sparse-llvm is there. I assume this script will not be invoked if llvm is not there so it is not a big deal. Chris -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html