Skip to content

Commit

Permalink
xapi-sdk: add empty packge to be able to run tests for it
Browse files Browse the repository at this point in the history
The go sdk needs to tun tests, and opam needs these to be attached to a
package, so introduce xapi-sdk to do so

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
  • Loading branch information
psafont committed Jun 14, 2024
1 parent da3712b commit 736e420
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@
(name xml-light2)
)

(package
(name xapi-sdk)
(license "BSD-2-Clause")
(synopsis "Xen API SDK generation code")
(depends
(alcotest :with-test)
astring
mustache
(xapi-datamodel (= :version))
(xapi-stdext-unix (and (= :version) :with-test))
)
(allow_empty)
)
(package
(name xen-api-client-lwt)
)
Expand Down
1 change: 1 addition & 0 deletions ocaml/sdk-gen/go/dune
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

(test
(name test_gen_go)
(package xapi-sdk)
(modules test_gen_go)
(libraries alcotest xapi-test-utils gen_go_helper)
(deps
Expand Down
32 changes: 32 additions & 0 deletions xapi-sdk.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Xen API SDK generation code"
maintainer: ["Xapi project maintainers"]
authors: ["xen-api@lists.xen.org"]
license: "BSD-2-Clause"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "3.0"}
"alcotest" {with-test}
"astring"
"mustache"
"xapi-datamodel" {= version}
"xapi-stdext-unix" {= version & with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/xapi-project/xen-api.git"

0 comments on commit 736e420

Please sign in to comment.