diff options
Diffstat (limited to 'test/syscalls')
-rw-r--r-- | test/syscalls/BUILD | 34 | ||||
-rw-r--r-- | test/syscalls/build_defs.bzl | 2 | ||||
-rwxr-xr-x | test/syscalls/syscall_test_runner.sh | 11 |
3 files changed, 27 insertions, 20 deletions
diff --git a/test/syscalls/BUILD b/test/syscalls/BUILD index a5abf8013..ca69f3309 100644 --- a/test/syscalls/BUILD +++ b/test/syscalls/BUILD @@ -9,7 +9,7 @@ syscall_test(test = "//test/syscalls/linux:accept_bind_stream_test") syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:accept_bind_test", ) @@ -107,7 +107,7 @@ syscall_test(test = "//test/syscalls/linux:fsync_test") syscall_test( size = "medium", - shard_count = 20, + shard_count = 5, test = "//test/syscalls/linux:futex_test", ) @@ -162,7 +162,7 @@ syscall_test( syscall_test( size = "medium", - shard_count = 10, + shard_count = 5, test = "//test/syscalls/linux:mmap_test", ) @@ -296,7 +296,7 @@ syscall_test( syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_abstract_test", ) @@ -307,7 +307,7 @@ syscall_test( syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_domain_test", ) @@ -318,7 +318,7 @@ syscall_test( syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_filesystem_test", ) @@ -329,7 +329,7 @@ syscall_test( syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_ip_tcp_generic_loopback_test", ) @@ -340,13 +340,13 @@ syscall_test( syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_ip_tcp_loopback_test", ) syscall_test( size = "medium", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_ip_tcp_udp_generic_loopback_test", ) @@ -357,7 +357,7 @@ syscall_test( syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_ip_udp_loopback_test", ) @@ -397,7 +397,7 @@ syscall_test( syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_unix_abstract_test", ) @@ -414,13 +414,13 @@ syscall_test( syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_unix_filesystem_test", ) syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_unix_pair_test", ) @@ -452,13 +452,13 @@ syscall_test( syscall_test( size = "medium", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_unix_unbound_seqpacket_test", ) syscall_test( size = "large", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:socket_unix_unbound_stream_test", ) @@ -484,7 +484,7 @@ syscall_test(test = "//test/syscalls/linux:sysret_test") syscall_test( size = "medium", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:tcp_socket_test", ) @@ -504,7 +504,7 @@ syscall_test(test = "//test/syscalls/linux:udp_bind_test") syscall_test( size = "medium", - shard_count = 50, + shard_count = 10, test = "//test/syscalls/linux:udp_socket_test", ) diff --git a/test/syscalls/build_defs.bzl b/test/syscalls/build_defs.bzl index e8a66a31a..b9f8c6503 100644 --- a/test/syscalls/build_defs.bzl +++ b/test/syscalls/build_defs.bzl @@ -2,7 +2,7 @@ # syscall_test is a macro that will create targets to run the given test target # on the host (native) and runsc. -def syscall_test(test, shard_count = 5, size = "small", use_tmpfs = False): +def syscall_test(test, shard_count = 1, size = "small", use_tmpfs = False): _syscall_test(test, shard_count, size, "native", False) _syscall_test(test, shard_count, size, "kvm", use_tmpfs) _syscall_test(test, shard_count, size, "ptrace", use_tmpfs) diff --git a/test/syscalls/syscall_test_runner.sh b/test/syscalls/syscall_test_runner.sh index 4f3790137..87d62786b 100755 --- a/test/syscalls/syscall_test_runner.sh +++ b/test/syscalls/syscall_test_runner.sh @@ -18,10 +18,17 @@ # It exists so that we can build the syscall test runner once, and use it for # all syscall tests, rather than build it for each test run. -set -euf -o pipefail +set -euf -x -o pipefail + +echo -- "$@" + +if [[ -n "${TEST_UNDECLARED_OUTPUTS_DIR}" ]]; then + mkdir -p "${TEST_UNDECLARED_OUTPUTS_DIR}" + chmod a+rwx "${TEST_UNDECLARED_OUTPUTS_DIR}" +fi # Get location of syscall_test_runner binary. -readonly runner=$(find ${TEST_SRCDIR} -name syscall_test_runner) +readonly runner=$(find "${TEST_SRCDIR}" -name syscall_test_runner) # Pass the arguments of this script directly to the runner. exec "${runner}" "$@" |