move scripts directory

This commit is contained in:
Roman Zeyde
2014-08-07 17:04:39 +03:00
parent 0b91ef76c5
commit e4ba6cf232
3 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
killall -q aplay arecord
./calib.py send &
python -m amodem.calib send &
SENDER_PID=$!
./calib.py recv
python -m amodem.calib recv
kill -INT $SENDER_PID

View File

@@ -32,20 +32,20 @@ run_src dd if=/dev/urandom of=$TEST_DIR/data.send bs=125kB count=1 status=none
SRC_HASH=`run_src sha256sum $TEST_DIR/data.send`
# modulate data into audio file
run_src "./send.py <$TEST_DIR/data.send >$TEST_DIR/audio.send"
run_src "python -m amodem.send -i $TEST_DIR/data.send -o $TEST_DIR/audio.send"
# stop old recording and start a new one
run_src killall -q aplay || true
run_dst killall -q arecord || true
run_dst "./wave.py record $TEST_DIR/audio.recv" &
run_dst "python -m amodem.wave record $TEST_DIR/audio.recv" &
sleep 1 # let audio.recv be filled
# play the modulated data
run_src ./wave.py play $TEST_DIR/audio.send &
run_src "python -m amodem.wave play $TEST_DIR/audio.send" &
# start the receiever
run_dst "./recv.py <$TEST_DIR/audio.recv >$TEST_DIR/data.recv"
run_dst "python -m amodem.recv -i $TEST_DIR/audio.recv -o $TEST_DIR/data.recv"
# stop recording after playing is over
run_src killall -q aplay || true