-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move test code into script of its own.
- Loading branch information
Showing
7 changed files
with
28 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -x | ||
|
||
TEST_CMD="${1:-"./test"}" | ||
MDIR="${2:-"`dirname ${0}`/.."}" | ||
TDDIR="${MDIR}/test_data" | ||
|
||
${TEST_CMD} ${TDDIR}/test.g722 test.raw.out | ||
${TEST_CMD} --sln16k ${TDDIR}/test.g722 test.raw.16k.out | ||
${TEST_CMD} --enc --sln16k --bend ${TDDIR}/pcminb.dat pcminb.g722.out | ||
${TEST_CMD} --sln16k --bend pcminb.g722.out pcminb.raw.16k.out | ||
${TEST_CMD} --enc test.raw.out test.g722.out | ||
${TEST_CMD} --sln16k ${TDDIR}/fullscale.g722 fullscale.raw.out | ||
sha256sum test.raw.out test.raw.16k.out pcminb.g722.out pcminb.raw.16k.out \ | ||
test.g722.out fullscale.raw.out | diff ${TDDIR}/test.checksum - |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
8eb29e8e9feb9709d96c7bbda37cbb2f77510fcfab2d1f48a495178cd2231253 test.raw | ||
a886f22d37ecd356e1963072bc481ed2c5dd12539428188d9779d33a520f3ff8 test.raw.16k | ||
15570a43acb0ff0f30aced265973eeb7733023be3697cdff0df36c41e88385c6 pcminb.g722 | ||
1d3f23110538d25b96631db4aff3eff84f99b0859140302a99b323b259b24b89 pcminb.raw.16k | ||
8eb29e8e9feb9709d96c7bbda37cbb2f77510fcfab2d1f48a495178cd2231253 test.raw.out | ||
a886f22d37ecd356e1963072bc481ed2c5dd12539428188d9779d33a520f3ff8 test.raw.16k.out | ||
15570a43acb0ff0f30aced265973eeb7733023be3697cdff0df36c41e88385c6 pcminb.g722.out | ||
1d3f23110538d25b96631db4aff3eff84f99b0859140302a99b323b259b24b89 pcminb.raw.16k.out | ||
cb8edfaa7b5a85384dde8e0c9976f5247294732d6caf32c07b94510fc8844403 test.g722.out | ||
e70c92cd2068d112839db12bfaa787cc0ea9a809b64fbf62fd78b6041cd9fbcc fullscale.raw | ||
e70c92cd2068d112839db12bfaa787cc0ea9a809b64fbf62fd78b6041cd9fbcc fullscale.raw.out |
File renamed without changes.