aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRob Savoye <rob.savoye@linaro.org>2015-07-28 17:26:47 -0600
committerRyan Arnold <ryan.arnold@linaro.org>2015-08-05 20:35:13 +0000
commita8d78b4667d5fa0ffbcc2c2dba622aacefd5378b (patch)
tree4832c2e904135778386ac180f2dcd790e51a898f /testsuite
parent334f8f655dd541d7e465561e9ae7cd002041a634 (diff)
Improve create_release_tag() to handle source tarballs correctly.
Change-Id: Ib992a4e8181d017d2c94c0f08b967d92fad56fb2
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/test.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/testsuite/test.sh b/testsuite/test.sh
index a0a5f668..96419046 100755
--- a/testsuite/test.sh
+++ b/testsuite/test.sh
@@ -1462,6 +1462,46 @@ else
fixme "create_release_tag returned ${out}"
fi
+testing="create_release_tag: snapshot tarball"
+in="gcc-linaro-snapshot-5.1-2015.06-1.tar.xz"
+out="`create_release_tag ${in} | grep -v TRACE`"
+toolname="`echo ${out} | cut -d ' ' -f 1`"
+branch="`echo ${out} | cut -d ' ' -f 2`"
+revision="`echo ${out} | cut -d ' ' -f 3`"
+if test x"${out}" = x"gcc-linaro-snapshot-${date}"; then
+ pass "${testing}"
+else
+ fail "${testing}"
+ fixme "create_release_tag returned ${out}"
+fi
+
+export release="2015.06-1"
+testing="create_release_tag: snapshot tarball with release"
+in="gcc-linaro-snapshot-5.1-2015.06-1.tar.xz"
+out="`create_release_tag ${in} | grep -v TRACE`"
+toolname="`echo ${out} | cut -d ' ' -f 1`"
+branch="`echo ${out} | cut -d ' ' -f 2`"
+revision="`echo ${out} | cut -d ' ' -f 3`"
+if test x"${out}" = x"gcc-linaro-snapshot-5.1-2015.06-1"; then
+ pass "${testing}"
+else
+ fail "${testing}"
+ fixme "create_release_tag returned ${out}"
+fi
+
+branch=
+revision=
+testing="create_release_tag: repository branch empty with release"
+in="gcc.git"
+out="`create_release_tag ${in} | grep -v TRACE`"
+if test "`echo ${out} | grep -c "gcc-linaro-5-2015.06-1"`" -gt 0; then
+ pass "${testing}"
+else
+ fail "${testing}"
+ fixme "create_release_tag returned ${out}"
+fi
+
+release=
branch=
revision=
testing="create_release_tag: repository branch empty"
@@ -1474,6 +1514,7 @@ else
fixme "create_release_tag returned ${out}"
fi
+release=
testing="create_release_tag: tarball"
in="gcc-linaro-4.8-2013.09.tar.xz"
out="`create_release_tag ${in} | grep -v TRACE`"