File: 08-test-stream.sh

package info (click to toggle)
megatools 1.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: ansic: 7,279; sh: 135; makefile: 3
file content (14 lines) | stat: -rwxr-xr-x 360 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
source ./config

LINK=`megals $ROPTS --export /Root/TestDir/test.dat | cut -d ' ' -f 1`

rm -f test-stream.dat
megaget $OPTS --path - /Root/TestDir/test.dat > test-stream.dat

cmp test.dat test-stream.dat || echo "=== FAILED ==="

rm -f test-stream.dat
megadl --path - "$LINK" > test-stream.dat

cmp test.dat test-stream.dat || echo "=== FAILED ==="