Skip to content

Commit f7b747f

Browse files
committed
Add script to fetch testharness scripts from GCC
Signed-off-by: Jerry Zhang Jian <[email protected]>
1 parent feb1915 commit f7b747f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# make sure we have one argument which is the path of the GNU testsuite
2+
if [ $# -ne 1 ]; then
3+
echo "Usage: $0 <path-to-gnu-testsuite>"
4+
exit 1
5+
fi
6+
git archive --remote=git://gcc.gnu.org/git/gcc.git HEAD contrib/dg-extract-results.py | tar -x --strip-components=1
7+
git archive --remote=git://gcc.gnu.org/git/gcc.git HEAD gcc/testsuite/lib | tar -x --strip-components=2
8+
9+
# Move lib to testsuite/lib
10+
mv lib $1
11+
# Move dg-extract-results.py to testsuite
12+
mv dg-extract-results.py $1

0 commit comments

Comments
 (0)