summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2019-11-30 10:48:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-06 14:41:28 +0000
commit4e166a5a1ff212b182a4212ffb01b3a97fdfa809 (patch)
tree0026ebaef2cbcf96dd45eff1107f2d2ee7f8ddc1 /meta
parent098ef4f019f8fdaba9da08119eddbb12f6cc9b6a (diff)
downloadpoky-4e166a5a1ff212b182a4212ffb01b3a97fdfa809.tar.gz
gcc-cross.inc: Remove test runner script generation
Remove the generation of the testgcc script which could be used to run the gcc test suite against a cross compiler with a remote execution target. The same functionality can now be achieved with the 'do_check' task of gcc-runtime or with oe-selftest (for automation of execution against qemu-user/qemu-system targets). (From OE-Core rev: 1a6801c4d0850e9f1b6d993f1d6a2492f5bbea85) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc90
1 files changed, 0 insertions, 90 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index 6784d9673f..c68cdd5dc4 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -77,96 +77,6 @@ do_compile () {
77 77
78 oe_runmake all-host configure-target-libgcc 78 oe_runmake all-host configure-target-libgcc
79 (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) 79 (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h)
80 # now generate script to drive testing
81 echo "#!/usr/bin/env sh" >${B}/${TARGET_PREFIX}testgcc
82 set >> ${B}/${TARGET_PREFIX}testgcc
83 # prune out the unneeded vars
84 sed -i -e "/^BASH/d" ${B}/${TARGET_PREFIX}testgcc
85 sed -i -e "/^USER/d" ${B}/${TARGET_PREFIX}testgcc
86 sed -i -e "/^OPT/d" ${B}/${TARGET_PREFIX}testgcc
87 sed -i -e "/^DIRSTACK/d" ${B}/${TARGET_PREFIX}testgcc
88 sed -i -e "/^EUID/d" ${B}/${TARGET_PREFIX}testgcc
89 sed -i -e "/^FUNCNAME/d" ${B}/${TARGET_PREFIX}testgcc
90 sed -i -e "/^GROUPS/d" ${B}/${TARGET_PREFIX}testgcc
91 sed -i -e "/^HOST/d" ${B}/${TARGET_PREFIX}testgcc
92 sed -i -e "/^HOME/d" ${B}/${TARGET_PREFIX}testgcc
93 sed -i -e "/^IFS/d" ${B}/${TARGET_PREFIX}testgcc
94 sed -i -e "/^LC_ALL/d" ${B}/${TARGET_PREFIX}testgcc
95 sed -i -e "/^LOGNAME/d" ${B}/${TARGET_PREFIX}testgcc
96 sed -i -e "/^MACHTYPE/d" ${B}/${TARGET_PREFIX}testgcc
97 sed -i -e "/^OSTYPE/d" ${B}/${TARGET_PREFIX}testgcc
98 sed -i -e "/^PIPE/d" ${B}/${TARGET_PREFIX}testgcc
99 sed -i -e "/^SHELL/d" ${B}/${TARGET_PREFIX}testgcc
100 sed -i -e "/^'/d" ${B}/${TARGET_PREFIX}testgcc
101 sed -i -e "/^UID/d" ${B}/${TARGET_PREFIX}testgcc
102 sed -i -e "/^TERM/d" ${B}/${TARGET_PREFIX}testgcc
103 sed -i -e "/^PKG_/d" ${B}/${TARGET_PREFIX}testgcc
104 sed -i -e "/^POSIXLY_/d" ${B}/${TARGET_PREFIX}testgcc
105 sed -i -e "/^PPID/d" ${B}/${TARGET_PREFIX}testgcc
106 sed -i -e "/^PS4/d" ${B}/${TARGET_PREFIX}testgcc
107 sed -i -e "/^Q/d" ${B}/${TARGET_PREFIX}testgcc
108 sed -i -e "/^SHLVL/d" ${B}/${TARGET_PREFIX}testgcc
109 sed -i -e "/^STAGING/d" ${B}/${TARGET_PREFIX}testgcc
110 sed -i -e "/^LD_LIBRARY_PATH/d" ${B}/${TARGET_PREFIX}testgcc
111 sed -i -e "/^PSEUDO/d" ${B}/${TARGET_PREFIX}testgcc
112
113 # append execution part of the script
114cat >> ${B}/${TARGET_PREFIX}testgcc << STOP
115target="\$1"
116usage () {
117 echo "Usage:"
118 echo "\$0 user@target 'extra options to dejagnu'"
119 echo "\$0 target 'extra options to dejagnu'"
120 echo "\$0 target"
121 echo "e.g. \$0 192.168.7.2 ' dg.exp=visibility-d.c'"
122 echo "will only run visibility-d.c test case"
123 echo "e.g. \$0 192.168.7.2 '/-mthumb dg.exp=visibility-d.c'"
124 echo "will only run visibility-d.c test case in thumb mode"
125 echo "You need to have dejagnu autogen expect installed"
126 echo "on the build host"
127 }
128if [ "x\$target" = "x" ]
129then
130 echo "Please specify the target machine and remote user in form of user@target\n"
131 usage
132 exit 1;
133fi
134
135shift
136
137echo "\$target" | grep "@" 2>&1 > /dev/null
138if [ "x\$?" = "x0" ]
139then
140 user=\$(echo \$target | cut -d '@' -f 1)
141 target=\$(echo \$target | cut -d '@' -f 2)
142else
143 user=\$USER
144fi
145ssh \$user@\$target date 2>&1 > /dev/null
146if [ "x\$?" != "x0" ]
147then
148 echo "Failed connecting to \$user@\$target it could be because"
149 echo "you don't have passwordless ssh setup to access \$target"
150 echo "or sometimes host key has been changed"
151 echo "in such case do something like below on build host"
152 echo "ssh-keygen -f "~/.ssh/known_hosts" -R \$target"
153 echo "and then try ssh \$user@\$target"
154
155 usage
156 exit 1
157fi
158 echo "lappend boards_dir [pwd]/../../.." > ${B}/site.exp
159 echo "load_generic_config \"unix\"" > ${B}/${PACKAGE_ARCH}.exp
160 echo "set_board_info username \$user" >> ${B}/${PACKAGE_ARCH}.exp
161 echo "set_board_info rsh_prog ssh" >> ${B}/${PACKAGE_ARCH}.exp
162 echo "set_board_info rcp_prog scp" >> ${B}/${PACKAGE_ARCH}.exp
163 echo "set_board_info hostname \$target" >> ${B}/${PACKAGE_ARCH}.exp
164 DEJAGNU=${B}/site.exp make -k check RUNTESTFLAGS="--target_board=${PACKAGE_ARCH}\$@"
165
166STOP
167
168 chmod +x ${B}/${TARGET_PREFIX}testgcc
169
170} 80}
171 81
172INHIBIT_PACKAGE_STRIP = "1" 82INHIBIT_PACKAGE_STRIP = "1"