mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
aa70c7f64e
* Add buildifier targets. The tool allows to check and format BUILD files in the repo. To check if files are well formatted, run: bazel run //:buildifier To fix badly-formatted files run: bazel run //:buildifier-fix * Cleanup dade-copyright-headers formatting. * Fix dade-copyright-headers on files with just the copyright. * Run buildifier automatically on CI via 'fmt.sh'. * Reformat all BUILD files with buildifier. Excludes autogenerated Bazel files.
56 lines
1.7 KiB
Python
56 lines
1.7 KiB
Python
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load(
|
|
"//bazel_tools:scala.bzl",
|
|
"da_scala_library",
|
|
"da_scala_test",
|
|
"lf_scalacopts",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "testing-tools",
|
|
srcs = glob(["src/main/**/*.scala"]),
|
|
scalacopts = lf_scalacopts,
|
|
tags = ["maven_coordinates=com.digitalasset:daml-lf-engine-testing-tools:__VERSION__"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//3rdparty/jvm/com/google/protobuf:protobuf_java",
|
|
"//3rdparty/jvm/org/scalaz:scalaz_core",
|
|
"//daml-lf/archive:daml_lf_archive_scala",
|
|
"//daml-lf/archive:daml_lf_java_proto",
|
|
"//daml-lf/data",
|
|
"//daml-lf/engine",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/lfpackage",
|
|
"//daml-lf/scenario-interpreter",
|
|
"//daml-lf/transaction",
|
|
],
|
|
)
|
|
|
|
da_scala_test(
|
|
name = "engine-scenario-test",
|
|
size = "large",
|
|
timeout = "long",
|
|
srcs = glob(["src/test/**/*.scala"]),
|
|
resources = [
|
|
"//daml-foundations/daml-ghc/package-database/deprecated:daml-prim-1.3.dalf",
|
|
"//daml-lf/tests:AuthorizedDivulgence.dalf",
|
|
"//daml-lf/tests:BasicTests.dalf",
|
|
"//daml-lf/tests:DontDiscloseNonConsumingChoicesToObservers.dalf",
|
|
"//daml-lf/tests:LargeTransaction.dalf",
|
|
],
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":testing-tools",
|
|
"//3rdparty/jvm/org/scalaz:scalaz_core",
|
|
"//daml-lf/archive:daml_lf_archive_scala",
|
|
"//daml-lf/archive:daml_lf_java_proto",
|
|
"//daml-lf/data",
|
|
"//daml-lf/engine",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/lfpackage",
|
|
"//daml-lf/transaction",
|
|
],
|
|
)
|