File: minigzip.run

package info (click to toggle)
camlzip 1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: ml: 1,244; ansic: 171; sh: 121; makefile: 101
file content (12 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

runtest() {
  if $2 < minigzip.ml | $3 -d | cmp - minigzip.ml
  then echo "$1: passed"
  else echo "$1: FAILED"; exit 2
  fi
}

runtest "Gzip 1" ./minigzip ./minigzip
runtest "Gzip 2" ./minigzip gzip
runtest "Gzip 3" gzip ./minigzip