Fix generating the unit test wrappers when building with MingW32
For some reason the unit test symbols end up in the read-only data section when building on windows rather than the initialised data section so they have a different letter in the list generated by nm. They also begin with an underscore because windows likes to add underscores to symbols for some reason. This patch changes the regular expressions in the code to generate the wrapper list so that it accepts either way. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 8bbd4d49fcbaa2add5fb5d544f2c0a08e7658d36)
This commit is contained in:
parent
4d98bdd9e5
commit
9c2244396e
@ -21,7 +21,7 @@ stamp-test-unit: Makefile test-unit$(EXEEXT)
|
|||||||
@mkdir -p wrappers
|
@mkdir -p wrappers
|
||||||
source $(top_builddir)/cogl/libcogl.la ; \
|
source $(top_builddir)/cogl/libcogl.la ; \
|
||||||
$(NM) $(top_builddir)/cogl/.libs/"$$dlname"| \
|
$(NM) $(top_builddir)/cogl/.libs/"$$dlname"| \
|
||||||
grep 'D unit_test_'|sed 's/.\+ D //' > unit-tests
|
grep '[DR] _\?unit_test_'|sed 's/.\+ [DR] _\?//' > unit-tests
|
||||||
@chmod +x $(top_srcdir)/tests/test-launcher.sh
|
@chmod +x $(top_srcdir)/tests/test-launcher.sh
|
||||||
@( echo "/stamp-test-unit" ; \
|
@( echo "/stamp-test-unit" ; \
|
||||||
echo "/test-unit$(EXEEXT)" ; \
|
echo "/test-unit$(EXEEXT)" ; \
|
||||||
|
Loading…
Reference in New Issue
Block a user