diff mbox

[Cbuildv2/get_source,16/17] testsuite/test.sh: Add get_URL test for <repo>.git@revision.

Message ID 1382129579-5777-17-git-send-email-ryan.arnold@linaro.org
State New
Headers show

Commit Message

Ryan S. Arnold Oct. 18, 2013, 8:52 p.m. UTC
From: "Ryan S. Arnold" <ryan.arnold@linaro.org>

---
 testsuite/test.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox

Patch

diff --git a/testsuite/test.sh b/testsuite/test.sh
index 2cd79d5..25709eb 100755
--- a/testsuite/test.sh
+++ b/testsuite/test.sh
@@ -250,6 +250,20 @@  else
     fixme "get_URL returned ${out}"
 fi
 
+out="`get_URL gcc.git@12345`"
+if test x"`echo ${out} | cut -d ' ' -f 1`" = x"git://git.linaro.org/toolchain/gcc.git"; then
+    pass "get_URL: match URL for URL.git@revision"
+else
+    fail "get_URL: match URL for URL.git@revision"
+    fixme "get_URL returned ${out}"
+fi
+if test x"`echo ${out} | cut -d ' ' -f 2`" = x"12345"; then
+    pass "get_URL: match revision for URL.git@revision"
+else
+    fail "get_URL: match revision for URL.git@revision"
+    fixme "get_URL returned ${out}"
+fi
+
 out="`get_URL gcc.git/linaro-4.8-branch@12345`"
 if test x"`echo ${out} | cut -d ' ' -f 1`" = x"git://git.linaro.org/toolchain/gcc.git"; then
     pass "get_URL: git URL in latest field"