Skip to content

Commit

Permalink
Drop cleans from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Jan 2, 2025
1 parent d2f965c commit a3c9758
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 75 deletions.
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/Target/cabal.all-benches.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/Target/cabal.all-exes.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/Target/cabal.all-tests.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:bench:a-bench
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:bench:a-bench
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:bench:a-bench
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:exe:a-exe
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:exe:a-exe
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:exe:a-exe
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:lib:a
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:lib:a
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:lib:a
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:test:a-test
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:test:a-test
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:test:a-test
7 changes: 0 additions & 7 deletions cabal-testsuite/PackageTests/Target/cabal.ctype-target.out
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:lib:a
- a:lib:a-sublib
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:exe:a-exe
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:test:a-test
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:bench:a-bench
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/Target/cabal.default-all.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/Target/cabal.everything.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/Target/cabal.explicit-all.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
5 changes: 0 additions & 5 deletions cabal-testsuite/PackageTests/Target/cabal.missing-target.out
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Error: [Cabal-7127]
Cannot target the executables in the package c-0.1 because it does not contain any executables. Check the .cabal file for the package and make sure that it properly declares the components that you expect.
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Error: [Cabal-7127]
Cannot target the test suites in the package c-0.1 because it does not contain any test suites. Check the .cabal file for the package and make sure that it properly declares the components that you expect.
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Error: [Cabal-7127]
Cannot target the benchmarks in the package c-0.1 because it does not contain any benchmarks. Check the .cabal file for the package and make sure that it properly declares the components that you expect.
2 changes: 0 additions & 2 deletions cabal-testsuite/PackageTests/Target/cabal.package-target.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand All @@ -7,7 +6,6 @@ Fully qualified target forms:
- a:exe:a-exe
- a:lib:a
- a:lib:a-sublib
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
2 changes: 0 additions & 2 deletions cabal-testsuite/PackageTests/Target/cabal.path-target.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand All @@ -7,7 +6,6 @@ Fully qualified target forms:
- a:exe:a-exe
- a:lib:a
- a:lib:a-sublib
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Expand Down
31 changes: 0 additions & 31 deletions cabal-testsuite/PackageTests/Target/cabal.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,95 +2,64 @@ import Test.Cabal.Prelude

main = do
cabalTest' "default-all" $ do
cabal "clean" []
cabal "v2-target" []

cabalTest' "explicit-all" $ do
cabal "clean" []
cabal "v2-target" ["all"]

cabalTest' "all-enable-tests" $ do
cabal "clean" []
cabal "v2-target" ["all", "--enable-tests"]

cabalTest' "all-enable-benches" $ do
cabal "clean" []
cabal "v2-target" ["all", "--enable-benchmarks"]

cabalTest' "everything" $ do
cabal "clean" []
cabal "v2-target" ["all", "--enable-tests", "--enable-benchmarks"]

cabalTest' "all-exes" $ do
cabal "clean" []
cabal "v2-target" ["all:exes"]

cabalTest' "all-tests" $ do
cabal "clean" []
cabal "v2-target" ["all:tests"]

cabalTest' "all-benches" $ do
cabal "clean" []
cabal "v2-target" ["all:benches"]

cabalTest' "package-target" $ do
cabal "clean" []
cabal "v2-target" ["a"]
cabal "clean" []
cabal "v2-target" ["a", "--enable-tests", "--enable-benchmarks"]

cabalTest' "path-target" $ do
cabal "clean" []
cabal "v2-target" ["dir-a/"]
cabal "clean" []
cabal "v2-target" ["dir-a/", "--enable-tests", "--enable-benchmarks"]

cabalTest' "component-target-lib" $ do
cabal "clean" []
cabal "v2-target" ["a:lib:a"]
cabal "clean" []
cabal "v2-target" ["lib:a"]
cabal "clean" []
cabal "v2-target" ["a:a"]

cabalTest' "component-target-exe" $ do
cabal "clean" []
cabal "v2-target" ["a:exe:a-exe"]
cabal "clean" []
cabal "v2-target" ["exe:a-exe"]
cabal "clean" []
cabal "v2-target" ["a:a-exe"]

cabalTest' "component-target-bench" $ do
cabal "clean" []
cabal "v2-target" ["a:bench:a-bench"]
cabal "clean" []
cabal "v2-target" ["bench:a-bench"]
cabal "clean" []
cabal "v2-target" ["a:a-bench"]

cabalTest' "component-target-test" $ do
cabal "clean" []
cabal "v2-target" ["a:test:a-test"]
cabal "clean" []
cabal "v2-target" ["test:a-test"]
cabal "clean" []
cabal "v2-target" ["a:a-test"]

cabalTest' "ctype-target" $ do
cabal "clean" []
cabal "v2-target" ["a:libs"]
cabal "clean" []
cabal "v2-target" ["a:exes"]
cabal "clean" []
cabal "v2-target" ["a:tests"]
cabal "clean" []
cabal "v2-target" ["a:benches"]

cabalTest' "missing-target" $ do
cabal "clean" []
fails $ cabal "v2-target" ["c:exes"]
cabal "clean" []
fails $ cabal "v2-target" ["c:tests"]
cabal "clean" []
fails $ cabal "v2-target" ["c:benches"]

0 comments on commit a3c9758

Please sign in to comment.