vengi-tools: add convert all formats test

This commit is contained in:
Francesco Gazzetta 2021-12-28 16:24:31 +01:00
parent c1366d7fb9
commit 8ed1c05622
2 changed files with 16 additions and 0 deletions

View file

@ -106,6 +106,7 @@ stdenv.mkDerivation rec {
passthru.tests = {
voxconvert-roundtrip = callPackage ./test-voxconvert-roundtrip.nix {};
voxconvert-all-formats = callPackage ./test-voxconvert-all-formats.nix {};
run-voxedit = nixosTests.vengi-tools;
};

View file

@ -0,0 +1,15 @@
{ stdenv
, vengi-tools
}:
stdenv.mkDerivation {
name = "vengi-tools-test-voxconvert-all-formats";
meta.timeout = 10;
buildCommand = ''
mkdir $out
for format in vox qef qbt qb vxm vxr binvox gox cub vxl csv; do
echo Testing $format export
${vengi-tools}/bin/vengi-voxconvert --input ${vengi-tools}/share/vengi-voxedit/chr_knight.qb --output $out/chr_knight.$format
done
'';
}