diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-05-06 19:27:13 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-05-06 19:27:13 +0100 |
commit | 17c31a83a9d643a5ba20e27758aa377f6152b968 (patch) | |
tree | aec1f31e458c80172d0bfeb3c4d578116b0ca26c /tests | |
parent | d783d832f4a45b93492431c5ec73ef5f8cd1d4c4 (diff) |
tests: Use the uninstalled gnome-clang and plugin in the tests
Rather than assuming they’re installed.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/wrapper-compiler-errors | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/wrapper-compiler-errors b/tests/wrapper-compiler-errors index 408ec01..50df963 100755 --- a/tests/wrapper-compiler-errors +++ b/tests/wrapper-compiler-errors @@ -22,9 +22,14 @@ input_filename=$1 temp_dir=`mktemp -d` +tests_dir=`dirname $0` +gnome_clang=${tests_dir}/../scripts/gnome-clang +gnome_clang_plugin=${tests_dir}/../clang-plugin/.libs/libclang-gnome.so echo "Reading input from ${input_filename}." echo "Using temporary directory ${temp_dir}." +echo "Using gnome-clang from ${gnome_clang}." +echo "Using plugin from ${gnome_clang_plugin}." test_status=0 @@ -82,8 +87,9 @@ while [[ -f `printf "${temp_dir}/${input_filename}_%02d.c" ${num}` ]]; do fi # Run the compiler. - # TODO: Get rid of the hard-coding. - gnome-clang -cc1 -analyze -std=c89 -Wno-visibility \ + GNOME_CLANG_PLUGIN=$gnome_clang_plugin \ + $gnome_clang \ + -cc1 -analyze -std=c89 -Wno-visibility \ `pkg-config --cflags glib-2.0` \ $system_includes \ $section_filename > $actual_error_filename 2>&1 |