X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2FSConstruct;h=d8ab9ab0ac962f7177dd2001fc4a6dd173f39a4c;hb=fa444be4243b2e1f0f6ee22798ddbf0c85e54422;hp=9c222daa9a14d63c399bb663bd079e6a0338c6d0;hpb=b0d31468da7f644684be897cef5b0602ca10af0f;p=apps%2Fagl-service-can-low-level.git diff --git a/tests/SConstruct b/tests/SConstruct index 9c222daa..d8ab9ab0 100644 --- a/tests/SConstruct +++ b/tests/SConstruct @@ -72,6 +72,11 @@ if not env.GetOption('clean'): else: conf.env.Append(PROTOCPATH = '/usr/include') + # Check protoc version + status, output = conf.TryAction('$PROTOC --version > $TARGET') + if status: + conf.env['PROTOC_VERSION'] = output + # Check if libmudflap is available (only with GCC) if 'gcc' in env['CC']: if conf.CheckLib('mudflap'):