git-interactive-rebase-tool: actually run tests

+12 -10
+12 -10
pkgs/applications/version-management/git-interactive-rebase-tool/default.nix
··· 14 14 postPatch = '' 15 15 # unknown lint: `ffi_unwind_calls` 16 16 # note: the `ffi_unwind_calls` lint is unstable 17 - substituteInPlace src/main.rs src/{config,core,display,input,git,runtime,todo_file,view}/src/lib.rs \ 17 + substituteInPlace src/main.rs src/{config,core,display,input,git,runtime,todo_file,testutils,view}/src/lib.rs \ 18 18 --replace "ffi_unwind_calls," "" 19 19 ''; 20 20 ··· 27 27 28 28 buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ]; 29 29 30 - checkFlags = [ 31 - "--skip=external_editor::tests::edit_success" 32 - "--skip=external_editor::tests::editor_non_zero_exit" 33 - "--skip=external_editor::tests::empty_edit_abort_rebase" 34 - "--skip=external_editor::tests::empty_edit_error" 35 - "--skip=external_editor::tests::empty_edit_noop" 36 - "--skip=external_editor::tests::empty_edit_re_edit_rebase_file" 37 - "--skip=external_editor::tests::empty_edit_undo_and_edit" 30 + # Compilation during tests fails if this env var is not set. 31 + preCheck = "export GIRT_BUILD_GIT_HASH=${version}"; 32 + postCheck = "unset GIRT_BUILD_GIT_HASH"; 33 + cargoTestFlags = [ 34 + "--workspace" 35 + # build everything except for doctests which are currently broken because 36 + # `config::lib` expects the sourcetree to be a git repo. 37 + "--tests" 38 + "--lib" 39 + "--bins" 38 40 ]; 39 41 40 42 meta = with lib; { ··· 42 44 description = "Native cross platform full feature terminal based sequence editor for git interactive rebase"; 43 45 changelog = "https://github.com/MitMaro/git-interactive-rebase-tool/releases/tag/${version}"; 44 46 license = licenses.mit; 45 - maintainers = with maintainers; [ SuperSandro2000 zowoq ]; 47 + maintainers = with maintainers; [ SuperSandro2000 zowoq ma27 ]; 46 48 mainProgram = "interactive-rebase-tool"; 47 49 }; 48 50 }