Sign in
apache
/
joshua
/
6d5594d665af08dd0495878e5ab5ec6eac98182a
/
.
/
test
/
lattice-short
/
test.sh
blob: ecae1e249a438a5e381e8a6384ef2538a7616663 [
file
] [
log
] [
blame
]
#!/bin/sh
cat input
|
$JOSHUA
/
bin
/
joshua
-
decoder
-
m
500m
-
config joshua
.
config
2
>
log
|
sort
>
output
if
[[
$
?
-
ne
0
]];
then
exit
1
fi
diff
-
u output output
.
expected
>
diff
if
[[
$
?
-
eq
0
]];
then
rm
-
f output log diff
exit
0
else
exit
1
fi