blob: 7cf2b09a47d272539c75ac1d3f44b33898cd3c97 (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#! /bin/sh
# Copyright (c) 2002, Intel Corporation. All rights reserved.
# Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com
# This file is licensed under the GPL license. For the full content
# of this license, see the COPYING file at the top level of this
# source tree.
#
# Use to build and run tests for a specific area
BASEDIR="$(dirname "$0")/../conformance/interfaces"
usage()
{
cat <<EOF
usage: $(basename "$0") [AIO|MEM|MSG|SEM|SIG|THR|TMR|TPS]
Build and run the tests for POSIX area specified by the 3 letter tag
in the POSIX spec
EOF
}
run_option_group_tests()
{
for test_script in $(find $1 -name run.sh | sort); do
(cd "$(dirname "$test_script")" && ./$(basename "$test_script"))
done
}
case $1 in
AIO)
echo "Executing asynchronous I/O tests"
run_option_group_tests "$BASEDIR/aio_*"
run_option_group_tests "$BASEDIR/lio_listio"
;;
SIG)
echo "Executing signals tests"
run_option_group_tests "$BASEDIR/sig*"
run_option_group_tests $BASEDIR/raise
run_option_group_tests $BASEDIR/kill
run_option_group_tests $BASEDIR/killpg
run_option_group_tests $BASEDIR/pthread_kill
run_option_group_tests $BASEDIR/pthread_sigmask
;;
SEM)
echo "Executing semaphores tests"
run_option_group_tests "$BASEDIR/sem*"
;;
THR)
echo "Executing threads tests"
run_option_group_tests "$BASEDIR/pthread_*"
;;
TMR)
echo "Executing timers and clocks tests"
run_option_group_tests "$BASEDIR/time*"
run_option_group_tests "$BASEDIR/*time"
run_option_group_tests "$BASEDIR/clock*"
run_option_group_tests $BASEDIR/nanosleep
;;
MSG)
echo "Executing message queues tests"
run_option_group_tests "$BASEDIR/mq_*"
;;
TPS)
echo "Executing process and thread scheduling tests"
run_option_group_tests "$BASEDIR/*sched*"
;;
MEM)
echo "Executing mapped, process and shared memory tests"
run_option_group_tests "$BASEDIR/m*lock*"
run_option_group_tests "$BASEDIR/m*map"
run_option_group_tests "$BASEDIR/shm_*"
;;
*)
usage
exit 1
;;
esac
echo "****Tests Complete****"
|