mirror of
https://github.com/hectorm/docker-qemu-reactos
synced 2025-01-09 02:27:13 +00:00
Improved integration test
This commit is contained in:
parent
ac92f70438
commit
92a0f8589a
@ -140,11 +140,13 @@ ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/container-init"]
|
|||||||
|
|
||||||
FROM base AS test
|
FROM base AS test
|
||||||
|
|
||||||
RUN container-init & \
|
RUN if [ "$(uname -m)" = 'x86_64' ]; then \
|
||||||
printf '%s\n' \
|
container-init & \
|
||||||
'systeminfo' \
|
printf '%s\n' 'The quick brown fox jumps over the lazy dog' > /mnt/in || exit 1; \
|
||||||
'smbclient -c "ls;quit" //10.0.2.254/share noop' \
|
printf '%s\n' '@echo off & smbclient -c "get /in C:/local; quit" //10.0.2.254/share noop & exit' | timeout 900 vmshell || exit 1; \
|
||||||
'exit' | timeout 900 vmshell || exit 1
|
printf '%s\n' '@echo off & smbclient -c "put C:/local /out; quit" //10.0.2.254/share noop & exit' | timeout 120 vmshell || exit 1; \
|
||||||
|
cmp -s /mnt/in /mnt/out || exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
## "main" stage
|
## "main" stage
|
||||||
|
Loading…
Reference in New Issue
Block a user