summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/haskell_test/BUILD.bazel
blob: eb00b2c3188129dab8aa463ee8a6f31df32bdb06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
load(
    "@io_tweag_rules_haskell//haskell:haskell.bzl",
    "haskell_library",
    "haskell_test",
)

package(default_testonly = 1)

haskell_library(
    name = "mylib",
    srcs = ["Lib.hs"],
    deps = ["//tests/hackage:base"],
)

haskell_test(
    name = "haskell_test",
    # Use some parameters that only test rules have.
    size = "small",
    timeout = "short",
    srcs = ["Test.hs"],
    flaky = False,
    main_function = "Test.test",
    visibility = ["//visibility:public"],
    deps = [
        ":mylib",
        "//tests/data:ourclibrary",
        "//tests/hackage:base",
    ],
)