daml/libs-haskell/test-utils/BUILD.bazel
Samuel Williams 3121c95754
Move tests from sandbox to canton (#16640)
* Implement FreePort for Linux

* Refactor FreePort a little, add withCantonSandbox, convert tests

* Implement dynamic port range for windows

* Import readProcess

* Log macOS info

* Switch to locateRunfiles

* Add sysctl for macos

* Bracket correctly

* Change dir to mainworkspace

* Implement MacOS dynamic port range

* Improve regex matches
2023-04-05 15:28:43 +01:00

45 lines
1.0 KiB
Python

# Copyright (c) 2023 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load(
"//bazel_tools:haskell.bzl",
"da_haskell_library",
)
da_haskell_library(
name = "test-utils",
srcs = glob(["DA/Test/**/*.hs"]),
hackage_deps = [
"aeson",
"base",
"bytestring",
"containers",
"directory",
"extra",
"filelock",
"filepath",
"jwt",
"network",
"process",
"QuickCheck",
"regex-tdfa",
"safe",
"safe-exceptions",
"tasty",
"tasty-hunit",
"text",
"unliftio",
"unliftio-core",
"unordered-containers",
"vector",
],
visibility = ["//visibility:public"],
deps = [
"//daml-assistant/daml-helper:daml-helper-lib",
"//language-support/hs/bindings:hs-ledger",
"//libs-haskell/bazel-runfiles",
"//libs-haskell/da-hs-base",
"@rules_haskell//tools/runfiles",
],
)