forked from kazu-yamamoto/http2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
encode.sh
39 lines (32 loc) · 1.45 KB
/
encode.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/sh
SRCDIR="test-hpack/hpack-test-case/nghttp2"
for i in $SRCDIR/*.json
do
dst=test-hpack/hpack-test-case/haskell-http2-naive/`basename $i`
dist/build/hpack-encode/hpack-encode off naive "http2 in Haskell: Naive - static table=no, header table=no, huffman=no" < $i > $dst
done
for i in $SRCDIR/*.json
do
dst=test-hpack/hpack-test-case/haskell-http2-naive-huffman/`basename $i`
dist/build/hpack-encode/hpack-encode on naive "http2 in Haskell: NaiveH - static table=no, header table=no, huffman=yes" < $i > $dst
done
for i in $SRCDIR/*.json
do
dst=test-hpack/hpack-test-case/haskell-http2-static/`basename $i`
dist/build/hpack-encode/hpack-encode off static "http2 in Haskell: Static - static table=yes, header table=no, huffman=no" < $i > $dst
done
for i in $SRCDIR/*.json
do
dst=test-hpack/hpack-test-case/haskell-http2-static-huffman/`basename $i`
dist/build/hpack-encode/hpack-encode on static "http2 in Haskell: StaticH - static table=yes, header table=no, huffman=yes" < $i > $dst
done
for i in $SRCDIR/*.json
do
dst=test-hpack/hpack-test-case/haskell-http2-linear/`basename $i`
dist/build/hpack-encode/hpack-encode off linear "http2 in Haskell: Linear - static table=yes, header table=yes, huffman=no" < $i > $dst
done
for i in $SRCDIR/*.json
do
dst=test-hpack/hpack-test-case/haskell-http2-linear-huffman/`basename $i`
dist/build/hpack-encode/hpack-encode on linear "http2 in Haskell: LinearH - static table=yes, header table=yes, huffman=yes" < $i > $dst
done