1
0
mirror of https://github.com/sebastianbergmann/docker-amiga-gcc.git synced 2026-01-11 23:46:53 +00:00

Compile test binary in /tmp (due to possible volume relabeling issues)

This commit is contained in:
Sebastian Bergmann
2019-11-08 06:34:29 +01:00
parent 2e3004e9d3
commit ce917f0676
2 changed files with 6 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
/test/hello

View File

@ -15,13 +15,14 @@
</target>
<target name="test">
<mkdir dir="${basedir}/test"/>
<mkdir dir="/tmp/docker-amiga-gcc-test"/>
<copy file="${basedir}/test/hello.c" todir="/tmp/docker-amiga-gcc-test"/>
<exec executable="${docker-command}" taskname="test-compile">
<arg value="run"/>
<arg value="--rm"/>
<arg value="--volume"/>
<arg value="${basedir}/test:/host"/>
<arg value="/tmp/docker-amiga-gcc-test:/host:Z"/>
<arg value="sebastianbergmann/amiga-gcc:latest"/>
<arg value="m68k-amigaos-gcc"/>
<arg value="/host/hello.c"/>
@ -34,12 +35,14 @@
<arg value="run"/>
<arg value="--rm"/>
<arg value="--volume"/>
<arg value="${basedir}/test:/host"/>
<arg value="/tmp/docker-amiga-gcc-test:/host:Z"/>
<arg value="sebastianbergmann/amitools:latest"/>
<arg value="vamos"/>
<arg value="/host/hello"/>
</exec>
<delete dir="/tmp/docker-amiga-gcc-test"/>
<fail message="hello.c could not be compiled and executed">
<condition>
<not>
@ -47,8 +50,6 @@
</not>
</condition>
</fail>
<delete file="${basedir}/test/hello"/>
</target>
</project>