Add tests for the autoimport feature

This commit is contained in:
Martin Storsjö committed 2018-09-05 12:21:46 +03:00
1 parent 5f12b33177
commit 37f8ba8516
5 files changed
+103 -3

No files matched your search

+7 -1
View File
@@ -52,13 +52,19 @@ RUN ./build-mingw-w64-libraries.sh $TOOLCHAIN_PREFIX
# Build C test applications
ENV PATH=$TOOLCHAIN_PREFIX/bin:$PATH
COPY test/*.c ./test/
COPY test/*.c test/*.h ./test/
RUN cd test && \
for arch in $TOOLCHAIN_ARCHS; do \
mkdir -p $arch && \
for test in hello hello-tls crt-test setjmp; do \
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe || exit 1; \
done; \
for test in autoimport-lib; do \
$arch-w64-mingw32-clang $test.c -shared -o $arch/$test.dll -Wl,--out-implib,$arch/lib$test.dll.a || exit 1; \
done; \
for test in autoimport-main; do \
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -L$arch -l${test%-main}-lib || exit 1; \
done; \
done
# Build libunwind/libcxxabi/libcxx