diff options
author | Renaud <c0bw3b@users.noreply.github.com> | 2018-11-13 15:38:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 15:38:22 +0100 |
commit | 56f508833a47e26a17b59c958fcec9cf0945ed8e (patch) | |
tree | fd879533258d33b92a20c60eb3c69b8afe84d8bc /nixos/tests | |
parent | e3ac65f4c13709c87db1293ce73bb5b748069aec (diff) | |
parent | 40f41772aa68f8bb4f04ec78cdee612ea8701259 (diff) | |
download | nixlib-56f508833a47e26a17b59c958fcec9cf0945ed8e.tar nixlib-56f508833a47e26a17b59c958fcec9cf0945ed8e.tar.gz nixlib-56f508833a47e26a17b59c958fcec9cf0945ed8e.tar.bz2 nixlib-56f508833a47e26a17b59c958fcec9cf0945ed8e.tar.lz nixlib-56f508833a47e26a17b59c958fcec9cf0945ed8e.tar.xz nixlib-56f508833a47e26a17b59c958fcec9cf0945ed8e.tar.zst nixlib-56f508833a47e26a17b59c958fcec9cf0945ed8e.zip |
Merge pull request #50226 from danieldk/handbrake-1.1.2
handbrake: 1.1.0 -> 1.1.2
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/handbrake.nix | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 718a95dadd26..754a8ff20b26 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -88,6 +88,7 @@ in graphite = handleTest ./graphite.nix {}; hadoop.hdfs = handleTestOn [ "x86_64-linux" ] ./hadoop/hdfs.nix {}; hadoop.yarn = handleTestOn [ "x86_64-linux" ] ./hadoop/yarn.nix {}; + handbrake = handleTestOn ["x86_64-linux"] ./handbrake.nix {}; haproxy = handleTest ./haproxy.nix {}; #hardened = handleTest ./hardened.nix {}; # broken due useSandbox = true hibernate = handleTest ./hibernate.nix {}; diff --git a/nixos/tests/handbrake.nix b/nixos/tests/handbrake.nix new file mode 100644 index 000000000000..ae87e1f69a7d --- /dev/null +++ b/nixos/tests/handbrake.nix @@ -0,0 +1,25 @@ +import ./make-test.nix ({ pkgs, ... }: +let + # Download Big Buck Bunny example, licensed under CC Attribution 3.0. + testMkv = pkgs.fetchurl { + url = "https://github.com/Matroska-Org/matroska-test-files/blob/cf0792be144ac470c4b8052cfe19bb691993e3a2/test_files/test1.mkv?raw=true"; + sha256 = "1hfxbbgxwfkzv85pvpvx55a72qsd0hxjbm9hkl5r3590zw4s75h9"; + }; +in { + name = "handbrake"; + + meta = { + maintainers = with pkgs.stdenv.lib.maintainers; [ danieldk ]; + }; + + machine = { pkgs, ... }: { + environment.systemPackages = with pkgs; [ handbrake ]; + }; + + testScript = '' + # Test MP4 and MKV transcoding. Since this is a short clip, transcoding typically + # only takes a few seconds. + $machine->succeed("HandBrakeCLI -i ${testMkv} -o test.mp4 -e x264 -q 20 -B 160"); + $machine->succeed("HandBrakeCLI -i ${testMkv} -o test.mkv -e x264 -q 20 -B 160"); + ''; +}) |