Skip to content

Commit

Permalink
Merge branch '2i'
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfram Diestel committed Jun 19, 2023
2 parents ba33ce3 + 6241676 commit 8ef48f0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
# image tag {latest|stabila}
IMAGE_TAG: latest
IMAGE_TAG: 2i

# https://github.com/actions/create-release
# https://help.github.com/en/actions/reference/development-tools-for-github-actions
Expand Down
9 changes: 9 additions & 0 deletions akrido
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ n-r)
s-z)
. bin/xml_download.sh && bin/xml2txt.sh [s-z] && bin/analizu_revo_novajn.sh && bin/async.sh [s-z]
;;
test)
echo "ŝargas abel.xml kaj konvertas xml/abel.xml al txt/abel.txt per xml2txt.sh"
curl -q -o xml/abel.xml https://raw.githubusercontent.com/revuloj/revo-fonto/master/revo/abel.xml
bin/xml2txt.sh abel
echo "kontroli enhavon de txt/abel.txt"
wc txt/abel.txt
# la rezulto havu pli ol 20 liniojn da teksto
set -- $(wc -l txt/abel.txt) ; [[ "$1" -gt 20 ]]
;;
*)
echo "Sola argumento povas esti nur 'preparo', 'artikolojn', 'a-d', 'e-j', 'k-m', 'n-r' aŭ 's-z'."
;;
Expand Down
3 changes: 3 additions & 0 deletions tst/docker-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ echo ""; echo "Petante indeks-paĝon..."
curl -fsI "http://$HPORT/akrido/"

echo ""; echo "Kontrolante JSON (2 linioj kun 2 eraroj)..."
# do la du malsupraj tajperaroj estas intencaj!
curl -fs -X POST "http://$HPORT/analinioj" \
-H 'Content-Type: application/json' \
-d '{"1":"tiu ĉi linio enhvas unu eraron.","5":"tiu ĉi ankŭ unu eraron!","moduso":"kontrolendaj"}'
Expand All @@ -50,6 +51,8 @@ curl -fs -X POST "http://$HPORT/analizo" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "numero=12&formato=html&teksto=teksto+kun+eraaaro"

echo ""; echo ""; echo "Provu transformi abel.xml al abel.txt"
docker exec -w /home/akrido akrido-test bash -c './akrido preparo && ./akrido test'

echo ""; echo "Forigi..."
docker kill akrido-test

0 comments on commit 8ef48f0

Please sign in to comment.