build: Improve testsuite build selection

Enable an individual testsuite only through the corresponding enable.
Use BUILD_TESTS to change the default value of the individual testsuite
enable options.  This allows the user to enable all testsuites with
specific exceptions.

For example, this builds all testsuites except the benchmarks:

[arch/bsp]
BUILD_TESTS = True
BUILD_BENCHMARKS = False
This commit is contained in:
Sebastian Huber
2023-10-26 12:19:58 +02:00
parent 51d596281c
commit 963327eaf3
28 changed files with 43 additions and 45 deletions

View File

@@ -8,9 +8,7 @@ cxxflags: []
enabled-by:
- and:
- __RTEMS_ADA__
- or:
- BUILD_TESTS
- BUILD_ADATESTS
- BUILD_ADATESTS
includes: []
install: []
ldflags:

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_BENCHMARKS
enabled-by: BUILD_BENCHMARKS
includes:
- testsuites/support/include
install: []

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_FSTESTS
enabled-by: BUILD_FSTESTS
includes:
- testsuites/support/include
- testsuites/fstests/support

View File

@@ -14,10 +14,10 @@ install: []
ldflags:
- ${COVERAGE_LINKER_FLAGS}
links:
- role: build-dependency
uid: optada
- role: build-dependency
uid: optall
- role: build-dependency
uid: optada
- role: build-dependency
uid: optbenchmarks
- role: build-dependency

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_LIBTESTS
enabled-by: BUILD_LIBTESTS
includes:
- testsuites/support/include
install: []

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_MPTESTS
enabled-by: BUILD_MPTESTS
includes:
- testsuites/support/include
install: []

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -6,6 +6,8 @@ build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
default:
- enabled-by: BUILD_TESTS
value: true
- enabled-by: true
value: false
description: |

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_PSXTESTS
enabled-by: BUILD_PSXTESTS
includes:
- testsuites/support/include
- testsuites/psxtests/include

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_PSXTMTESTS
enabled-by: BUILD_PSXTMTESTS
includes:
- testsuites/support/include
- testsuites/tmtests/include

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_RHEALSTONE
enabled-by: BUILD_RHEALSTONE
includes:
- testsuites/support/include
- testsuites/tmtests/include

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_SAMPLES
enabled-by: BUILD_SAMPLES
includes:
- testsuites/support/include
install: []

View File

@@ -6,11 +6,9 @@ copyrights:
cppflags: []
cxxflags: []
enabled-by:
- and:
and:
- RTEMS_SMP
- or:
- BUILD_TESTS
- BUILD_SMPTESTS
- BUILD_SMPTESTS
includes:
- testsuites/support/include
install: []

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_SPTESTS
enabled-by: BUILD_SPTESTS
includes:
- testsuites/support/include
install: []

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_TMTESTS
enabled-by: BUILD_TMTESTS
includes:
- testsuites/support/include
- testsuites/tmtests/include

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_UNITTESTS
enabled-by: BUILD_UNITTESTS
includes:
- testsuites/support/include
install: []

View File

@@ -5,9 +5,7 @@ copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
cxxflags: []
enabled-by:
- BUILD_TESTS
- BUILD_VALIDATIONTESTS
enabled-by: BUILD_VALIDATIONTESTS
includes:
- ${BSP_INCLUDES}
- testsuites/validation