summaryrefslogtreecommitdiff
path: root/third_party/gsm/tst/run
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-07 12:29:46 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-07 12:29:46 +0000
commit3ade1510e72926d02d7c7d4416257449bc0cd3f3 (patch)
treec51d4960cac0fcd8bf3483a8e77444ac5f9a3177 /third_party/gsm/tst/run
parentbfd3f58f5b715238fe618d053ddf908a34f1e56c (diff)
Split speex, portaudio, and gsm into third_party directory
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1168 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/gsm/tst/run')
-rw-r--r--third_party/gsm/tst/run34
1 files changed, 34 insertions, 0 deletions
diff --git a/third_party/gsm/tst/run b/third_party/gsm/tst/run
new file mode 100644
index 00000000..5eec3b2f
--- /dev/null
+++ b/third_party/gsm/tst/run
@@ -0,0 +1,34 @@
+:
+#
+# Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
+# Universitaet Berlin. See the accompanying file "COPYRIGHT" for
+# details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
+#
+if [ ! -f 1.inp ] ; then
+ echo Sorry, but we cannot provide the test data with this release.
+ exit
+fi
+
+echo -n 'Linear to code: '
+for i in 1 2 3 4
+do
+ echo -n $i..
+ ./lin2cod < $i.inp | cmp - $i.cod
+done
+echo ""
+
+echo -n 'Code to linear: '
+for i in 1 2 3 4
+do
+ echo -n $i..
+ ./cod2lin < $i.cod | cmp - $i.out
+done
+echo ""
+
+echo -n 'Toast: '
+for i in 1 2 3 4
+do
+ echo -n $i..
+ ../bin/toast -l < $i.inp | ../bin/toast -dl | cmp - $i.out
+done
+echo ""