xrefcheck/tests
Vladislav Zavialov 74f30358c8 [Chore] Update development setup
Problem:

1. Running `nix develop` in the project root does not provide a
   development environment of any sort, as evidenced by:
       ghc-pkg list
   printing only boot libraries.

2. Tests can fail with this error:
       xrefcheck-tests: Network.Socket.bind: resource busy (Address already in use)
   due to a potential conflict with an already running application.

Solution:

1. flake.nix: inherit devShells
2. tests: configurable mock server port

With these changes I've been able to build the project and run its tests
as follows:

    nix shell nixpkgs#haskellPackages.hpack nixpkgs#cabal-install
    nix develop -c $SHELL
    hpack
    vsftpd \
       -orun_as_launching_user=yes \
       -olisten_port=2221 \
       -olisten=yes \
       -oftp_username=$(whoami) \
       -oanon_root=./ftp-tests/ftp_root \
       -opasv_min_port=2222 \
       -ohide_file='{.*}' \
       -odeny_file='{.*}' \
       -oseccomp_sandbox=no \
       -olog_ftp_protocol=yes \
       -oxferlog_enable=yes \
       -ovsftpd_log_file=./ftp.log &
    cabal test ftp-tests --test-options="--ftp-host ftp://127.0.0.1:2221"
    cabal test xrefcheck-tests --test-options="--mock-server-port 3001"
2024-09-23 10:07:42 +02:00
..
configs [Chore] Simplify regexp usages 2022-12-30 17:12:16 +01:00
golden [Chore] Fix symlinks test on Windows Git Bash (#283) 2023-05-15 12:43:03 +02:00
markdowns [#169] Rename ignore file annotation to ignore all 2022-10-26 11:31:52 +03:00
Test/Xrefcheck [Chore] Update development setup 2024-09-23 10:07:42 +02:00
Main.hs [Chore] Update development setup 2024-09-23 10:07:42 +02:00
Tree.hs [#149] Replace hspec with tasty 2022-09-25 18:51:41 +03:00