File: update-bpf.sh

package info (click to toggle)
ceccomp 3.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,528 kB
  • sloc: ansic: 3,154; python: 653; makefile: 240; sh: 226
file content (25 lines) | stat: -rwxr-xr-x 484 bytes parent folder | download
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
#!/bin/bash

override_bpf()
{
    ./build/ceccomp asm -c always -f raw $1 > $2 2>&1
}

for txt in test/text/*; do
    bpf=${txt/text/bpf}
    bpf=${bpf}.bpf
    override_bpf $txt $bpf
done

override_emu()
{
    ./build/ceccomp emu -c always $1 $2 1 2 3 4 5 6 > $3 2>&1
}

for text in test/text/*; do
    emu_result=${text/text/emu_result}
    override_emu $text open $emu_result.open
    override_emu $text pipe $emu_result.pipe
    override_emu $text accept $emu_result.accept
done