roundtrip.sh 321 B

1234567891011121314151617181920212223242526
  1. ./clean.sh
  2. cp control test
  3. ../out/smolen test
  4. testsize=$(wc -c <test)
  5. smolsize=$(wc -c <test.smol)
  6. if [ $smolsize -ge $testsize ]; then
  7. ls -lh test test.smol
  8. echo Roundtrip - FAIL
  9. exit 1
  10. fi
  11. rm test
  12. ../out/smolen test.smol
  13. if diff control test; then
  14. echo Roundtrip - PASS
  15. else
  16. echo Roundtrip - FAIL
  17. exit 2
  18. fi