From 016587ea33891059ff04d8c145e0b68379fd502a Mon Sep 17 00:00:00 2001
From: Josh Haberman <jhaberman@gmail.com>
Date: Tue, 7 Jul 2015 13:35:21 -0700
Subject: [PATCH] Moved lunit to third_party for Google compliance.

---
 Makefile                                              | 2 +-
 {tests/bindings/lua => third_party/lunit}/LICENSE     | 0
 third_party/lunit/README.google                       | 9 +++++++++
 {tests/bindings/lua => third_party}/lunit/console.lua | 0
 {tests/bindings/lua => third_party}/lunit/lunit.lua   | 0
 5 files changed, 10 insertions(+), 1 deletion(-)
 rename {tests/bindings/lua => third_party/lunit}/LICENSE (100%)
 create mode 100644 third_party/lunit/README.google
 rename {tests/bindings/lua => third_party}/lunit/console.lua (100%)
 rename {tests/bindings/lua => third_party}/lunit/lunit.lua (100%)

diff --git a/Makefile b/Makefile
index 08dd4a3850ab3..2d5c248c99805 100644
--- a/Makefile
+++ b/Makefile
@@ -445,7 +445,7 @@ testlua: lua
 	@set -e  # Abort on error.
 	@for test in $(LUATESTS) ; do \
 	  echo LUA $$test; \
-	  LUA_PATH="tests/bindings/lua/lunit/?.lua;upb/bindings/lua/?.lua" \
+	  LUA_PATH="third_party/lunit/?.lua;upb/bindings/lua/?.lua" \
 	    LUA_CPATH=upb/bindings/lua/?.so \
 	    lua $$test; \
 	done
diff --git a/tests/bindings/lua/LICENSE b/third_party/lunit/LICENSE
similarity index 100%
rename from tests/bindings/lua/LICENSE
rename to third_party/lunit/LICENSE
diff --git a/third_party/lunit/README.google b/third_party/lunit/README.google
new file mode 100644
index 0000000000000..af3e50e7396df
--- /dev/null
+++ b/third_party/lunit/README.google
@@ -0,0 +1,9 @@
+URL: https://github.com/dcurrie/lunit
+Version: 0.5
+License: MIT
+License File: LICENSE
+Description:
+A unit testing library for Lua.
+
+Local Modifications:
+Extracted the two file we actually need from the distribution.
diff --git a/tests/bindings/lua/lunit/console.lua b/third_party/lunit/console.lua
similarity index 100%
rename from tests/bindings/lua/lunit/console.lua
rename to third_party/lunit/console.lua
diff --git a/tests/bindings/lua/lunit/lunit.lua b/third_party/lunit/lunit.lua
similarity index 100%
rename from tests/bindings/lua/lunit/lunit.lua
rename to third_party/lunit/lunit.lua