git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "vengi-tools: remove failing roundtrip test"

This reverts commit 50dae31a148317bdf892cffb4e6b03d038cb2b49.

commit97879bb90d12acba027cc9a5d4e0a588429e95d2 authorFrancesco Gazzetta <fgaz@fgaz.me> dateMon 14 Feb 2022, 12:03 (5 years ago) parent7d87dad
2 files changed+16−3
pkgs/applications/graphics/vengi-tools/default.nix+1−3 pkgs/applications/graphics/vengi-tools/test-voxconvert-roundtrip.nix+15
pkgs/applications/graphics/vengi-tools/default.nix+1−3
@@ -87,9 +87,7 @@ stdenv.mkDerivation rec {
8787 '';
8888
8989 passthru.tests = {
90− # There used to be a roundtrip test here, but it started failing on 0.0.17
91− # Relevant upstream ticket:
92− # https://github.com/mgerhardy/vengi/issues/113
90+ voxconvert-roundtrip = callPackage ./test-voxconvert-roundtrip.nix {};
9391 voxconvert-all-formats = callPackage ./test-voxconvert-all-formats.nix {};
9492 run-voxedit = nixosTests.vengi-tools;
9593 };
pkgs/applications/graphics/vengi-tools/test-voxconvert-roundtrip.nixnew file+15
@@ -0,0 +1,15 @@
1+{ stdenv
2+, vengi-tools
3+}:
4+
5+stdenv.mkDerivation {
6+ name = "vengi-tools-test-voxconvert-roundtrip";
7+ meta.timeout = 10;
8+ buildCommand = ''
9+ ${vengi-tools}/bin/vengi-voxconvert --input ${vengi-tools}/share/vengi-voxedit/chr_knight.qb --output chr_knight.vox
10+ ${vengi-tools}/bin/vengi-voxconvert --input chr_knight.vox --output chr_knight.qb
11+ ${vengi-tools}/bin/vengi-voxconvert --input chr_knight.qb --output chr_knight1.vox
12+ diff chr_knight.vox chr_knight1.vox
13+ touch $out
14+ '';
15+}