Skip to content

Commit

Permalink
add additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caleblloyd committed Jul 18, 2017
1 parent f3f8784 commit c73a3cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions docker/fs-stage/usr/local/bin/fixuid-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ then
rc=1
fi

>&2 echo "test complete, RC=$rc"
exit $rc
19 changes: 12 additions & 7 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ docker run --rm -u 0:0 --entrypoint fixuid fixuid-centos fixuid-test.sh root roo
echo "\ndebian 0:0 entrypoint"
docker run --rm -u 0:0 --entrypoint fixuid fixuid-debian fixuid-test.sh root root


echo "\nalpine 0:1001 cmd"
docker run --rm -u 0:1001 fixuid-alpine fixuid-test.sh root docker
echo "\ncentos 0:1001 cmd"
Expand All @@ -78,9 +77,15 @@ docker run --rm -u 1001:0 --entrypoint fixuid fixuid-centos fixuid-test.sh docke
echo "\ndebian 1001:0 entrypoint"
docker run --rm -u 1001:0 --entrypoint fixuid fixuid-debian fixuid-test.sh docker root

echo "\nalpine run twice"
docker run --rm fixuid-alpine sh -c "fixuid && fixuid"
echo "\ncentos run twice"
docker run --rm fixuid-centos sh -c "fixuid && fixuid"
echo "\ndebian run twice"
docker run --rm fixuid-debian sh -c "fixuid && fixuid"
echo "\nalpine run twice cmd"
docker run --rm fixuid-alpine sh -c "fixuid-test.sh docker docker && fixuid fixuid-test.sh docker docker"
echo "\ncentos run twice cmd"
docker run --rm fixuid-centos sh -c "fixuid-test.sh docker docker && fixuid fixuid-test.sh docker docker"
echo "\ndebian run twice cmd"
docker run --rm fixuid-debian sh -c "fixuid-test.sh docker docker && fixuid fixuid-test.sh docker docker"
echo "\nalpine run twice entrypoint"
docker run --rm --entrypoint fixuid fixuid-alpine sh -c "fixuid-test.sh docker docker && fixuid fixuid-test.sh docker docker"
echo "\ncentos run twice entrypoint"
docker run --rm --entrypoint fixuid fixuid-centos sh -c "fixuid-test.sh docker docker && fixuid fixuid-test.sh docker docker"
echo "\ndebian run twice entrypoint"
docker run --rm --entrypoint fixuid fixuid-debian sh -c "fixuid-test.sh docker docker && fixuid fixuid-test.sh docker docker"

0 comments on commit c73a3cf

Please sign in to comment.