diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2021-12-28 16:24:31 +0100 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2022-02-02 21:41:30 +0100 |
commit | 8ed1c056225502e3662c8b7ff0fd6e9181b79727 (patch) | |
tree | cbe015faffda7de7c4d866c6debd6ea5079a33d0 /pkgs/applications/graphics/vengi-tools | |
parent | c1366d7fb90ad2939f949dadb97ba5a9d00541d5 (diff) | |
download | nixpkgs-8ed1c056225502e3662c8b7ff0fd6e9181b79727.tar nixpkgs-8ed1c056225502e3662c8b7ff0fd6e9181b79727.tar.gz nixpkgs-8ed1c056225502e3662c8b7ff0fd6e9181b79727.tar.bz2 nixpkgs-8ed1c056225502e3662c8b7ff0fd6e9181b79727.tar.lz nixpkgs-8ed1c056225502e3662c8b7ff0fd6e9181b79727.tar.xz nixpkgs-8ed1c056225502e3662c8b7ff0fd6e9181b79727.tar.zst nixpkgs-8ed1c056225502e3662c8b7ff0fd6e9181b79727.zip |
vengi-tools: add convert all formats test
Diffstat (limited to 'pkgs/applications/graphics/vengi-tools')
-rw-r--r-- | pkgs/applications/graphics/vengi-tools/default.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/graphics/vengi-tools/test-voxconvert-all-formats.nix | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/vengi-tools/default.nix b/pkgs/applications/graphics/vengi-tools/default.nix index 09e1672f6d8..688bbcb046e 100644 --- a/pkgs/applications/graphics/vengi-tools/default.nix +++ b/pkgs/applications/graphics/vengi-tools/default.nix @@ -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; }; diff --git a/pkgs/applications/graphics/vengi-tools/test-voxconvert-all-formats.nix b/pkgs/applications/graphics/vengi-tools/test-voxconvert-all-formats.nix new file mode 100644 index 00000000000..00cdf8ae6f0 --- /dev/null +++ b/pkgs/applications/graphics/vengi-tools/test-voxconvert-all-formats.nix @@ -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 + ''; +} |