Skip to content

Commit

Permalink
atd*.2.1.0: restrict tests to their package
Browse files Browse the repository at this point in the history
  • Loading branch information
pirbo committed Feb 24, 2020
1 parent cc97f2b commit 003641f
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/atdgen-codec-runtime/atdgen-codec-runtime.2.1.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ depends: [
"dune" {>= "1.11"}
"ocaml" {>= "4.02"}
]
patches: ["restrict-tests.diff"]
build: [
["dune" "subst"] {pinned}
[
Expand All @@ -42,6 +43,9 @@ build: [
]
]
dev-repo: "git+https://github.com/ahrefs/atd.git"
extra-files: [
[ "restrict-tests.diff" "sha256=f1d4635c02155ac8eac7444b92a70a6b04195afdd6c13ddfccaac82c26aac8d5"]
]
url {
src: "https://github.com/ahrefs/atd/releases/download/2.1.0/atd-2.1.0.tbz"
checksum: [
Expand Down
4 changes: 4 additions & 0 deletions packages/atdgen-runtime/atdgen-runtime.2.1.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ depends: [
"biniou" {>= "1.0.6"}
"re"
]
patches: ["restrict-tests.diff"]
build: [
["dune" "subst"] {pinned}
[
Expand All @@ -45,6 +46,9 @@ build: [
]
]
dev-repo: "git+https://github.com/ahrefs/atd.git"
extra-files: [
[ "restrict-tests.diff" "sha256=f1d4635c02155ac8eac7444b92a70a6b04195afdd6c13ddfccaac82c26aac8d5"]
]
url {
src: "https://github.com/ahrefs/atd/releases/download/2.1.0/atd-2.1.0.tbz"
checksum: [
Expand Down
41 changes: 41 additions & 0 deletions packages/atdgen/atdgen.2.1.0/files/restrict-tests.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
diff -u -r atd-2.1.0/atdgen/test/bucklescript/dune fixed-atd-2.1.0/atdgen/test/bucklescript/dune
--- atd-2.1.0/atdgen/test/bucklescript/dune 2019-12-04 07:48:48.000000000 +0100
+++ fixed-atd-2.1.0/atdgen/test/bucklescript/dune 2020-02-24 16:01:40.682693115 +0100
@@ -32,16 +32,20 @@

(alias
(name runtest)
+ (package atdgen)
(action (diff bucklespec_bs.expected.ml bucklespec_bs.ml)))

(alias
(name runtest)
+ (package atdgen)
(action (diff bucklespec_bs.expected.mli bucklespec_bs.mli)))

(alias
(name runtest)
+ (package atdgen)
(action (diff bucklespec_j.expected.ml bucklespec_j.ml)))

(alias
(name runtest)
+ (package atdgen)
(action (run ./bucklespec_roundtrip.exe)))
diff -u -r atd-2.1.0/atdgen/test/spec_js/dune fixed-atd-2.1.0/atdgen/test/spec_js/dune
--- atd-2.1.0/atdgen/test/spec_js/dune 2019-12-04 07:48:48.000000000 +0100
+++ fixed-atd-2.1.0/atdgen/test/spec_js/dune 2020-02-24 15:16:05.827796462 +0100
@@ -34,6 +34,7 @@

(alias
(name runtest)
+ (package atdgen)
(action (diff spec_j.expected.json spec_j.json)))

(rule
@@ -42,4 +43,5 @@

(alias
(name runtest)
+ (package atdgen)
(action (diff spec_bs.expected.json spec_bs.json)))
4 changes: 4 additions & 0 deletions packages/atdgen/atdgen.2.1.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ depends: [
"yojson" {>= "1.7.0"}
"atdgen-codec-runtime" {with-test}
]
patches: ["restrict-tests.diff"]
build: [
["dune" "subst"] {pinned}
[
Expand All @@ -55,6 +56,9 @@ build: [
]
]
dev-repo: "git+https://github.com/ahrefs/atd.git"
extra-files: [
[ "restrict-tests.diff" "sha256=f1d4635c02155ac8eac7444b92a70a6b04195afdd6c13ddfccaac82c26aac8d5"]
]
url {
src: "https://github.com/ahrefs/atd/releases/download/2.1.0/atd-2.1.0.tbz"
checksum: [
Expand Down
1 change: 1 addition & 0 deletions packages/atds/atds.2.1.0/files/restrict-tests.diff
4 changes: 4 additions & 0 deletions packages/atds/atds.2.1.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ depends: [
"atd" {>= "2.0.0"}
"re"
]
patches: ["restrict-tests.diff"]
build: [
["dune" "subst"] {pinned}
[
Expand All @@ -42,6 +43,9 @@ build: [
]
]
dev-repo: "git+https://github.com/ahrefs/atd.git"
extra-files: [
[ "restrict-tests.diff" "sha256=f1d4635c02155ac8eac7444b92a70a6b04195afdd6c13ddfccaac82c26aac8d5"]
]
url {
src: "https://github.com/ahrefs/atd/releases/download/2.1.0/atd-2.1.0.tbz"
checksum: [
Expand Down

0 comments on commit 003641f

Please sign in to comment.