aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/testdata
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2015-07-16 13:23:01 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-07-17 13:17:26 +0000
commitdeb003fae0e0da7d45156f5ea0b36900aa9e5790 (patch)
tree4989137a972c6e6e19f4fcb8cebf6085d0745513 /src/test/shell/bazel/testdata
parent768b5ccdfad99e3ead5bd8c1c861b3f52506f748 (diff)
Add git_repository and new_git_repository workspace rules.
TESTED=Added integration tests. -- MOS_MIGRATED_REVID=98396197
Diffstat (limited to 'src/test/shell/bazel/testdata')
-rw-r--r--src/test/shell/bazel/testdata/BUILD9
-rw-r--r--src/test/shell/bazel/testdata/outer-planets-repo.tar.gzbin0 -> 10744 bytes
-rw-r--r--src/test/shell/bazel/testdata/outer-planets.git_log36
-rw-r--r--src/test/shell/bazel/testdata/pluto-repo.tar.gzbin0 -> 8340 bytes
-rw-r--r--src/test/shell/bazel/testdata/pluto.git_log41
5 files changed, 86 insertions, 0 deletions
diff --git a/src/test/shell/bazel/testdata/BUILD b/src/test/shell/bazel/testdata/BUILD
new file mode 100644
index 0000000000..291d17a1a5
--- /dev/null
+++ b/src/test/shell/bazel/testdata/BUILD
@@ -0,0 +1,9 @@
+filegroup(
+ name = "git-repos",
+ testonly = 1,
+ srcs = [
+ "outer-planets-repo.tar.gz",
+ "pluto-repo.tar.gz",
+ ],
+ visibility = ["//src/test/shell/bazel:__pkg__"],
+)
diff --git a/src/test/shell/bazel/testdata/outer-planets-repo.tar.gz b/src/test/shell/bazel/testdata/outer-planets-repo.tar.gz
new file mode 100644
index 0000000000..254a63877f
--- /dev/null
+++ b/src/test/shell/bazel/testdata/outer-planets-repo.tar.gz
Binary files differ
diff --git a/src/test/shell/bazel/testdata/outer-planets.git_log b/src/test/shell/bazel/testdata/outer-planets.git_log
new file mode 100644
index 0000000000..fc26500343
--- /dev/null
+++ b/src/test/shell/bazel/testdata/outer-planets.git_log
@@ -0,0 +1,36 @@
+commit c6ffd1361759036836186f06078af8ebc297bf39 (HEAD -> master, tag: 1-submodule)
+Author: John Doe <john@foo.com>
+Date: Thu Jul 16 04:53:18 2015 -0700
+
+ Add pluto submodule.
+
+diff --git a/.gitmodules b/.gitmodules
+new file mode 100644
+index 0000000..1d2f9b1
+--- /dev/null
++++ b/.gitmodules
+@@ -0,0 +1,3 @@
++[submodule "pluto"]
++ path = pluto
++ url = ../pluto
+diff --git a/pluto b/pluto
+new file mode 160000
+index 0000000..36db6be
+--- /dev/null
++++ b/pluto
+@@ -0,0 +1 @@
++Subproject commit 36db6be50fd9f33cf89fc5b8206f2e3714b520e3
+
+commit eaf1b34982ead69228b6f3f894a0a34c59c07f17 (tag: 0-initial)
+Author: John Doe <john@foo.com>
+Date: Thu Jul 16 04:52:23 2015 -0700
+
+ Initial commit.
+
+diff --git a/neptune/info b/neptune/info
+new file mode 100644
+index 0000000..41cf7b5
+--- /dev/null
++++ b/neptune/info
+@@ -0,0 +1 @@
++Neptune is a planet
diff --git a/src/test/shell/bazel/testdata/pluto-repo.tar.gz b/src/test/shell/bazel/testdata/pluto-repo.tar.gz
new file mode 100644
index 0000000000..a347a37312
--- /dev/null
+++ b/src/test/shell/bazel/testdata/pluto-repo.tar.gz
Binary files differ
diff --git a/src/test/shell/bazel/testdata/pluto.git_log b/src/test/shell/bazel/testdata/pluto.git_log
new file mode 100644
index 0000000000..fb98d77cb0
--- /dev/null
+++ b/src/test/shell/bazel/testdata/pluto.git_log
@@ -0,0 +1,41 @@
+commit b87de9346bb1a4a3d4d2ab1a567b07c5d11a486a (HEAD -> master, tag: 1-build)
+Author: John Doe <john@foo.com>
+Date: Thu Jul 16 04:50:53 2015 -0700
+
+ Add WORKSPACE and BUILD file. Update info because Pluto is no longer a planet.
+
+diff --git a/BUILD b/BUILD
+new file mode 100644
+index 0000000..874e03f
+--- /dev/null
++++ b/BUILD
+@@ -0,0 +1,5 @@
++filegroup(
++ name = "pluto",
++ srcs = ["info"],
++ visibility = ["//visibility:public"],
++)
+diff --git a/WORKSPACE b/WORKSPACE
+new file mode 100644
+index 0000000..e69de29
+diff --git a/info b/info
+index 8f442be..36cbae4 100644
+--- a/info
++++ b/info
+@@ -1 +1 @@
+-Pluto is a planet
++Pluto is a dwarf planet
+
+commit 36db6be50fd9f33cf89fc5b8206f2e3714b520e3 (tag: 0-initial)
+Author: John Doe <john@foo.com>
+Date: Thu Jul 16 04:49:35 2015 -0700
+
+ Initial commit.
+
+diff --git a/info b/info
+new file mode 100644
+index 0000000..8f442be
+--- /dev/null
++++ b/info
+@@ -0,0 +1 @@
++Pluto is a planet