aboutsummaryrefslogtreecommitdiff
path: root/testsuite/normalize-tests.sh
diff options
context:
space:
mode:
authorRyan S. Arnold <ryan.arnold@linaro.org>2013-12-10 16:08:17 -0600
committerRyan S. Arnold <ryan.arnold@linaro.org>2013-12-10 16:30:07 -0600
commite6e39f5d1f7963332b3d7dd2e4400de91847219c (patch)
tree38bb686b7d9f52968c21ab86a4ba765008c42d99 /testsuite/normalize-tests.sh
parentb6e9c6c7c850eff8f9d7894410a59bc340f847b1 (diff)
Correct get_toolname to work with unified repo: binutils-gdb.git
Secondary fixes required: * Set config/binutils.conf and config/gdb.conf to use unified repo binutils-gdb.git. * Re-enable binutils-gdb.git in config/sources.conf. * get_toolname now calls get_git_tool and determines the actual toolname for binutils and gdb from the branch name if the repository is unified. * Made all other usages of get_git_tool use get_toolname instead. * checkout() now uses ${repo} as returned from get_git_repo as the git repository instead of ${tool}.git. This allows a unified repository to only be checked out once. * The git parser now determines whether an http:// in a url means a git service or an svn service. * The git parser now returns branch names for launchpad urls with branches in the url. * The git parser now returns the tool name properly for an svn service. * The git parser testsuite now has testcases for all new additions. Also * Added --snapshots functionality to allow specifying an existing snapshots directory. * Add testcases to test.sh to test --snapshots functionality. * Changes test.sh --snapshots directive to --md5sums to avoid confusion with cbuild2.sh --snapshots. Change-Id: I2c279bd85320bd3d0b50ae262cc13255f45f8b14
Diffstat (limited to 'testsuite/normalize-tests.sh')
-rw-r--r--testsuite/normalize-tests.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/normalize-tests.sh b/testsuite/normalize-tests.sh
index 66065ae4..22167a1a 100644
--- a/testsuite/normalize-tests.sh
+++ b/testsuite/normalize-tests.sh
@@ -58,6 +58,17 @@ else
fixme "${in} returned ${out}"
fi
+testing="normalize_path: full git url with ~ branch"
+in="http://staging.git.linaro.org/git/toolchain/gcc.git/linaro-4.8-branch"
+out="`normalize_path ${in}`"
+if test x"${out}" = x"gcc.git~linaro-4.8-branch"; then
+ pass "${testing}"
+else
+ fail "${testing}"
+ fixme "${in} returned ${out}"
+fi
+
+
in="gdb-7.6~20121001+git3e2e76a.tar"
out="`normalize_path ${in}`"
if test x"${out}" = x"gdb-7.6~20121001@3e2e76a"; then
@@ -102,3 +113,15 @@ else
fail "normalize_path: bzr branch"
fixme "${in} returned ${out}"
fi
+
+in="binutils-gdb.git/gdb_7_6-branch"
+out="`normalize_path ${in}`"
+match="binutils-gdb.git~gdb_7_6-branch"
+if test x"${out}" = x"${match}"; then
+ pass "normalize_path: new binutils-gdb repository"
+else
+ fail "normalize_path: new binutils-gdb repository"
+ fixme "${in} returned ${out} but expected ${match}"
+fi
+
+