feat(scheduler-sim-discrete-clock): --sim-speed deprecation-warning helper and discrete-clock test binary (task 1.1)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4b6872d053
commit
4f653d8fbe
6 changed files with 232 additions and 2 deletions
|
|
@ -2333,3 +2333,23 @@ sched_alloc_from_stamp_test = executable(
|
|||
test('scheduler alloc from stamp test',
|
||||
sched_alloc_from_stamp_test, suite: 'scheduler',
|
||||
env: ['ASAN_OPTIONS=detect_leaks=0'])
|
||||
|
||||
# scheduler-sim-discrete-clock spec (task 1.1, Req 2.3-2.5): unit tests for
|
||||
# the --sim-speed deprecation warning (../src/cli_compat.c), and -- in later
|
||||
# tasks -- the discrete-clock and end-to-end command-line tests. Sources are
|
||||
# the test file and cli_compat.c ONLY: the white-box sim #includes live in
|
||||
# the test file itself (listing sim sources here too would define every
|
||||
# symbol twice). XCE_SCHEDULER_BIN points the end-to-end tests at the built
|
||||
# xce_scheduler, which `depends: scheduler` guarantees is built first.
|
||||
sched_sim_discrete_clock_test = executable(
|
||||
'sched_sim_discrete_clock_test',
|
||||
['test_sim_discrete_clock.c', '../src/cli_compat.c'],
|
||||
include_directories:[incdir],
|
||||
dependencies: [scheduler_test_deps, libedit_dep],
|
||||
c_args: ['-DXCE_SCHEDULER_BIN="' + scheduler.full_path() + '"'],
|
||||
install: false)
|
||||
|
||||
test('scheduler sim discrete clock test',
|
||||
sched_sim_discrete_clock_test, suite: 'scheduler',
|
||||
env: ['ASAN_OPTIONS=detect_leaks=0'],
|
||||
depends: scheduler)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue