From 9fdad770128f6f866da8f7bf5651c96a07fc3392 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Sat, 20 Jul 2024 04:41:03 -0700 Subject: [PATCH] ci: try removing tests from sandwich-contexts-minio as sandwich-discover is failing? --- sandwich-contexts-minio/package.yaml | 26 +++++++++++----------- sandwich-contexts-minio/test/Main.hs | 11 --------- sandwich-contexts-minio/test/Spec.hs | 25 --------------------- sandwich-contexts-minio/test/Spec/Basic.hs | 14 ------------ 4 files changed, 13 insertions(+), 63 deletions(-) delete mode 100644 sandwich-contexts-minio/test/Main.hs delete mode 100644 sandwich-contexts-minio/test/Spec.hs delete mode 100644 sandwich-contexts-minio/test/Spec/Basic.hs diff --git a/sandwich-contexts-minio/package.yaml b/sandwich-contexts-minio/package.yaml index 28a69de3..4d7e92b5 100644 --- a/sandwich-contexts-minio/package.yaml +++ b/sandwich-contexts-minio/package.yaml @@ -53,16 +53,16 @@ library: - text - unliftio-core -tests: - tests: - main: Main.hs - source-dirs: test - ghc-options: - - -Wall - - -rtsopts - - -threaded - dependencies: - - filepath - - relude - - sandwich-contexts - - string-interpolate +# tests: +# tests: +# main: Main.hs +# source-dirs: test +# ghc-options: +# - -Wall +# - -rtsopts +# - -threaded +# dependencies: +# - filepath +# - relude +# - sandwich-contexts +# - string-interpolate diff --git a/sandwich-contexts-minio/test/Main.hs b/sandwich-contexts-minio/test/Main.hs deleted file mode 100644 index 2116ead8..00000000 --- a/sandwich-contexts-minio/test/Main.hs +++ /dev/null @@ -1,11 +0,0 @@ - -module Main where - -import Relude -import qualified Spec -import Test.Sandwich - - -main :: IO () -main = runSandwichWithCommandLineArgs defaultOptions $ - Spec.tests diff --git a/sandwich-contexts-minio/test/Spec.hs b/sandwich-contexts-minio/test/Spec.hs deleted file mode 100644 index 3f0a44eb..00000000 --- a/sandwich-contexts-minio/test/Spec.hs +++ /dev/null @@ -1,25 +0,0 @@ -{-# OPTIONS_GHC -F -pgmF sandwich-discover #-} -{-# LANGUAGE CPP #-} -{-# LANGUAGE DataKinds #-} -{-# LANGUAGE TemplateHaskell #-} -{-# OPTIONS_GHC -fno-warn-type-defaults #-} - -module Spec where - -import Test.Sandwich - -#insert_test_imports - - -tests :: TopSpec -tests = $(getSpecFromFolder defaultGetSpecFromFolderOptions) - --- testsPooled :: PooledSpec --- testsPooled = $(getSpecFromFolder $ defaultGetSpecFromFolderOptions { --- getSpecCombiner = 'describeParallel --- , getSpecIndividualSpecHooks = 'poolify --- , getSpecWarnOnParseError = NoWarnOnParseError --- }) - --- main :: IO () --- main = pooledMain (return ()) testsPooled diff --git a/sandwich-contexts-minio/test/Spec/Basic.hs b/sandwich-contexts-minio/test/Spec/Basic.hs deleted file mode 100644 index 7fd9aeaa..00000000 --- a/sandwich-contexts-minio/test/Spec/Basic.hs +++ /dev/null @@ -1,14 +0,0 @@ -module Spec.Basic where - -import Data.String.Interpolate -import Relude -import System.FilePath -import Test.Sandwich -import Test.Sandwich.Contexts.Nix -import UnliftIO.Directory - - -tests :: TopSpec -tests = describe "Tests" $ do - it "should work" $ do - 2 `shouldBe` 2