-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+preparo de docker-test, antunit-test
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<project xmlns:au="antlib:org.apache.ant.antunit" default="go"> | ||
<!-- is called prior to the test | ||
<target name="setUp"> | ||
<property name="foo" value="foo"/> | ||
</target>--> | ||
|
||
<!-- is called after the test, even if that caused an error | ||
<target name="tearDown"> | ||
<delete file="${foo}" quiet="true"/> | ||
</target> --> | ||
|
||
<!-- the actual test case --> | ||
<target name="testTouchCreatesFile"> | ||
<au:assertFileDoesntExist file="${foo}"/> | ||
<touch file="${foo}"/> | ||
<au:assertFileExists file="${foo}"/> | ||
</target> | ||
|
||
<target name="go"> | ||
<au:antunit> | ||
<fileset dir="." includes="touch.xml"/> | ||
<au:plainlistener/> | ||
</au:antunit> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# tuj finu se unuopa komando fiaskas | ||
# - necesas por distingi sukcesan de malsukcesa testaro | ||
set -e | ||
|
||
docker_image="${1:-voko-formiko:latest}" | ||
|
||
# lanĉi la test-procezujon | ||
docker run --name formiko-test --rm -d ${docker_image} | ||
|
||
echo ""; echo "Ni petas helpon..." | ||
docker exec formiko-test formiko art-helpo | ||
|
||
echo ""; echo "Ni rigardas dosierujon..." | ||
docker exec formiko-test bash -c 'ls /apache-*' | ||
|
||
echo ""; echo "Ni rigardas ant-dosierujon..." | ||
docker exec formiko-test bash -c 'pwd && ls ./voko/ant' | ||
|
||
echo ""; echo "Ni lanĉas testaron..." | ||
docker exec formiko-test bash -c 'ant -f ./voko/ant/au-testoj.xml' | ||
|
||
echo ""; echo "Forigi..." | ||
docker kill formiko-test |