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
|
|
|
|
|
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
|
|
|
|
|
eventfd2/eventfd2
|
|
|
|
|
fork/fork
|
|
|
|
|
fork_c/fork
|
|
|
|
|
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
|
2024-08-12 08:15:20 +00:00
|
|
|
mmap/mmap_shared_filebacked
|
2024-09-16 15:52:58 +00:00
|
|
|
mmap/mmap_readahead
|
2023-12-14 02:33:23 +00:00
|
|
|
pthread/pthread_test
|
|
|
|
|
pty/open_pty
|
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
|
|
|
|
|
"
|
|
|
|
|
|
2023-03-13 07:59:01 +00:00
|
|
|
for testcase in ${tests}
|
|
|
|
|
do
|
|
|
|
|
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."
|