castxml: use testers.testVersion in passthru.tests

(in order to prevent CLI regressions such as https://github.com/NixOS/nixpkgs/pull/318055)

(cherry picked from commit 068d1888e7)
This commit is contained in:
Ben Darwin 2024-06-07 21:25:29 -04:00 committed by github-actions[bot]
parent eeab88f8b3
commit c05dd69d8b

View File

@ -7,6 +7,7 @@
llvmPackages,
python3,
stdenv,
testers,
zlib,
# Boolean flags
withHTML ? true,
@ -66,6 +67,10 @@ stdenv.mkDerivation (finalAttrs: {
runHook postCheck
'';
passthru.tests = testers.testVersion {
package = finalAttrs.finalPackage;
};
meta = {
homepage = "https://github.com/CastXML/CastXML";
description = "C-family Abstract Syntax Tree XML Output";