diff --git a/source-builder/config/gcc-common-1.cfg b/source-builder/config/gcc-common-1.cfg index 00bbc84..6a3c5c1 100644 --- a/source-builder/config/gcc-common-1.cfg +++ b/source-builder/config/gcc-common-1.cfg @@ -178,3 +178,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) # Don't want libffi's man-pages %{__rmfile} $SB_BUILD_ROOT%{_mandir}/man3/*ffi* + +%testing + # Add testing here. + export RUNTESTFLAGS=--target_board=%{_target}-run diff --git a/source-builder/sb/config.py b/source-builder/sb/config.py index a41a37c..457044a 100644 --- a/source-builder/sb/config.py +++ b/source-builder/sb/config.py @@ -197,6 +197,9 @@ class package: def include(self): return self.find_directive('%include') + def testing(self): + return self.find_directive('%testing') + def long_name(self): return self.name() @@ -209,7 +212,8 @@ class file: '%clean', '%install', '%include', - '%install' ] + '%install', + '%testing' ] _ignore = [ re.compile('%setup'), re.compile('%configure'),