From abd5b2bb1422ea03f15d5afb72d011cb97534aa4 Mon Sep 17 00:00:00 2001 From: Troels Henriksen Date: Thu, 1 Aug 2024 08:46:39 +0200 Subject: [PATCH] mlkit: add tests --- pkgs/development/compilers/mlkit/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/compilers/mlkit/default.nix b/pkgs/development/compilers/mlkit/default.nix index 5dbc219303a0..c4dfa85b70c1 100644 --- a/pkgs/development/compilers/mlkit/default.nix +++ b/pkgs/development/compilers/mlkit/default.nix @@ -15,6 +15,17 @@ stdenv.mkDerivation rec { buildFlags = [ "mlkit" "mlkit_libs" ]; + doCheck = true; + + checkPhase = '' + runHook preCheck + echo ==== Running MLKit test suite: test ==== + make -C test_dev test + echo ==== Running MLKit test suite: test_prof ==== + make -C test_dev test_prof + runHook postCheck + ''; + meta = with lib; { description = "Standard ML Compiler and Toolkit"; homepage = "https://elsman.com/mlkit/";