Message ID | 20170311115813.23249-1-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Sat, Mar 11, 2017 at 7:58 PM, Luc Van Oostenryck <luc.vanoostenryck@gmail.com> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Apr 25, 2017 at 10:43 PM, Christopher Li <sparse@chrisli.org> wrote: > On Sat, Mar 11, 2017 at 7:58 PM, Luc Van Oostenryck > <luc.vanoostenryck@gmail.com> wrote: >> The goal is to use this in some of test cases, by comparing >> the expected output with the actual one. >> > > 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 Yes, it need sparse-llvm anyway. OTOH, there is no users for this script so it can kept on hold too. -- Luc -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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
The goal is to use this in some of test cases, by comparing the expected output with the actual one. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- sparse-llvm-dis | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 sparse-llvm-dis