[15362] | 1 | #!/bin/tcsh |
---|
| 2 | echo welcome to the test. |
---|
| 3 | |
---|
| 4 | echo "" |
---|
| 5 | echo Please start the server, esd, in another terminal. |
---|
| 6 | echo You should hear a series of ascending tones. |
---|
| 7 | echo press enter to continue... |
---|
| 8 | echo $< >& /dev/null |
---|
| 9 | |
---|
| 10 | ##################################################################### |
---|
| 11 | echo "" |
---|
| 12 | echo Test "#1": esdcat |
---|
| 13 | echo ----------------- |
---|
| 14 | echo This test should play a sound to the server. |
---|
| 15 | echo press enter to continue... |
---|
| 16 | echo $< >& /dev/null |
---|
| 17 | |
---|
| 18 | esdcat -b -m -r 11025 test.wav |
---|
| 19 | |
---|
| 20 | ##################################################################### |
---|
| 21 | echo "" |
---|
| 22 | echo Test "#2": esdcat |
---|
| 23 | echo ----------------- |
---|
| 24 | echo This test should play the same sound twice as fast. |
---|
| 25 | echo press enter to continue... |
---|
| 26 | echo $< >& /dev/null |
---|
| 27 | |
---|
| 28 | esdcat -b -m -r 22050 test.wav |
---|
| 29 | |
---|
| 30 | ##################################################################### |
---|
| 31 | echo "" |
---|
| 32 | echo Test "#3": esdmon |
---|
| 33 | echo ----------------- |
---|
| 34 | echo This first part of this test should monitor the sound |
---|
| 35 | echo to a temporary file. The second part of the test |
---|
| 36 | echo should play it back identical to the original. |
---|
| 37 | echo press enter to continue... |
---|
| 38 | echo $< >& /dev/null |
---|
| 39 | |
---|
| 40 | esdmon > sample.raw & |
---|
| 41 | esdcat -b -m -r 11025 test.wav |
---|
| 42 | sleep 3 |
---|
| 43 | killall esdmon |
---|
| 44 | |
---|
| 45 | echo press enter to continue... |
---|
| 46 | echo $< >& /dev/null |
---|
| 47 | esdcat sample.raw |
---|
| 48 | rm -f sample.raw |
---|
| 49 | |
---|
| 50 | ##################################################################### |
---|
| 51 | echo "" |
---|
| 52 | echo Test "#4": esdrec |
---|
| 53 | echo ----------------- |
---|
| 54 | echo This part of this test connects the audio input |
---|
| 55 | echo to the speaker. You should hear that signal |
---|
| 56 | echo echoed to the speaker. |
---|
| 57 | echo press enter to continue... |
---|
| 58 | echo $< >& /dev/null |
---|
| 59 | |
---|
| 60 | esdrec | esdcat & |
---|
| 61 | |
---|
| 62 | echo press enter when you are done... |
---|
| 63 | echo $< >& /dev/null |
---|
| 64 | |
---|
| 65 | killall esdrec |
---|
| 66 | |
---|
| 67 | ##################################################################### |
---|
| 68 | echo "" |
---|
| 69 | echo Test "#5": esdctl |
---|
| 70 | echo ----------------- |
---|
| 71 | if ( $?ESPEAKER ) then |
---|
| 72 | echo This part of the test does not yet work |
---|
| 73 | echo properly with the ESPEAKER variable set |
---|
| 74 | echo and will be bypassed. |
---|
| 75 | echo press enter to continue... |
---|
| 76 | echo $< >& /dev/null |
---|
| 77 | else |
---|
| 78 | echo This part of this test confirms the control |
---|
| 79 | echo signals are operational. you should see |
---|
| 80 | echo the messages locked, unlocked, standby, |
---|
| 81 | echo and resume, on the server terminal. |
---|
| 82 | echo press enter to continue... |
---|
| 83 | echo $< >& /dev/null |
---|
| 84 | |
---|
| 85 | esdctl unlock lock standby resume |
---|
| 86 | endif |
---|
| 87 | ##################################################################### |
---|
| 88 | echo "" |
---|
| 89 | echo Test "#6": esdsample |
---|
| 90 | echo -------------------- |
---|
| 91 | echo This part of this test confirms the sample |
---|
| 92 | echo functionality is operational. Follow the |
---|
| 93 | echo directions presented. |
---|
| 94 | echo press enter to continue... |
---|
| 95 | echo $< >& /dev/null |
---|
| 96 | |
---|
| 97 | esdsample -b -m -r 11025 test.wav |
---|
| 98 | |
---|
| 99 | ##################################################################### |
---|
| 100 | echo "" |
---|
| 101 | echo Test "#7": esdlooop |
---|
| 102 | echo ------------------- |
---|
| 103 | echo This part of this test confirms the looping |
---|
| 104 | echo functionality is operational. Follow the |
---|
| 105 | echo directions presented. |
---|
| 106 | echo press enter to continue... |
---|
| 107 | echo $< >& /dev/null |
---|
| 108 | |
---|
| 109 | esdloop -b -m -r 11025 test.wav |
---|
| 110 | |
---|
| 111 | ##################################################################### |
---|
| 112 | echo "" |
---|
| 113 | echo Test concluded. |
---|