mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
vengi-tools: add convert all formats test
This commit is contained in:
parent
c1366d7fb9
commit
8ed1c05622
2 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue