External commands: Add tests for #9402 #9403 #9404
commit7fb1ca65009a91daa27c67893959ee041233f3d9
authorMatthew Pickering <matthewtpickering@gmail.com>
Fri, 3 Nov 2023 14:56:34 +0000 (3 14:56 +0000)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Fri, 24 Nov 2023 15:22:48 +0000 (24 15:22 +0000)
tree3b16a5db3e716f9f2867feb8ac6863206a6c0f9c
parent6314590a69a8241254f3521eec24497bcae366ab
External commands: Add tests for #9402 #9403 #9404

This adds 4 tests which test the new external commands feature:

* ExternalCommand - Tests the expected usage of external command invoked
  via cabal-install
* ExternalCommandSetup - Tests that the ./Setup interface does not
  support external commands (#9403)
* ExternalCommandEnv - Tests that environment variables are set and
  preserved appropiately  (#9402)
* ExternalCommandHelp - Test that `cabal help <cmd>` is interpreted appropiately (#9404)
31 files changed:
cabal-testsuite/PackageTests/ExternalCommand/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommand/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommand/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommand/setup-test/AAAA.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommand/setup-test/CHANGELOG.md [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommand/setup-test/LICENSE [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommand/setup-test/setup-test.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandEnv/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandEnv/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandEnv/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandEnv/setup-test/AAAA.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandEnv/setup-test/CHANGELOG.md [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandEnv/setup-test/LICENSE [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandEnv/setup-test/setup-test.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandHelp/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandHelp/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandHelp/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandHelp/setup-test/AAAA.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandHelp/setup-test/CHANGELOG.md [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandHelp/setup-test/LICENSE [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandHelp/setup-test/setup-test.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/aaaa/LICENSE [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/aaaa/Main.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/aaaa/aaaa.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/custom/CHANGELOG.md [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/custom/LICENSE [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/custom/Setup.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/custom/custom.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/setup.cabal.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/ExternalCommandSetup/setup.out [new file with mode: 0644]
cabal-testsuite/src/Test/Cabal/Prelude.hs