File: test-python.sh

package info (click to toggle)
hfst 3.16.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,532 kB
  • sloc: cpp: 101,875; sh: 6,717; python: 5,225; yacc: 4,985; lex: 2,900; makefile: 2,017; xml: 6
file content (36 lines) | stat: -rwxr-xr-x 982 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

export srcdir=`pwd`

for tool in calculate compare compose compose-intersect concatenate conjunct determinize \
	    disjunct format fst2strings fst2txt head invert minimize pmatch2fst pmatch \
	    project prune-alphabet push-weights regexp2fst remove-epsilons \
	    repeat reverse shuffle split strings2fst substitute subtract symbol-harmonization \
	    tail txt2fst;
do
    printf "%-25s" $tool"..."
    ./$tool-functionality.sh --python
    retval=$?
    if [ $retval -eq 0 ]; then
	printf '%s\n' 'pass'
    elif [ $retval -eq 77 ]; then
	printf '%s\n' 'skip'
    else
	printf '%s\n' 'fail'
    fi
done

# one problem with python: lexc-compiler: basic.lowercase-lexicon-end.lexc

# flookup: is this needed?
# lookup: HFST 4.0: rewrite lookup and path extraction...
# optimized-lookup: --""--
# proc
# reweight
# summarize
# tokenize-backtrack
# tokenize-flushing
# tokenize

# fst2fst-functionality doesn't exist
# lexc-compiler-flags not carried out even with c++