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:
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
/test/hello
|
|
||||||
|
|
||||||
11
build.xml
11
build.xml
@ -15,13 +15,14 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="test">
|
<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">
|
<exec executable="${docker-command}" taskname="test-compile">
|
||||||
<arg value="run"/>
|
<arg value="run"/>
|
||||||
<arg value="--rm"/>
|
<arg value="--rm"/>
|
||||||
<arg value="--volume"/>
|
<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="sebastianbergmann/amiga-gcc:latest"/>
|
||||||
<arg value="m68k-amigaos-gcc"/>
|
<arg value="m68k-amigaos-gcc"/>
|
||||||
<arg value="/host/hello.c"/>
|
<arg value="/host/hello.c"/>
|
||||||
@ -34,12 +35,14 @@
|
|||||||
<arg value="run"/>
|
<arg value="run"/>
|
||||||
<arg value="--rm"/>
|
<arg value="--rm"/>
|
||||||
<arg value="--volume"/>
|
<arg value="--volume"/>
|
||||||
<arg value="${basedir}/test:/host"/>
|
<arg value="/tmp/docker-amiga-gcc-test:/host:Z"/>
|
||||||
<arg value="sebastianbergmann/amitools:latest"/>
|
<arg value="sebastianbergmann/amitools:latest"/>
|
||||||
<arg value="vamos"/>
|
<arg value="vamos"/>
|
||||||
<arg value="/host/hello"/>
|
<arg value="/host/hello"/>
|
||||||
</exec>
|
</exec>
|
||||||
|
|
||||||
|
<delete dir="/tmp/docker-amiga-gcc-test"/>
|
||||||
|
|
||||||
<fail message="hello.c could not be compiled and executed">
|
<fail message="hello.c could not be compiled and executed">
|
||||||
<condition>
|
<condition>
|
||||||
<not>
|
<not>
|
||||||
@ -47,8 +50,6 @@
|
|||||||
</not>
|
</not>
|
||||||
</condition>
|
</condition>
|
||||||
</fail>
|
</fail>
|
||||||
|
|
||||||
<delete file="${basedir}/test/hello"/>
|
|
||||||
</target>
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user