Skip to content

Commit 902bfe5

Browse files
committed
testsuite: cover loading module with version ext
Problem: there are no tests that confirm a broker module with a version extension can be loaded. Add a test to t0003-module.t.
1 parent 22897c1 commit 902bfe5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t0003-module.t

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,5 +244,14 @@ test_expect_success 'broker.module-status rejects request from unknown sender' '
244244
test_must_fail module_status 2>sender.err &&
245245
grep "error decoding/finding broker.module-status" sender.err
246246
'
247+
# issue #5255
248+
test_expect_success 'module with version ext can be loaded by name' '
249+
mkdir -p testmoddir &&
250+
cp $testmod testmoddir/testmod.so.0.0.0 &&
251+
FLUX_MODULE_PATH_PREPEND=$(pwd)/testmoddir flux start \
252+
bash -c "flux module load testmod && flux module list -l" \
253+
>modlist.out &&
254+
grep testmod.so.0.0.0 modlist.out
255+
'
247256

248257
test_done

0 commit comments

Comments
 (0)