Skip to content

Commit

Permalink
tests: rename the tests to make it clear which are simulator/basic/li…
Browse files Browse the repository at this point in the history
…ve based

This patch only renames files, it makes not changes to the content.

Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
pcmoore committed Feb 7, 2013
1 parent f8cfd96 commit 50f8b62
Show file tree
Hide file tree
Showing 72 changed files with 414 additions and 414 deletions.
38 changes: 19 additions & 19 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
*.bpf
*.pfc
util.pyc
01-allow
02-basic
03-basic-chains
04-multilevel-chains
05-long-jumps
06-actions
07-db-bug-looping
08-subtree-checks
09-syscall-priority-pre
10-syscall-priority-post
11-basic-errors
12-basic-masked-ops
13-attrs
14-reset
15-resolver
16-arch-basic
17-arch-merge
18-basic-whitelist
19-missing-syscalls
01-sim-allow
02-sim-basic
03-sim-basic_chains
04-sim-multilevel_chains
05-sim-long_jumps
06-sim-actions
07-sim-db_bug_looping
08-sim-subtree_checks
09-sim-syscall_priority_pre
10-sim-syscall_priority_post
11-basic-basic_errors
12-sim-basic_masked_ops
13-basic-attrs
14-sim-reset
15-basic-resolver
16-sim-arch_basic
17-sim-arch_merge
18-sim-basic_whitelist
19-sim-missing_syscalls
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/01-allow.tests → tests/01-sim-allow.tests
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
test type: bpf-sim

# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
01-allow all 0-350 N N N N N N ALLOW
01-sim-allow all 0-350 N N N N N N ALLOW

test type: bpf-sim-fuzz

# Testname StressCount
01-allow 50
01-sim-allow 50
25 changes: 0 additions & 25 deletions tests/02-basic.tests

This file was deleted.

File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions tests/02-sim-basic.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# libseccomp regression test automation data
#
# Copyright IBM Corp. 2012
# Author: Corey Bryant <[email protected]>
#

test type: bpf-sim

# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
02-sim-basic all read 0 0x856B008 40 N N N ALLOW
02-sim-basic all write 1 0x856B008 40 N N N ALLOW
02-sim-basic all close 4 N N N N N ALLOW
02-sim-basic all rt_sigreturn N N N N N N ALLOW
02-sim-basic all open 0x856B008 4 N N N N KILL
02-sim-basic x86 0-2 N N N N N N KILL
02-sim-basic x86 7-172 N N N N N N KILL
02-sim-basic x86 174-350 N N N N N N KILL
02-sim-basic x86_64 4-14 N N N N N N KILL
02-sim-basic x86_64 16-350 N N N N N N KILL

test type: bpf-sim-fuzz

# Testname StressCount
02-sim-basic 50
27 changes: 0 additions & 27 deletions tests/03-basic-chains.tests

This file was deleted.

File renamed without changes.
File renamed without changes.
27 changes: 27 additions & 0 deletions tests/03-sim-basic_chains.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# libseccomp regression test automation data
#
# Copyright IBM Corp. 2012
# Author: Corey Bryant <[email protected]>
#

test type: bpf-sim

# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
03-sim-basic_chains all read 0 0x856B008 10 N N N ALLOW
03-sim-basic_chains all read 1-10 0x856B008 10 N N N KILL
03-sim-basic_chains all write 1-2 0x856B008 10 N N N ALLOW
03-sim-basic_chains all write 3-10 0x856B008 10 N N N KILL
03-sim-basic_chains all close N N N N N N ALLOW
03-sim-basic_chains all rt_sigreturn N N N N N N ALLOW
03-sim-basic_chains all open 0x856B008 4 N N N N KILL
03-sim-basic_chains x86 0-2 N N N N N N KILL
03-sim-basic_chains x86 7-172 N N N N N N KILL
03-sim-basic_chains x86 174-350 N N N N N N KILL
03-sim-basic_chains x86_64 4-14 N N N N N N KILL
03-sim-basic_chains x86_64 16-350 N N N N N N KILL

test type: bpf-sim-fuzz

# Testname StressCount
03-sim-basic_chains 50
37 changes: 0 additions & 37 deletions tests/04-multilevel-chains.tests

This file was deleted.

File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions tests/04-sim-multilevel_chains.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# libseccomp regression test automation data
#
# Copyright IBM Corp. 2012
# Author: Corey Bryant <[email protected]>
#

test type: bpf-sim

# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
04-sim-multilevel_chains all open 0x856B008 4 N N N N ALLOW
04-sim-multilevel_chains all close 4 N N N N N ALLOW
04-sim-multilevel_chains x86 read 0 0x856B008 0x7FFFFFFE N N N ALLOW
04-sim-multilevel_chains x86_64 read 0 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW
04-sim-multilevel_chains x86 read 0 0x856B008 0x7FFFFFFF N N N KILL
04-sim-multilevel_chains x86_64 read 0 0x856B008 0x7FFFFFFFFFFFFFFF N N N KILL
04-sim-multilevel_chains x86 read 0 0 0x7FFFFFFE N N N KILL
04-sim-multilevel_chains x86_64 read 0 0 0x7FFFFFFFFFFFFFFE N N N KILL
04-sim-multilevel_chains all read 1-10 0x856B008 0x7FFFFFFE N N N KILL
04-sim-multilevel_chains x86 write 1-2 0x856B008 0x7FFFFFFE N N N ALLOW
04-sim-multilevel_chains x86_64 write 1-2 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW
04-sim-multilevel_chains x86 write 1-2 0 0x7FFFFFFE N N N KILL
04-sim-multilevel_chains x86_64 write 1-2 0 0x7FFFFFFFFFFFFFFE N N N KILL
04-sim-multilevel_chains x86 write 1-2 0x856B008 0x7FFFFFFF N N N KILL
04-sim-multilevel_chains x86_64 write 1-2 0x856B008 0x7FFFFFFFFFFFFFFF N N N KILL
04-sim-multilevel_chains all write 3-10 0x856B008 0x7FFFFFFE N N N KILL
04-sim-multilevel_chains all rt_sigreturn N N N N N N ALLOW
04-sim-multilevel_chains x86 0-2 N N N N N N KILL
04-sim-multilevel_chains x86 7-172 N N N N N N KILL
04-sim-multilevel_chains x86 174-350 N N N N N N KILL
04-sim-multilevel_chains x86_64 4-14 N N N N N N KILL
04-sim-multilevel_chains x86_64 16-350 N N N N N N KILL

test type: bpf-sim-fuzz

# Testname StressCount
04-sim-multilevel_chains 50
32 changes: 0 additions & 32 deletions tests/05-long-jumps.tests

This file was deleted.

File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions tests/05-sim-long_jumps.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# libseccomp regression test automation data
#
# Copyright IBM Corp. 2012
# Author: Corey Bryant <[email protected]>
#

test type: bpf-sim

# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
05-sim-long_jumps all 1 1 2 3 4 5 6 ALLOW
05-sim-long_jumps all 2 N N N N N N KILL
05-sim-long_jumps all 999 N N N N N N KILL
05-sim-long_jumps x86 1000 0-5 0x856B008 0x7FFFFFFE N N N ALLOW
05-sim-long_jumps x86_64 1000 0-5 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW
05-sim-long_jumps x86 1000 95-99 0x856B008 0x7FFFFFFE N N N ALLOW
05-sim-long_jumps x86_64 1000 95-99 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW
05-sim-long_jumps x86 1000 100 0x856B008 0x7FFFFFFE N N N KILL
05-sim-long_jumps x86_64 1000 100 0x856B008 0x7FFFFFFFFFFFFFFE N N N KILL
05-sim-long_jumps all 1001 N N N N N N KILL
05-sim-long_jumps all 99 1 N N N N N KILL
05-sim-long_jumps all 100-105 1 N N N N N ALLOW
05-sim-long_jumps all 195-199 1 N N N N N ALLOW
05-sim-long_jumps all 200 1 N N N N N KILL
05-sim-long_jumps all 3 N N N N N N KILL
05-sim-long_jumps all 4 1 2 3 4 5 6 ALLOW
05-sim-long_jumps all 5 N N N N N N KILL

test type: bpf-sim-fuzz

# Testname StressCount
05-sim-long_jumps 50
22 changes: 0 additions & 22 deletions tests/06-actions.tests

This file was deleted.

File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions tests/06-sim-actions.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# libseccomp regression test automation data
#
# Copyright IBM Corp. 2012
# Author: Corey Bryant <[email protected]>
#

test type: bpf-sim

# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
06-sim-actions all read 4 0x856B008 80 N N N ALLOW
06-sim-actions all write 1 0x856B008 N N N N ERRNO(1)
06-sim-actions all close 4 N N N N N TRAP
06-sim-actions all open 0x856B008 4 N N N N TRACE(1234)
06-sim-actions x86 0-2 N N N N N N KILL
06-sim-actions x86 7-350 N N N N N N KILL
06-sim-actions x86_64 4-350 N N N N N N KILL

test type: bpf-sim-fuzz

# Testname StressCount
06-sim-actions 50
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
test type: bpf-sim

# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
07-db-bug-looping all read 1 0x856B008 10 N N N ALLOW
07-db-bug-looping all read 2-10 0 10 N N N ALLOW
07-db-bug-looping all read 0 0x856B008 10 N N N ALLOW
07-sim-db_bug_looping all read 1 0x856B008 10 N N N ALLOW
07-sim-db_bug_looping all read 2-10 0 10 N N N ALLOW
07-sim-db_bug_looping all read 0 0x856B008 10 N N N ALLOW

test type: bpf-sim-fuzz

# Testname StressCount
07-db-bug-looping 50
07-sim-db_bug_looping 50
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 50f8b62

Please sign in to comment.