larg.sh 345 B

123456789101112131415161718192021222324252627
  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 Larg - FAIL
  9. exit 1
  10. fi
  11. rm test
  12. mv test.smol test.nosmol
  13. ../out/smolen test.nosmol
  14. if diff control test.nosmol.larg; then
  15. echo Larg - PASS
  16. else
  17. echo Larg - FAIL
  18. exit 2
  19. fi