[go: up one dir, main page]

File: testbatch.sh

package info (click to toggle)
ucto 0.35-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,192 kB
  • sloc: cpp: 5,235; xml: 1,226; sh: 409; python: 151; makefile: 44
file content (43 lines) | stat: -rwxr-xr-x 1,294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#/bin/sh

\rm -rf batch_out*
\rm -rf uit*

echo "Start"
$exe -L nld -B folia1.xml test.nl.txt >& uit1
cat < uit1

echo "Step 1"
$exe -L nld -B folia1.xml test.nl.txt folia7.xml -O batch_out1
$folialint --nooutput batch_out1/folia1.ucto.xml 2>&1
cat < batch_out1/test.nl.ucto.txt
$folialint --nooutput batch_out1/folia7.ucto.xml 2>&1

echo "Step 2"
$exe -L fra -B -X test.fr.txt multilang.txt -O batch_out2
$folialint --nooutput batch_out2/test.fr.txt.ucto.xml 2>&1
$folialint --nooutput batch_out2/multilang.txt.ucto.xml 2>&1

echo "Step 3"
$exe -L nld -I batch_in -O batch_out folia1.xml >& uit2
cat < uit2
$exe -L nld -B -I batch_in -O batch_out folia1.xml >& uit3
cat < uit3
$exe -L nld -B -I batch_in -O batch_in >& uit4
cat < uit4
$exe -L fra -B -F -X test.fr.txt multilang.txt -O batch_out5 >&uit5
cat < uit5

echo "Step 4"
$exe -L nld -B -I batch_in -O batch_out3
$folialint --nooutput batch_out3/folia4.ucto.xml 2>&1
cat < batch_out3/testpunctuation.ucto.txt
$folialint --nooutput batch_out3/folia8.ucto.xml 2>&1

echo "Step 5"
$exe -L nld -B -F -I batch_in -O batch_out4 # force only .xml input
$folialint --nooutput batch_out4/folia4.ucto.xml 2>&1
cat < batch_out/testpunctuation.ucto.txt 2>&1 # must not be present!
$folialint --nooutput batch_out4/folia8.ucto.xml 2>&1

echo "Done"