mirror of
https://github.com/sebastianbergmann/docker-amiga-gcc.git
synced 2026-05-04 03:05:14 +00:00
Compile test binary in /tmp (due to possible volume relabeling issues)
This commit is contained in:
11
build.xml
11
build.xml
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user