2023-03-13 07:59:01 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2024-01-03 03:22:36 +00:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
2023-03-13 07:59:01 +00:00
|
|
|
set -e
|
|
|
|
|
|
2024-06-28 11:12:24 +00:00
|
|
|
SCRIPT_DIR=/test
|
2023-03-22 03:52:24 +00:00
|
|
|
cd ${SCRIPT_DIR}/..
|
|
|
|
|
|
2023-11-02 09:37:21 +00:00
|
|
|
echo "Start process test......"
|
2023-12-14 02:33:23 +00:00
|
|
|
# These test programs are sorted by name.
|
|
|
|
|
tests="
|
2024-09-24 19:33:10 +00:00
|
|
|
clone3/clone_exit_signal
|
2025-04-07 03:17:37 +00:00
|
|
|
clone3/clone_files
|
2024-09-24 19:33:10 +00:00
|
|
|
clone3/clone_no_exit_signal
|
2023-12-14 02:33:23 +00:00
|
|
|
clone3/clone_process
|
2024-09-23 07:46:52 +00:00
|
|
|
cpu_affinity/cpu_affinity
|
2023-12-14 02:33:23 +00:00
|
|
|
execve/execve
|
2024-11-25 00:09:18 +00:00
|
|
|
exit/exit_code
|
|
|
|
|
exit/exit_procfs
|
2023-12-14 02:33:23 +00:00
|
|
|
eventfd2/eventfd2
|
|
|
|
|
fork/fork
|
|
|
|
|
fork_c/fork
|
2025-05-22 12:32:23 +00:00
|
|
|
getcpu/getcpu
|
2023-12-14 02:33:23 +00:00
|
|
|
getpid/getpid
|
|
|
|
|
hello_pie/hello
|
|
|
|
|
hello_world/hello_world
|
2024-05-31 10:24:20 +00:00
|
|
|
itimer/setitimer
|
|
|
|
|
itimer/timer_create
|
2024-06-20 11:06:44 +00:00
|
|
|
mmap/mmap_and_fork
|
2025-06-16 07:39:56 +00:00
|
|
|
mmap/mmap_and_mremap
|
2024-08-12 08:15:20 +00:00
|
|
|
mmap/mmap_shared_filebacked
|
2024-09-16 15:52:58 +00:00
|
|
|
mmap/mmap_readahead
|
2025-06-03 14:05:34 +00:00
|
|
|
mmap/mmap_vmrss
|
2025-04-21 06:17:02 +00:00
|
|
|
process/group_session
|
2025-05-08 07:17:53 +00:00
|
|
|
process/job_control
|
2025-06-12 03:11:16 +00:00
|
|
|
process/wait4
|
2023-12-14 02:33:23 +00:00
|
|
|
pthread/pthread_test
|
|
|
|
|
pty/open_pty
|
2025-05-03 15:31:56 +00:00
|
|
|
pty/pty_blocking
|
2025-02-11 13:35:24 +00:00
|
|
|
sched/sched_attr
|
2025-06-18 11:48:11 +00:00
|
|
|
sched/sched_attr_idle
|
2024-12-18 03:52:43 +00:00
|
|
|
shm/posix_shm
|
2024-01-08 03:36:16 +00:00
|
|
|
signal_c/parent_death_signal
|
2023-12-14 02:33:23 +00:00
|
|
|
signal_c/signal_test
|
2025-05-12 03:22:47 +00:00
|
|
|
signal_c/signal_test2
|
2023-12-14 02:33:23 +00:00
|
|
|
"
|
|
|
|
|
|
2023-03-13 07:59:01 +00:00
|
|
|
for testcase in ${tests}
|
2025-06-03 14:05:34 +00:00
|
|
|
do
|
2023-03-13 07:59:01 +00:00
|
|
|
echo "Running test ${testcase}......"
|
2023-07-05 06:08:58 +00:00
|
|
|
${SCRIPT_DIR}/${testcase}
|
2023-03-13 07:59:01 +00:00
|
|
|
done
|
2024-06-20 11:06:44 +00:00
|
|
|
echo "All process test passed."
|