SPDX license identifier
cover SPDX license identifier
Hi,
I can squash these commits. It was separated for easier review. Not replaced in old API as this is can wait done during test rewrite.
Kind regards,
Petr
Petr Vorel (3):
doc: Use SPDX license identifier
c: Replace GPL verbose text by SPDX license identifier
sh: Replace GPL verbose text by SPDX license identifier
doc/c-test-tutorial-simple.txt | 30 +------- doc/test-writing-guidelines.txt | 27 +++---- include/tst_taint.h | 14 +--- include/tst_timer_test.h | 14 +--- lib/newlib_tests/test01.c | 15 +--- lib/newlib_tests/test02.c | 15 +--- lib/newlib_tests/test03.c | 15 +--- lib/newlib_tests/test04.c | 15 +--- lib/newlib_tests/test05.c | 15 +--- lib/newlib_tests/test06.c | 15 +--- lib/newlib_tests/test07.c | 15 +--- lib/newlib_tests/test08.c | 15 +--- lib/newlib_tests/test09.c | 12 +--- lib/newlib_tests/test10.c | 12 +--- lib/newlib_tests/test11.c | 12 +--- lib/newlib_tests/test12.c | 12 +--- lib/newlib_tests/test13.c | 12 +--- lib/newlib_tests/test14.c | 15 +--- lib/newlib_tests/test15.c | 14 +--- lib/newlib_tests/test16.c | 14 +--- lib/newlib_tests/test17.c | 14 +--- lib/newlib_tests/test18.c | 14 +--- lib/newlib_tests/test19.c | 14 +--- lib/newlib_tests/test_exec.c | 15 +--- lib/newlib_tests/test_exec_child.c | 15 +--- lib/newlib_tests/tst_device.c | 14 +--- lib/newlib_tests/tst_expiration_timer.c | 15 +--- lib/newlib_tests/tst_res_hexd.c | 14 +--- lib/newlib_tests/tst_safe_fileops.c | 14 +--- lib/newlib_tests/tst_strstatus.c | 15 +--- lib/safe_pthread.c | 14 +--- lib/tst_crypto.c | 14 +--- lib/tst_fill_fs.c | 14 +--- lib/tst_safe_macros.c | 14 +--- lib/tst_safe_sysv_ipc.c | 14 +--- lib/tst_sig_proc.c | 11 +-- lib/tst_status.c | 14 +--- lib/tst_supported_fs_types.c | 14 +--- lib/tst_test.c | 14 +--- lib/tst_timer_test.c | 14 +--- testcases/commands/ar/ar01 | 24 ++----- testcases/commands/cp/cp_tests.sh | 27 ++----- testcases/commands/cpio/cpio_tests.sh | 24 +------ testcases/commands/df/df01.sh | 13 +--- testcases/commands/du/du01.sh | 17 +---- testcases/commands/eject/eject-tests.sh | 26 ++----- testcases/commands/file/file01.sh | 25 ++----- testcases/commands/gdb/gdb01.sh | 23 +----- testcases/commands/gzip/gzip_tests.sh | 34 +++------ testcases/commands/insmod/insmod01.sh | 15 +--- testcases/commands/keyctl/keyctl01.sh | 16 +---- testcases/commands/ld/ld01 | 24 ++----- testcases/commands/ldd/ldd01 | 30 ++------ testcases/commands/ln/ln_tests.sh | 27 ++----- testcases/commands/lsmod/lsmod01.sh | 16 +---- testcases/commands/mkdir/mkdir_tests.sh | 25 ++----- testcases/commands/mkfs/mkfs01.sh | 13 +--- testcases/commands/mkswap/mkswap01.sh | 13 +--- testcases/commands/mv/mv_tests.sh | 34 +++------ testcases/commands/nm/nm01 | 24 ++----- testcases/commands/sysctl/sysctl01.sh | 16 +---- testcases/commands/tar/tar_tests.sh | 26 ++----- testcases/commands/unshare/unshare01.sh | 13 +--- testcases/commands/unzip/unzip01.sh | 26 ++----- testcases/commands/wc/wc01.sh | 13 +--- testcases/commands/which/which01.sh | 13 +--- testcases/cve/cve-2014-0196.c | 14 +--- testcases/cve/cve-2015-3290.c | 23 +----- testcases/cve/cve-2016-10044.c | 14 +--- testcases/cve/cve-2016-7042.c | 14 +--- testcases/cve/cve-2016-7117.c | 14 +--- testcases/cve/cve-2017-16939.c | 14 +--- testcases/cve/cve-2017-17052.c | 14 +--- testcases/cve/cve-2017-17053.c | 14 +--- testcases/cve/cve-2017-2618.c | 14 +--- testcases/cve/cve-2017-2671.c | 14 +--- testcases/cve/meltdown.c | 16 +---- testcases/cve/stack_clash.c | 16 +---- .../kernel/controllers/cpuacct/cpuacct.sh | 35 ++------- .../memcg/functional/memcg_process.c | 26 ++----- .../memcg/regression/memcg_test_3.c | 14 +--- testcases/kernel/controllers/pids/pids.sh | 29 ++------ testcases/kernel/crypto/pcrypt_aead01.c | 22 +----- testcases/kernel/fs/fs_fill/fs_fill.c | 14 +--- testcases/kernel/fs/read_all/read_all.c | 14 +--- testcases/kernel/lib/ksm_helper.c | 14 +--- testcases/kernel/logging/kmsg/kmsg01.c | 21 +----- .../kernel/mem/hugetlb/hugemmap/hugemmap05.c | 14 +--- testcases/kernel/mem/hugetlb/lib/hugetlb.h | 17 +---- testcases/kernel/mem/ksm/ksm05.c | 11 +-- testcases/kernel/mem/ksm/ksm_common.h | 11 +-- .../kernel/mem/mmapstress/mmapstress04.c | 14 +--- testcases/kernel/mem/mtest06/mmap3.c | 27 ++----- testcases/kernel/mem/mtest07/mallocstress.c | 72 +++---------------- testcases/kernel/mem/thp/thp01.c | 11 +-- testcases/kernel/mem/vma/vma05.sh | 44 ++++-------- testcases/kernel/numa/numa01.sh | 53 +++++--------- testcases/kernel/pty/pty02.c | 14 +--- .../kernel/sched/autogroup/autogroup01.c | 14 +--- testcases/kernel/security/dirtyc0w/dirtyc0w.c | 14 +--- .../kernel/security/dirtyc0w/dirtyc0w_child.c | 14 +--- .../security/integrity/ima/src/ima_mmap.c | 13 +--- .../security/integrity/ima/tests/ima_setup.sh | 15 +--- testcases/kernel/syscalls/access/access01.c | 21 +----- testcases/kernel/syscalls/access/access02.c | 20 +----- testcases/kernel/syscalls/access/access03.c | 21 +----- testcases/kernel/syscalls/access/access04.c | 18 +---- testcases/kernel/syscalls/add_key/add_key01.c | 27 ++----- testcases/kernel/syscalls/add_key/add_key02.c | 24 ++----- testcases/kernel/syscalls/add_key/add_key03.c | 14 +--- testcases/kernel/syscalls/add_key/add_key04.c | 14 +--- testcases/kernel/syscalls/alarm/alarm05.c | 19 +---- testcases/kernel/syscalls/alarm/alarm06.c | 30 ++------ testcases/kernel/syscalls/brk/brk01.c | 14 +--- testcases/kernel/syscalls/chdir/chdir03.c | 17 +---- testcases/kernel/syscalls/chmod/chmod06.c | 19 +---- .../syscalls/clock_getres/clock_getres01.c | 35 +++------ .../clock_nanosleep/clock_nanosleep01.c | 15 +--- .../clock_nanosleep2/clock_nanosleep2_01.c | 24 ++----- testcases/kernel/syscalls/clone/clone08.c | 12 +--- testcases/kernel/syscalls/clone/clone09.c | 14 +--- testcases/kernel/syscalls/creat/creat01.c | 19 +---- testcases/kernel/syscalls/creat/creat03.c | 19 +---- testcases/kernel/syscalls/creat/creat04.c | 19 +---- testcases/kernel/syscalls/creat/creat05.c | 19 +---- testcases/kernel/syscalls/creat/creat06.c | 19 +---- testcases/kernel/syscalls/creat/creat07.c | 17 +---- .../kernel/syscalls/creat/creat07_child.c | 17 +---- .../syscalls/epoll_create1/epoll_create1_01.c | 21 +----- .../kernel/syscalls/epoll_ctl/epoll_ctl01.c | 12 +--- .../kernel/syscalls/epoll_ctl/epoll_ctl02.c | 12 +--- .../kernel/syscalls/epoll_wait/epoll_wait01.c | 14 +--- testcases/kernel/syscalls/execl/execl01.c | 15 +--- .../kernel/syscalls/execl/execl01_child.c | 14 +--- testcases/kernel/syscalls/execle/execle01.c | 15 +--- .../kernel/syscalls/execle/execle01_child.c | 14 +--- testcases/kernel/syscalls/execlp/execlp01.c | 16 +---- .../kernel/syscalls/execlp/execlp01_child.c | 14 +--- testcases/kernel/syscalls/execv/execv01.c | 15 +--- .../kernel/syscalls/execv/execv01_child.c | 15 +--- testcases/kernel/syscalls/execve/execve01.c | 15 +--- .../kernel/syscalls/execve/execve01_child.c | 14 +--- testcases/kernel/syscalls/execve/execve02.c | 18 +---- testcases/kernel/syscalls/execve/execve03.c | 28 ++------ testcases/kernel/syscalls/execve/execve04.c | 18 +---- testcases/kernel/syscalls/execve/execve05.c | 18 +---- .../kernel/syscalls/execve/execve_child.c | 16 +---- .../kernel/syscalls/execveat/execveat03.c | 44 ++++-------- .../kernel/syscalls/execveat/execveat_child.c | 21 +----- testcases/kernel/syscalls/execvp/execvp01.c | 15 +--- .../kernel/syscalls/execvp/execvp01_child.c | 14 +--- testcases/kernel/syscalls/exit/exit02.c | 19 +---- .../kernel/syscalls/fallocate/fallocate04.c | 18 +---- .../kernel/syscalls/fallocate/fallocate05.c | 14 +--- testcases/kernel/syscalls/fchdir/fchdir03.c | 17 +---- testcases/kernel/syscalls/fchmod/fchmod06.c | 17 +---- testcases/kernel/syscalls/fcntl/fcntl02.c | 30 +------- testcases/kernel/syscalls/fcntl/fcntl03.c | 30 +------- testcases/kernel/syscalls/fcntl/fcntl04.c | 30 +------- testcases/kernel/syscalls/fcntl/fcntl34.c | 16 +---- testcases/kernel/syscalls/fcntl/fcntl35.c | 14 +--- testcases/kernel/syscalls/fcntl/fcntl36.c | 33 +++------ .../kernel/syscalls/flistxattr/flistxattr01.c | 14 +--- .../kernel/syscalls/flistxattr/flistxattr02.c | 12 +--- .../kernel/syscalls/flistxattr/flistxattr03.c | 14 +--- testcases/kernel/syscalls/fsync/fsync01.c | 30 +------- testcases/kernel/syscalls/getcwd/getcwd01.c | 16 +---- testcases/kernel/syscalls/getcwd/getcwd02.c | 16 +---- testcases/kernel/syscalls/getcwd/getcwd03.c | 16 +---- testcases/kernel/syscalls/getcwd/getcwd04.c | 11 +-- .../syscalls/getpriority/getpriority01.c | 18 +---- .../syscalls/getpriority/getpriority02.c | 18 +---- .../kernel/syscalls/getrandom/getrandom01.c | 27 +------ .../kernel/syscalls/getrandom/getrandom02.c | 29 ++------ .../kernel/syscalls/getrandom/getrandom03.c | 32 ++------- .../kernel/syscalls/getrandom/getrandom04.c | 32 ++------- .../kernel/syscalls/getsockopt/getsockopt02.c | 14 +--- .../syscalls/gettimeofday/gettimeofday02.c | 15 +--- .../kernel/syscalls/getxattr/getxattr04.c | 14 +--- testcases/kernel/syscalls/inotify/inotify01.c | 23 +----- testcases/kernel/syscalls/inotify/inotify02.c | 23 +----- testcases/kernel/syscalls/inotify/inotify03.c | 25 +------ testcases/kernel/syscalls/inotify/inotify04.c | 28 +------- testcases/kernel/syscalls/inotify/inotify05.c | 19 +---- testcases/kernel/syscalls/inotify/inotify06.c | 19 +---- testcases/kernel/syscalls/inotify/inotify07.c | 23 +----- testcases/kernel/syscalls/inotify/inotify08.c | 24 +------ testcases/kernel/syscalls/inotify/inotify09.c | 17 +---- .../kernel/syscalls/io_destroy/io_destroy01.c | 15 +--- .../kernel/syscalls/io_setup/io_setup01.c | 15 +--- .../kernel/syscalls/io_submit/io_submit01.c | 15 +--- testcases/kernel/syscalls/ioctl/ioctl03.c | 34 ++------- testcases/kernel/syscalls/ioctl/ioctl04.c | 14 +--- testcases/kernel/syscalls/ioctl/ioctl05.c | 14 +--- testcases/kernel/syscalls/ioctl/ioctl06.c | 14 +--- testcases/kernel/syscalls/ioctl/ioctl07.c | 14 +--- .../kernel/syscalls/ipc/libnewipc/libnewipc.c | 14 +--- .../kernel/syscalls/ipc/msgctl/msgctl01.c | 17 +---- .../kernel/syscalls/ipc/msgctl/msgctl02.c | 17 +---- .../kernel/syscalls/ipc/msgctl/msgctl03.c | 12 +--- .../kernel/syscalls/ipc/msgctl/msgctl04.c | 17 +---- .../kernel/syscalls/ipc/msgctl/msgctl12.c | 12 +--- .../kernel/syscalls/ipc/msgget/msgget01.c | 16 +---- .../kernel/syscalls/ipc/msgget/msgget02.c | 16 +---- .../kernel/syscalls/ipc/msgget/msgget03.c | 16 +---- .../kernel/syscalls/ipc/msgsnd/msgsnd01.c | 16 +---- .../kernel/syscalls/ipc/msgsnd/msgsnd02.c | 16 +---- .../kernel/syscalls/ipc/msgsnd/msgsnd05.c | 16 +---- .../kernel/syscalls/ipc/msgsnd/msgsnd06.c | 16 +---- testcases/kernel/syscalls/ipc/shmat/shmat01.c | 17 +---- testcases/kernel/syscalls/ipc/shmat/shmat02.c | 16 +---- testcases/kernel/syscalls/ipc/shmat/shmat03.c | 14 +--- .../kernel/syscalls/ipc/shmctl/shmctl05.c | 14 +--- testcases/kernel/syscalls/kcmp/kcmp01.c | 15 +--- testcases/kernel/syscalls/kcmp/kcmp02.c | 15 +--- testcases/kernel/syscalls/kcmp/kcmp03.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl01.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl02.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl03.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl04.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl05.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl06.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl07.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl08.c | 14 +--- .../kernel/syscalls/lgetxattr/lgetxattr01.c | 12 +--- .../kernel/syscalls/lgetxattr/lgetxattr02.c | 13 +--- testcases/kernel/syscalls/link/link08.c | 15 +--- .../kernel/syscalls/listxattr/listxattr01.c | 14 +--- .../kernel/syscalls/listxattr/listxattr02.c | 14 +--- .../kernel/syscalls/listxattr/listxattr03.c | 14 +--- .../kernel/syscalls/llistxattr/llistxattr01.c | 12 +--- .../kernel/syscalls/llistxattr/llistxattr02.c | 12 +--- .../kernel/syscalls/llistxattr/llistxattr03.c | 12 +--- testcases/kernel/syscalls/lseek/lseek01.c | 16 +---- testcases/kernel/syscalls/lseek/lseek02.c | 19 +---- testcases/kernel/syscalls/lseek/lseek07.c | 16 +---- testcases/kernel/syscalls/lseek/lseek11.c | 47 +++++------- testcases/kernel/syscalls/madvise/madvise01.c | 13 +--- testcases/kernel/syscalls/madvise/madvise02.c | 13 +--- testcases/kernel/syscalls/madvise/madvise05.c | 11 +-- testcases/kernel/syscalls/madvise/madvise06.c | 14 +--- testcases/kernel/syscalls/madvise/madvise07.c | 14 +--- testcases/kernel/syscalls/madvise/madvise08.c | 14 +--- testcases/kernel/syscalls/madvise/madvise09.c | 14 +--- testcases/kernel/syscalls/madvise/madvise10.c | 11 +-- testcases/kernel/syscalls/mbind/mbind01.c | 14 +--- .../syscalls/memfd_create/memfd_create01.c | 12 +--- .../syscalls/memfd_create/memfd_create02.c | 12 +--- .../syscalls/memfd_create/memfd_create03.c | 11 +-- .../syscalls/memfd_create/memfd_create04.c | 11 +-- .../memfd_create/memfd_create_common.c | 12 +--- .../syscalls/migrate_pages/migrate_pages02.c | 21 +----- .../syscalls/migrate_pages/migrate_pages03.c | 14 +--- testcases/kernel/syscalls/mkdir/mkdir02.c | 16 +---- testcases/kernel/syscalls/mkdir/mkdir03.c | 19 +---- testcases/kernel/syscalls/mkdir/mkdir04.c | 16 +---- testcases/kernel/syscalls/mkdir/mkdir05.c | 18 +---- testcases/kernel/syscalls/mkdirat/mkdirat02.c | 13 +--- testcases/kernel/syscalls/mmap/mmap12.c | 15 +--- .../kernel/syscalls/mq_notify/mq_notify01.c | 14 +--- testcases/kernel/syscalls/mq_open/mq_open01.c | 15 +--- .../kernel/syscalls/mq_unlink/mq_unlink01.c | 15 +--- testcases/kernel/syscalls/msync/msync04.c | 14 +--- testcases/kernel/syscalls/nice/nice01.c | 19 +---- testcases/kernel/syscalls/nice/nice02.c | 19 +---- testcases/kernel/syscalls/nice/nice03.c | 19 +---- testcases/kernel/syscalls/nice/nice04.c | 19 +---- testcases/kernel/syscalls/open/open01.c | 19 +---- testcases/kernel/syscalls/open/open02.c | 19 +---- testcases/kernel/syscalls/open/open08.c | 15 +--- testcases/kernel/syscalls/pause/pause01.c | 13 +--- testcases/kernel/syscalls/pipe/pipe01.c | 14 +--- testcases/kernel/syscalls/pipe/pipe02.c | 16 +---- testcases/kernel/syscalls/pipe/pipe03.c | 16 +---- testcases/kernel/syscalls/pipe/pipe11.c | 19 +---- testcases/kernel/syscalls/poll/poll01.c | 19 +---- testcases/kernel/syscalls/ppoll/ppoll01.c | 11 +-- testcases/kernel/syscalls/preadv/preadv01.c | 12 +--- testcases/kernel/syscalls/preadv/preadv02.c | 12 +--- testcases/kernel/syscalls/preadv/preadv03.c | 14 +--- testcases/kernel/syscalls/pselect/pselect03.c | 14 +--- testcases/kernel/syscalls/ptrace/ptrace07.c | 14 +--- testcases/kernel/syscalls/pwrite/pwrite02.c | 17 +---- testcases/kernel/syscalls/pwrite/pwrite03.c | 14 +--- testcases/kernel/syscalls/pwritev/pwritev01.c | 12 +--- testcases/kernel/syscalls/pwritev/pwritev02.c | 12 +--- testcases/kernel/syscalls/pwritev/pwritev03.c | 14 +--- .../kernel/syscalls/quotactl/quotactl01.c | 18 +---- .../kernel/syscalls/quotactl/quotactl02.c | 13 +--- .../kernel/syscalls/quotactl/quotactl03.c | 14 +--- testcases/kernel/syscalls/read/read01.c | 29 +------- testcases/kernel/syscalls/read/read02.c | 19 +---- .../kernel/syscalls/readlink/readlink01.c | 15 +--- .../kernel/syscalls/readlink/readlink03.c | 15 +--- testcases/kernel/syscalls/recvmsg/recvmsg02.c | 14 +--- testcases/kernel/syscalls/recvmsg/recvmsg03.c | 12 +--- .../syscalls/request_key/request_key01.c | 12 +--- .../syscalls/request_key/request_key02.c | 14 +--- .../syscalls/request_key/request_key03.c | 14 +--- .../syscalls/request_key/request_key04.c | 14 +--- .../syscalls/request_key/request_key05.c | 14 +--- testcases/kernel/syscalls/rmdir/rmdir01.c | 16 +---- testcases/kernel/syscalls/rmdir/rmdir02.c | 18 +---- testcases/kernel/syscalls/rmdir/rmdir03.c | 16 +---- .../syscalls/rt_sigsuspend/rt_sigsuspend01.c | 12 ++-- testcases/kernel/syscalls/sbrk/sbrk03.c | 14 +--- .../sched_setscheduler/sched_setscheduler03.c | 14 +--- testcases/kernel/syscalls/sendto/sendto02.c | 12 +--- .../syscalls/setpriority/setpriority01.c | 16 +---- .../syscalls/setpriority/setpriority02.c | 16 +---- .../kernel/syscalls/setrlimit/setrlimit02.c | 19 +---- .../kernel/syscalls/setrlimit/setrlimit03.c | 17 +---- .../kernel/syscalls/setrlimit/setrlimit04.c | 30 +++----- .../kernel/syscalls/setrlimit/setrlimit05.c | 11 +-- .../kernel/syscalls/setsockopt/setsockopt02.c | 14 +--- .../kernel/syscalls/setsockopt/setsockopt03.c | 14 +--- testcases/kernel/syscalls/setuid/setuid01.c | 16 +---- testcases/kernel/syscalls/setuid/setuid03.c | 16 +---- testcases/kernel/syscalls/setuid/setuid04.c | 16 +---- .../kernel/syscalls/setxattr/setxattr01.c | 21 +----- .../kernel/syscalls/setxattr/setxattr02.c | 21 +----- testcases/kernel/syscalls/socket/socket01.c | 16 +---- testcases/kernel/syscalls/socket/socket02.c | 16 +---- .../kernel/syscalls/socketcall/socketcall01.c | 14 +--- .../kernel/syscalls/socketpair/socketpair01.c | 16 +---- .../kernel/syscalls/socketpair/socketpair02.c | 16 +---- testcases/kernel/syscalls/splice/splice01.c | 17 +---- testcases/kernel/syscalls/splice/splice02.c | 29 ++------ testcases/kernel/syscalls/splice/splice03.c | 13 +--- testcases/kernel/syscalls/splice/splice04.c | 21 +----- testcases/kernel/syscalls/splice/splice05.c | 15 +--- .../kernel/syscalls/switch/endian_switch01.c | 14 +--- testcases/kernel/syscalls/syscall/syscall01.c | 17 +---- testcases/kernel/syscalls/sysctl/sysctl03.c | 13 +--- testcases/kernel/syscalls/sysctl/sysctl04.c | 13 +--- testcases/kernel/syscalls/tee/tee01.c | 29 ++------ testcases/kernel/syscalls/tee/tee02.c | 13 +--- testcases/kernel/syscalls/times/times03.c | 17 +---- testcases/kernel/syscalls/umask/umask01.c | 17 +---- testcases/kernel/syscalls/umount/umount01.c | 23 ++---- testcases/kernel/syscalls/umount/umount02.c | 34 +++------ testcases/kernel/syscalls/umount/umount03.c | 21 ++---- testcases/kernel/syscalls/uname/uname04.c | 14 +--- testcases/kernel/syscalls/unlink/unlink05.c | 14 +--- testcases/kernel/syscalls/unlink/unlink07.c | 14 +--- testcases/kernel/syscalls/unlink/unlink08.c | 14 +--- testcases/kernel/syscalls/utils/mq.h | 14 +--- testcases/kernel/syscalls/utimes/utimes01.c | 15 +--- .../kernel/syscalls/vmsplice/vmsplice01.c | 29 ++------ .../kernel/syscalls/vmsplice/vmsplice02.c | 13 +--- testcases/kernel/syscalls/wait4/wait401.c | 17 +---- testcases/kernel/syscalls/waitpid/waitpid01.c | 17 +---- testcases/kernel/syscalls/waitpid/waitpid09.c | 21 +----- .../kernel/syscalls/waitpid/waitpid_common.h | 15 +--- testcases/kernel/syscalls/write/write01.c | 20 +----- testcases/kernel/syscalls/write/write02.c | 14 +--- testcases/kernel/syscalls/write/write03.c | 17 +---- testcases/kernel/syscalls/write/write04.c | 17 +---- testcases/kernel/syscalls/write/write05.c | 17 +---- testcases/kernel/syscalls/writev/writev01.c | 16 +---- testcases/kernel/syscalls/writev/writev07.c | 11 +-- .../tracing/dynamic_debug/dynamic_debug01.sh | 31 ++------ testcases/lib/tst_checkpoint.c | 15 +--- testcases/lib/tst_device.c | 15 +--- testcases/lib/tst_kvcmp.c | 15 +--- testcases/lib/tst_net_iface_prefix.c | 14 +--- testcases/lib/tst_net_ip_prefix.c | 14 +--- testcases/lib/tst_net_vars.c | 14 +--- testcases/lib/tst_test.sh | 22 +----- testcases/network/lib6/in6_01.c | 21 +----- testcases/network/lib6/in6_02.c | 18 +---- testcases/network/netstress/netstress.c | 16 +---- .../network/nfs/nfs_stress/nfs05_make_tree.c | 18 +---- 373 files changed, 754 insertions(+), 5731 deletions(-)
Signature · 1 line
2.21.0
PATCH 1/3 doc: Use SPDX license identifier
--- doc/c-test-tutorial-simple.txt | 30 +++--------------------------- doc/test-writing-guidelines.txt | 27 ++++++++++----------------- 2 files changed, 13 insertions(+), 44 deletions(-)
doc/c-test-tutorial-simple.txt +3 -27
@@ -111,21 +111,9 @@ kernel version if necessary. I will explain what the code does below. [source,c] ------------------------------------------------------------------------------ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Instruction Ignorer <"can't"@be.bothered.com> - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
@@ -190,20 +178,8 @@ following contents. [source,make] ------------------------------------------------------------------------------ -# Copyright (c) 2017 Linux Test Project -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it would be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2019 Linux Test Project top_srcdir ?= ../../../..
doc/test-writing-guidelines.txt +10 -17
@@ -153,7 +153,7 @@ separate patch. ~~~~~~~~~~~ Code contributed to LTP should be licensed under GPLv2+ (GNU GPL version 2 or -any later version). +any later version). Use `SPDX-License-Identifier: GPL-2.0-or-later`. 2. Writing a testcase ---------------------
@@ -1686,9 +1686,8 @@ WARNING: All identifiers starting with TST_ or tst_ are reserved for the [source,sh] ------------------------------------------------------------------------------- #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later # This is a basic test for true shell buildin -# TST_TESTFUNC=do_test . tst_test.sh
@@ -1734,9 +1733,8 @@ starts the test. [source,sh] ------------------------------------------------------------------------------- #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later # Example test with tests in separate functions -# TST_TESTFUNC=test TST_CNT=2
@@ -1765,9 +1763,8 @@ found they are executed one by one. The test number is passed to it in the '$1'. [source,sh] ------------------------------------------------------------------------------- #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later # Example test with tests in a single function -# TST_TESTFUNC=do_test TST_CNT=2
@@ -1794,10 +1791,9 @@ to it in the '$1'. [source,sh] ------------------------------------------------------------------------------- #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later # Example test with tests in a single function, using $TST_TEST_DATA and # $TST_TEST_DATA_IFS -# TST_TESTFUNC=do_test TST_TEST_DATA="foo:bar:d dd"
@@ -1822,9 +1818,8 @@ It's possible to pass data for function with '$TST_TEST_DATA'. Optional [source,sh] ------------------------------------------------------------------------------- #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later # Example test with tests in a single function, using $TST_TEST_DATA and $TST_CNT -# TST_TESTFUNC=do_test TST_CNT=2
@@ -1924,9 +1919,8 @@ variable, if module wasn't found the test will exit with 'TCONF'. [source,sh] ------------------------------------------------------------------------------- #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later # Optional test command line parameters -# TST_OPTS="af:" TST_USAGE=usage
@@ -1978,9 +1972,8 @@ and, if option has argument, its value in the '$2'. [source,sh] ------------------------------------------------------------------------------- #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later # Optional test positional parameters -# TST_POS_ARGS=3 TST_USAGE=usage
@@ -2294,9 +2287,9 @@ correct daemon name. [source,sh] ------------------------------------------------------------------------------- #!/bin/sh -# +# SPDX-License-Identifier: GPL-2.0-or-later # Cron daemon restart example -# + TCID=cron01 TST_COUNT=1 . test.sh
Signature · 1 line
2.21.0
PATCH 2/3 c: Replace GPL verbose text by SPDX license identifier
In reply to Petr Vorelin tests which use new C API.
Replaced by script, a few scripts manually fixed. Remove unused comments (e.g. "testing foo syscall" in foo01.c). Respect previous v2 only GPL version in inotify04.c.
--- include/tst_taint.h | 14 +--- include/tst_timer_test.h | 14 +--- lib/newlib_tests/test01.c | 15 +--- lib/newlib_tests/test02.c | 15 +--- lib/newlib_tests/test03.c | 15 +--- lib/newlib_tests/test04.c | 15 +--- lib/newlib_tests/test05.c | 15 +--- lib/newlib_tests/test06.c | 15 +--- lib/newlib_tests/test07.c | 15 +--- lib/newlib_tests/test08.c | 15 +--- lib/newlib_tests/test09.c | 12 +--- lib/newlib_tests/test10.c | 12 +--- lib/newlib_tests/test11.c | 12 +--- lib/newlib_tests/test12.c | 12 +--- lib/newlib_tests/test13.c | 12 +--- lib/newlib_tests/test14.c | 15 +--- lib/newlib_tests/test15.c | 14 +--- lib/newlib_tests/test16.c | 14 +--- lib/newlib_tests/test17.c | 14 +--- lib/newlib_tests/test18.c | 14 +--- lib/newlib_tests/test19.c | 14 +--- lib/newlib_tests/test_exec.c | 15 +--- lib/newlib_tests/test_exec_child.c | 15 +--- lib/newlib_tests/tst_device.c | 14 +--- lib/newlib_tests/tst_expiration_timer.c | 15 +--- lib/newlib_tests/tst_res_hexd.c | 14 +--- lib/newlib_tests/tst_safe_fileops.c | 14 +--- lib/newlib_tests/tst_strstatus.c | 15 +--- lib/safe_pthread.c | 14 +--- lib/tst_crypto.c | 14 +--- lib/tst_fill_fs.c | 14 +--- lib/tst_safe_macros.c | 14 +--- lib/tst_safe_sysv_ipc.c | 14 +--- lib/tst_sig_proc.c | 11 +-- lib/tst_status.c | 14 +--- lib/tst_supported_fs_types.c | 14 +--- lib/tst_test.c | 14 +--- lib/tst_timer_test.c | 14 +--- testcases/cve/cve-2014-0196.c | 14 +--- testcases/cve/cve-2015-3290.c | 23 +----- testcases/cve/cve-2016-10044.c | 14 +--- testcases/cve/cve-2016-7042.c | 14 +--- testcases/cve/cve-2016-7117.c | 14 +--- testcases/cve/cve-2017-16939.c | 14 +--- testcases/cve/cve-2017-17052.c | 14 +--- testcases/cve/cve-2017-17053.c | 14 +--- testcases/cve/cve-2017-2618.c | 14 +--- testcases/cve/cve-2017-2671.c | 14 +--- testcases/cve/meltdown.c | 16 +---- testcases/cve/stack_clash.c | 16 +---- .../memcg/functional/memcg_process.c | 26 ++----- .../memcg/regression/memcg_test_3.c | 14 +--- testcases/kernel/crypto/pcrypt_aead01.c | 22 +----- testcases/kernel/fs/fs_fill/fs_fill.c | 14 +--- testcases/kernel/fs/read_all/read_all.c | 14 +--- testcases/kernel/lib/ksm_helper.c | 14 +--- testcases/kernel/logging/kmsg/kmsg01.c | 21 +----- .../kernel/mem/hugetlb/hugemmap/hugemmap05.c | 14 +--- testcases/kernel/mem/hugetlb/lib/hugetlb.h | 17 +---- testcases/kernel/mem/ksm/ksm05.c | 11 +-- testcases/kernel/mem/ksm/ksm_common.h | 11 +-- .../kernel/mem/mmapstress/mmapstress04.c | 14 +--- testcases/kernel/mem/mtest06/mmap3.c | 27 ++----- testcases/kernel/mem/mtest07/mallocstress.c | 72 +++---------------- testcases/kernel/mem/thp/thp01.c | 11 +-- testcases/kernel/pty/pty02.c | 14 +--- .../kernel/sched/autogroup/autogroup01.c | 14 +--- testcases/kernel/security/dirtyc0w/dirtyc0w.c | 14 +--- .../kernel/security/dirtyc0w/dirtyc0w_child.c | 14 +--- .../security/integrity/ima/src/ima_mmap.c | 13 +--- testcases/kernel/syscalls/access/access01.c | 21 +----- testcases/kernel/syscalls/access/access02.c | 20 +----- testcases/kernel/syscalls/access/access03.c | 21 +----- testcases/kernel/syscalls/access/access04.c | 18 +---- testcases/kernel/syscalls/add_key/add_key01.c | 27 ++----- testcases/kernel/syscalls/add_key/add_key02.c | 24 ++----- testcases/kernel/syscalls/add_key/add_key03.c | 14 +--- testcases/kernel/syscalls/add_key/add_key04.c | 14 +--- testcases/kernel/syscalls/alarm/alarm05.c | 19 +---- testcases/kernel/syscalls/alarm/alarm06.c | 30 ++------ testcases/kernel/syscalls/brk/brk01.c | 14 +--- testcases/kernel/syscalls/chdir/chdir03.c | 17 +---- testcases/kernel/syscalls/chmod/chmod06.c | 19 +---- .../syscalls/clock_getres/clock_getres01.c | 35 +++------ .../clock_nanosleep/clock_nanosleep01.c | 15 +--- .../clock_nanosleep2/clock_nanosleep2_01.c | 24 ++----- testcases/kernel/syscalls/clone/clone08.c | 12 +--- testcases/kernel/syscalls/clone/clone09.c | 14 +--- testcases/kernel/syscalls/creat/creat01.c | 19 +---- testcases/kernel/syscalls/creat/creat03.c | 19 +---- testcases/kernel/syscalls/creat/creat04.c | 19 +---- testcases/kernel/syscalls/creat/creat05.c | 19 +---- testcases/kernel/syscalls/creat/creat06.c | 19 +---- testcases/kernel/syscalls/creat/creat07.c | 17 +---- .../kernel/syscalls/creat/creat07_child.c | 17 +---- .../syscalls/epoll_create1/epoll_create1_01.c | 21 +----- .../kernel/syscalls/epoll_ctl/epoll_ctl01.c | 12 +--- .../kernel/syscalls/epoll_ctl/epoll_ctl02.c | 12 +--- .../kernel/syscalls/epoll_wait/epoll_wait01.c | 14 +--- testcases/kernel/syscalls/execl/execl01.c | 15 +--- .../kernel/syscalls/execl/execl01_child.c | 14 +--- testcases/kernel/syscalls/execle/execle01.c | 15 +--- .../kernel/syscalls/execle/execle01_child.c | 14 +--- testcases/kernel/syscalls/execlp/execlp01.c | 16 +---- .../kernel/syscalls/execlp/execlp01_child.c | 14 +--- testcases/kernel/syscalls/execv/execv01.c | 15 +--- .../kernel/syscalls/execv/execv01_child.c | 15 +--- testcases/kernel/syscalls/execve/execve01.c | 15 +--- .../kernel/syscalls/execve/execve01_child.c | 14 +--- testcases/kernel/syscalls/execve/execve02.c | 18 +---- testcases/kernel/syscalls/execve/execve03.c | 28 ++------ testcases/kernel/syscalls/execve/execve04.c | 18 +---- testcases/kernel/syscalls/execve/execve05.c | 18 +---- .../kernel/syscalls/execve/execve_child.c | 16 +---- .../kernel/syscalls/execveat/execveat03.c | 44 ++++-------- .../kernel/syscalls/execveat/execveat_child.c | 21 +----- testcases/kernel/syscalls/execvp/execvp01.c | 15 +--- .../kernel/syscalls/execvp/execvp01_child.c | 14 +--- testcases/kernel/syscalls/exit/exit02.c | 19 +---- .../kernel/syscalls/fallocate/fallocate04.c | 18 +---- .../kernel/syscalls/fallocate/fallocate05.c | 14 +--- testcases/kernel/syscalls/fchdir/fchdir03.c | 17 +---- testcases/kernel/syscalls/fchmod/fchmod06.c | 17 +---- testcases/kernel/syscalls/fcntl/fcntl02.c | 30 +------- testcases/kernel/syscalls/fcntl/fcntl03.c | 30 +------- testcases/kernel/syscalls/fcntl/fcntl04.c | 30 +------- testcases/kernel/syscalls/fcntl/fcntl34.c | 16 +---- testcases/kernel/syscalls/fcntl/fcntl35.c | 14 +--- testcases/kernel/syscalls/fcntl/fcntl36.c | 33 +++------ .../kernel/syscalls/flistxattr/flistxattr01.c | 14 +--- .../kernel/syscalls/flistxattr/flistxattr02.c | 12 +--- .../kernel/syscalls/flistxattr/flistxattr03.c | 14 +--- testcases/kernel/syscalls/fsync/fsync01.c | 30 +------- testcases/kernel/syscalls/getcwd/getcwd01.c | 16 +---- testcases/kernel/syscalls/getcwd/getcwd02.c | 16 +---- testcases/kernel/syscalls/getcwd/getcwd03.c | 16 +---- testcases/kernel/syscalls/getcwd/getcwd04.c | 11 +-- .../syscalls/getpriority/getpriority01.c | 18 +---- .../syscalls/getpriority/getpriority02.c | 18 +---- .../kernel/syscalls/getrandom/getrandom01.c | 27 +------ .../kernel/syscalls/getrandom/getrandom02.c | 29 ++------ .../kernel/syscalls/getrandom/getrandom03.c | 32 ++------- .../kernel/syscalls/getrandom/getrandom04.c | 32 ++------- .../kernel/syscalls/getsockopt/getsockopt02.c | 14 +--- .../syscalls/gettimeofday/gettimeofday02.c | 15 +--- .../kernel/syscalls/getxattr/getxattr04.c | 14 +--- testcases/kernel/syscalls/inotify/inotify01.c | 23 +----- testcases/kernel/syscalls/inotify/inotify02.c | 23 +----- testcases/kernel/syscalls/inotify/inotify03.c | 25 +------ testcases/kernel/syscalls/inotify/inotify04.c | 28 +------- testcases/kernel/syscalls/inotify/inotify05.c | 19 +---- testcases/kernel/syscalls/inotify/inotify06.c | 19 +---- testcases/kernel/syscalls/inotify/inotify07.c | 23 +----- testcases/kernel/syscalls/inotify/inotify08.c | 24 +------ testcases/kernel/syscalls/inotify/inotify09.c | 17 +---- .../kernel/syscalls/io_destroy/io_destroy01.c | 15 +--- .../kernel/syscalls/io_setup/io_setup01.c | 15 +--- .../kernel/syscalls/io_submit/io_submit01.c | 15 +--- testcases/kernel/syscalls/ioctl/ioctl03.c | 34 ++------- testcases/kernel/syscalls/ioctl/ioctl04.c | 14 +--- testcases/kernel/syscalls/ioctl/ioctl05.c | 14 +--- testcases/kernel/syscalls/ioctl/ioctl06.c | 14 +--- testcases/kernel/syscalls/ioctl/ioctl07.c | 14 +--- .../kernel/syscalls/ipc/libnewipc/libnewipc.c | 14 +--- .../kernel/syscalls/ipc/msgctl/msgctl01.c | 17 +---- .../kernel/syscalls/ipc/msgctl/msgctl02.c | 17 +---- .../kernel/syscalls/ipc/msgctl/msgctl03.c | 12 +--- .../kernel/syscalls/ipc/msgctl/msgctl04.c | 17 +---- .../kernel/syscalls/ipc/msgctl/msgctl12.c | 12 +--- .../kernel/syscalls/ipc/msgget/msgget01.c | 16 +---- .../kernel/syscalls/ipc/msgget/msgget02.c | 16 +---- .../kernel/syscalls/ipc/msgget/msgget03.c | 16 +---- .../kernel/syscalls/ipc/msgsnd/msgsnd01.c | 16 +---- .../kernel/syscalls/ipc/msgsnd/msgsnd02.c | 16 +---- .../kernel/syscalls/ipc/msgsnd/msgsnd05.c | 16 +---- .../kernel/syscalls/ipc/msgsnd/msgsnd06.c | 16 +---- testcases/kernel/syscalls/ipc/shmat/shmat01.c | 17 +---- testcases/kernel/syscalls/ipc/shmat/shmat02.c | 16 +---- testcases/kernel/syscalls/ipc/shmat/shmat03.c | 14 +--- .../kernel/syscalls/ipc/shmctl/shmctl05.c | 14 +--- testcases/kernel/syscalls/kcmp/kcmp01.c | 15 +--- testcases/kernel/syscalls/kcmp/kcmp02.c | 15 +--- testcases/kernel/syscalls/kcmp/kcmp03.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl01.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl02.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl03.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl04.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl05.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl06.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl07.c | 14 +--- testcases/kernel/syscalls/keyctl/keyctl08.c | 14 +--- .../kernel/syscalls/lgetxattr/lgetxattr01.c | 12 +--- .../kernel/syscalls/lgetxattr/lgetxattr02.c | 13 +--- testcases/kernel/syscalls/link/link08.c | 15 +--- .../kernel/syscalls/listxattr/listxattr01.c | 14 +--- .../kernel/syscalls/listxattr/listxattr02.c | 14 +--- .../kernel/syscalls/listxattr/listxattr03.c | 14 +--- .../kernel/syscalls/llistxattr/llistxattr01.c | 12 +--- .../kernel/syscalls/llistxattr/llistxattr02.c | 12 +--- .../kernel/syscalls/llistxattr/llistxattr03.c | 12 +--- testcases/kernel/syscalls/lseek/lseek01.c | 16 +---- testcases/kernel/syscalls/lseek/lseek02.c | 19 +---- testcases/kernel/syscalls/lseek/lseek07.c | 16 +---- testcases/kernel/syscalls/lseek/lseek11.c | 47 +++++------- testcases/kernel/syscalls/madvise/madvise01.c | 13 +--- testcases/kernel/syscalls/madvise/madvise02.c | 13 +--- testcases/kernel/syscalls/madvise/madvise05.c | 11 +-- testcases/kernel/syscalls/madvise/madvise06.c | 14 +--- testcases/kernel/syscalls/madvise/madvise07.c | 14 +--- testcases/kernel/syscalls/madvise/madvise08.c | 14 +--- testcases/kernel/syscalls/madvise/madvise09.c | 14 +--- testcases/kernel/syscalls/madvise/madvise10.c | 11 +-- testcases/kernel/syscalls/mbind/mbind01.c | 14 +--- .../syscalls/memfd_create/memfd_create01.c | 12 +--- .../syscalls/memfd_create/memfd_create02.c | 12 +--- .../syscalls/memfd_create/memfd_create03.c | 11 +-- .../syscalls/memfd_create/memfd_create04.c | 11 +-- .../memfd_create/memfd_create_common.c | 12 +--- .../syscalls/migrate_pages/migrate_pages02.c | 21 +----- .../syscalls/migrate_pages/migrate_pages03.c | 14 +--- testcases/kernel/syscalls/mkdir/mkdir02.c | 16 +---- testcases/kernel/syscalls/mkdir/mkdir03.c | 19 +---- testcases/kernel/syscalls/mkdir/mkdir04.c | 16 +---- testcases/kernel/syscalls/mkdir/mkdir05.c | 18 +---- testcases/kernel/syscalls/mkdirat/mkdirat02.c | 13 +--- testcases/kernel/syscalls/mmap/mmap12.c | 15 +--- .../kernel/syscalls/mq_notify/mq_notify01.c | 14 +--- testcases/kernel/syscalls/mq_open/mq_open01.c | 15 +--- .../kernel/syscalls/mq_unlink/mq_unlink01.c | 15 +--- testcases/kernel/syscalls/msync/msync04.c | 14 +--- testcases/kernel/syscalls/nice/nice01.c | 19 +---- testcases/kernel/syscalls/nice/nice02.c | 19 +---- testcases/kernel/syscalls/nice/nice03.c | 19 +---- testcases/kernel/syscalls/nice/nice04.c | 19 +---- testcases/kernel/syscalls/open/open01.c | 19 +---- testcases/kernel/syscalls/open/open02.c | 19 +---- testcases/kernel/syscalls/open/open08.c | 15 +--- testcases/kernel/syscalls/pause/pause01.c | 13 +--- testcases/kernel/syscalls/pipe/pipe01.c | 14 +--- testcases/kernel/syscalls/pipe/pipe02.c | 16 +---- testcases/kernel/syscalls/pipe/pipe03.c | 16 +---- testcases/kernel/syscalls/pipe/pipe11.c | 19 +---- testcases/kernel/syscalls/poll/poll01.c | 19 +---- testcases/kernel/syscalls/ppoll/ppoll01.c | 11 +-- testcases/kernel/syscalls/preadv/preadv01.c | 12 +--- testcases/kernel/syscalls/preadv/preadv02.c | 12 +--- testcases/kernel/syscalls/preadv/preadv03.c | 14 +--- testcases/kernel/syscalls/pselect/pselect03.c | 14 +--- testcases/kernel/syscalls/ptrace/ptrace07.c | 14 +--- testcases/kernel/syscalls/pwrite/pwrite02.c | 17 +---- testcases/kernel/syscalls/pwrite/pwrite03.c | 14 +--- testcases/kernel/syscalls/pwritev/pwritev01.c | 12 +--- testcases/kernel/syscalls/pwritev/pwritev02.c | 12 +--- testcases/kernel/syscalls/pwritev/pwritev03.c | 14 +--- .../kernel/syscalls/quotactl/quotactl01.c | 18 +---- .../kernel/syscalls/quotactl/quotactl02.c | 13 +--- .../kernel/syscalls/quotactl/quotactl03.c | 14 +--- testcases/kernel/syscalls/read/read01.c | 29 +------- testcases/kernel/syscalls/read/read02.c | 19 +---- .../kernel/syscalls/readlink/readlink01.c | 15 +--- .../kernel/syscalls/readlink/readlink03.c | 15 +--- testcases/kernel/syscalls/recvmsg/recvmsg02.c | 14 +--- testcases/kernel/syscalls/recvmsg/recvmsg03.c | 12 +--- .../syscalls/request_key/request_key01.c | 12 +--- .../syscalls/request_key/request_key02.c | 14 +--- .../syscalls/request_key/request_key03.c | 14 +--- .../syscalls/request_key/request_key04.c | 14 +--- .../syscalls/request_key/request_key05.c | 14 +--- testcases/kernel/syscalls/rmdir/rmdir01.c | 16 +---- testcases/kernel/syscalls/rmdir/rmdir02.c | 18 +---- testcases/kernel/syscalls/rmdir/rmdir03.c | 16 +---- .../syscalls/rt_sigsuspend/rt_sigsuspend01.c | 12 ++-- testcases/kernel/syscalls/sbrk/sbrk03.c | 14 +--- .../sched_setscheduler/sched_setscheduler03.c | 14 +--- testcases/kernel/syscalls/sendto/sendto02.c | 12 +--- .../syscalls/setpriority/setpriority01.c | 16 +---- .../syscalls/setpriority/setpriority02.c | 16 +---- .../kernel/syscalls/setrlimit/setrlimit02.c | 19 +---- .../kernel/syscalls/setrlimit/setrlimit03.c | 17 +---- .../kernel/syscalls/setrlimit/setrlimit04.c | 30 +++----- .../kernel/syscalls/setrlimit/setrlimit05.c | 11 +-- .../kernel/syscalls/setsockopt/setsockopt02.c | 14 +--- .../kernel/syscalls/setsockopt/setsockopt03.c | 14 +--- testcases/kernel/syscalls/setuid/setuid01.c | 16 +---- testcases/kernel/syscalls/setuid/setuid03.c | 16 +---- testcases/kernel/syscalls/setuid/setuid04.c | 16 +---- .../kernel/syscalls/setxattr/setxattr01.c | 21 +----- .../kernel/syscalls/setxattr/setxattr02.c | 21 +----- testcases/kernel/syscalls/socket/socket01.c | 16 +---- testcases/kernel/syscalls/socket/socket02.c | 16 +---- .../kernel/syscalls/socketcall/socketcall01.c | 14 +--- .../kernel/syscalls/socketpair/socketpair01.c | 16 +---- .../kernel/syscalls/socketpair/socketpair02.c | 16 +---- testcases/kernel/syscalls/splice/splice01.c | 17 +---- testcases/kernel/syscalls/splice/splice02.c | 29 ++------ testcases/kernel/syscalls/splice/splice03.c | 13 +--- testcases/kernel/syscalls/splice/splice04.c | 21 +----- testcases/kernel/syscalls/splice/splice05.c | 15 +--- .../kernel/syscalls/switch/endian_switch01.c | 14 +--- testcases/kernel/syscalls/syscall/syscall01.c | 17 +---- testcases/kernel/syscalls/sysctl/sysctl03.c | 13 +--- testcases/kernel/syscalls/sysctl/sysctl04.c | 13 +--- testcases/kernel/syscalls/tee/tee01.c | 29 ++------ testcases/kernel/syscalls/tee/tee02.c | 13 +--- testcases/kernel/syscalls/times/times03.c | 17 +---- testcases/kernel/syscalls/umask/umask01.c | 17 +---- testcases/kernel/syscalls/umount/umount01.c | 23 ++---- testcases/kernel/syscalls/umount/umount02.c | 34 +++------ testcases/kernel/syscalls/umount/umount03.c | 21 ++---- testcases/kernel/syscalls/uname/uname04.c | 14 +--- testcases/kernel/syscalls/unlink/unlink05.c | 14 +--- testcases/kernel/syscalls/unlink/unlink07.c | 14 +--- testcases/kernel/syscalls/unlink/unlink08.c | 14 +--- testcases/kernel/syscalls/utils/mq.h | 14 +--- testcases/kernel/syscalls/utimes/utimes01.c | 15 +--- .../kernel/syscalls/vmsplice/vmsplice01.c | 29 ++------ .../kernel/syscalls/vmsplice/vmsplice02.c | 13 +--- testcases/kernel/syscalls/wait4/wait401.c | 17 +---- testcases/kernel/syscalls/waitpid/waitpid01.c | 17 +---- testcases/kernel/syscalls/waitpid/waitpid09.c | 21 +----- .../kernel/syscalls/waitpid/waitpid_common.h | 15 +--- testcases/kernel/syscalls/write/write01.c | 20 +----- testcases/kernel/syscalls/write/write02.c | 14 +--- testcases/kernel/syscalls/write/write03.c | 17 +---- testcases/kernel/syscalls/write/write04.c | 17 +---- testcases/kernel/syscalls/write/write05.c | 17 +---- testcases/kernel/syscalls/writev/writev01.c | 16 +---- testcases/kernel/syscalls/writev/writev07.c | 11 +-- testcases/lib/tst_checkpoint.c | 15 +--- testcases/lib/tst_device.c | 15 +--- testcases/lib/tst_kvcmp.c | 15 +--- testcases/lib/tst_net_iface_prefix.c | 14 +--- testcases/lib/tst_net_ip_prefix.c | 14 +--- testcases/lib/tst_net_vars.c | 14 +--- testcases/network/lib6/in6_01.c | 21 +----- testcases/network/lib6/in6_02.c | 18 +---- testcases/network/netstress/netstress.c | 16 +---- .../network/nfs/nfs_stress/nfs05_make_tree.c | 18 +---- 338 files changed, 610 insertions(+), 5032 deletions(-)
include/tst_taint.h +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Michael Moese <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Usage example
include/tst_timer_test.h +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
lib/newlib_tests/test01.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test02.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test03.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test04.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test05.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test06.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test07.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test08.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test09.c +1 -11
@@ -1,16 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* */ /*
lib/newlib_tests/test10.c +1 -11
@@ -1,16 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* */ /*
lib/newlib_tests/test11.c +1 -11
@@ -1,16 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* */ /*
lib/newlib_tests/test12.c +1 -11
@@ -1,16 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* */ /*
lib/newlib_tests/test13.c +1 -11
@@ -1,16 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* */ /*
lib/newlib_tests/test14.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "tst_test.h"
lib/newlib_tests/test15.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Richard Palethorpe <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
lib/newlib_tests/test16.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Richard Palethorpe <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Basic functionality test for tst_fuzzy_sync.h similar to the atomic tests * (test15.c). One thread writes to the odd indexes of an array while the
lib/newlib_tests/test17.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Richard Palethorpe <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Basic functionality test for tst_fuzzy_sync.h similar to the atomic tests * (test15.c). One thread writes to the odd indexes of an array while the
lib/newlib_tests/test18.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018, Linux Test Project -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdlib.h>
lib/newlib_tests/test19.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018, Linux Test Project -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdlib.h>
lib/newlib_tests/test_exec.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/test_exec_child.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #define TST_NO_DEFAULT_MAIN
lib/newlib_tests/tst_device.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdlib.h>
lib/newlib_tests/tst_expiration_timer.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/newlib_tests/tst_res_hexd.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdio.h>
lib/newlib_tests/tst_safe_fileops.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdio.h>
lib/newlib_tests/tst_strstatus.c +1 -14
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /*
lib/safe_pthread.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Oracle and/or its affiliates. All Rights Reserved. -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <pthread.h>
lib/tst_crypto.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Richard Palethorpe <[email protected]> * Nicolai Stange <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
lib/tst_fill_fs.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
lib/tst_safe_macros.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define _GNU_SOURCE
lib/tst_safe_sysv_ipc.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Xiao yang <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <sys/types.h>
lib/tst_sig_proc.c +1 -10
@@ -1,15 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Linux Test Project -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. */ #include <stdlib.h>
lib/tst_status.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <sys/types.h>
lib/tst_supported_fs_types.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdio.h>
lib/tst_test.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2015-2016 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdio.h>
lib/tst_timer_test.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <sys/prctl.h>
testcases/cve/cve-2014-0196.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Richard Palethorpe <[email protected]> * Original POC by Matthew Daley <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * This test attempts to cause a buffer overflow using the race condition
testcases/cve/cve-2015-3290.c +1 -22
@@ -1,27 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Pavel Boldin <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -* -* Original exploit: http://www.openwall.com/lists/oss-security/2015/08/04/8 -* -* Copyright (c) 2015 Andrew Lutomirski. -* GPL v2 -* -* Build with -O2. Don't use -fno-omit-frame-pointer. -* -* Thanks to Petr Matousek for pointing out a bug in the exploit. */ /*
testcases/cve/cve-2016-10044.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Richard Palethorpe <[email protected]> * Copyright (c) 2016 Jan Horn <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * Test for CVE-2016-10044, which was fixed in commit
testcases/cve/cve-2016-7042.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Fujitsu Ltd. * Author: Guangwen Feng <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program, if not, see <http://www.gnu.org/licenses/>. */ /*
testcases/cve/cve-2016-7117.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Richard Palethorpe <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * CVE-2016-7117
testcases/cve/cve-2017-16939.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Michael Moese <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Regression test for commit: * 1137b5e2529a ipsec: Fix aborted xfrm policy dump crash aka CVE-2017-16939
testcases/cve/cve-2017-17052.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Michael Moese <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * Test for CVE-2017-17052, original reproducer taken from kernel commit:
testcases/cve/cve-2017-17053.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Michael Moese <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Regression test for CVE-2017-17053, original reproducer can be found * here:
testcases/cve/cve-2017-2618.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 FUJITSU LIMITED * Author: Guangwen Feng <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program, if not, see <http://www.gnu.org/licenses/>. */ /*
testcases/cve/cve-2017-2671.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Richard Palethorpe <[email protected]> * Original POC by Daniel Jiang -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * Test for CVE-2017-2671 faulty locking on ping socket
testcases/cve/meltdown.c +1 -15
@@ -1,20 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Pavel Boldin <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -* -* Original exploit: https://github.com/paboldin/meltdown-exploit. */ #include "config.h"
testcases/cve/stack_clash.c +1 -15
@@ -1,20 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Pavel Boldin <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -* -* Adapted from code by Michal Hocko. */ /* This is a regression test of the Stack Clash [1] vulnerability. This tests
testcases/kernel/controllers/memcg/functional/memcg_process.c +5 -21
@@ -1,24 +1,8 @@ -/******************************************************************************/ -/* */ -/* Copyright (c) 2009 FUJITSU LIMITED */ -/* */ -/* This program is free software; you can redistribute it and/or modify */ -/* it under the terms of the GNU General Public License as published by */ -/* the Free Software Foundation; either version 2 of the License, or */ -/* (at your option) any later version. */ -/* */ -/* This program is distributed in the hope that it will be useful, */ -/* but WITHOUT ANY WARRANTY; without even the implied warranty of */ -/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See */ -/* the GNU General Public License for more details. */ -/* */ -/* You should have received a copy of the GNU General Public License */ -/* along with this program; if not, write to the Free Software */ -/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -/* */ -/* Author: Li Zefan <[email protected]> */ -/* */ -/******************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Copyright (c) 2009 FUJITSU LIMITED +* Author: Li Zefan <[email protected]> +*/ #include <sys/types.h> #include <sys/mman.h>
testcases/kernel/controllers/memcg/regression/memcg_test_3.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 FUJITSU LIMITED. All rights reserved. * Author: Guangwen Feng <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program, if not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/crypto/pcrypt_aead01.c +1 -21
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 SUSE * Author: Nicolai Stange <[email protected]>
@@ -5,27 +6,6 @@* * Originally found by syzkaller: * https://groups.google.com/forum/#!topic/syzkaller-bugs/NKn_ivoPOpk -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, see <http://www.gnu.org/licenses/>. -* -* Test for CVE-2017-5754 - pcrypt mishandles freeing instances. -* -* The test works by adding and then removing pcrypt-AEAD instances. -* See commit d76c68109f37 crypto: pcrypt - fix freeing pcrypt instances. -* -* If the bug is present then this will probably crash the kernel, but also -* sometimes the test simply times out. */ #include <errno.h>
testcases/kernel/fs/fs_fill/fs_fill.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/fs/read_all/read_all.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Richard Palethorpe <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * Perform a small read on every file in a directory tree.
testcases/kernel/lib/ksm_helper.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. * Author(s): Xiao Yang <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program, if not, see <http://www.gnu.org/licenses/>. */ #define TST_NO_DEFAULT_MAIN
testcases/kernel/logging/kmsg/kmsg01.c +1 -20
@@ -1,25 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2013 Linux Test Project -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of version 2 of the GNU General Public -* License as published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it -* is free of the rightful claim of any third person regarding -* infringement or the like. Any license provided herein, whether -* implied or otherwise, applies only to this software file. Patent -* licenses, if any, provided herein do not apply to combinations of -* this program with other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -* 02110-1301, USA. */ /* * Test /dev/kmsg based on kernel doc: Documentation/ABI/testing/dev-kmsg
testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2010-2017 Red Hat, Inc. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* overcommit hugetlbfs and check the statistics. -* -* Description: -* * hugetlbfs allows to overcommit hugepages and there are tunables in * sysfs and procfs. The test here want to ensure it is possible to * overcommit by either mmap or shared memory. Also ensure those
testcases/kernel/mem/hugetlb/lib/hugetlb.h +2 -15
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * -* Copyright (c) International Business Machines Corp., 2001 -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* Copyright (c) International Business Machines Corp., 2001 */ /*
testcases/kernel/mem/ksm/ksm05.c +1 -10
@@ -1,16 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011-2017 Red Hat, Inc. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* * KSM - NULL pointer dereference in ksm_do_scan() (CVE-2011-2183) * * This is a testcase from upstream commit:
testcases/kernel/mem/ksm/ksm_common.h +1 -10
@@ -1,15 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2017 Red Hat, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. */ /*
testcases/kernel/mem/mmapstress/mmapstress04.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Red Hat, Inc. * 01/02/2003 Port to LTP [email protected] * 06/30/2001 Port to Linux [email protected] -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * Mmap parts of a file, and then write to the file causing single
testcases/kernel/mem/mtest06/mmap3.c +5 -22
@@ -1,26 +1,9 @@ -/****************************************************************************** -* * -* Copyright (c) International Business Machines Corp., 2001 * -* 2001 Created by Manoj Iyer, IBM Austin TX <[email protected]> * -* Copyright (C) 2016 Cyril Hrubis <[email protected]> * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * -* the GNU General Public License for more details. * -* * -* You should have received a copy of the GNU General Public License * -* along with this program; if not, write to the Free Software Foundation, * -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * -* * -******************************************************************************/ - +// SPDX-License-Identifier: GPL-2.0-or-later /* +* Copyright (c) International Business Machines Corp., 2001 +* Copyright (C) 2016 Cyril Hrubis <[email protected]> +* Author: Manoj Iyer, IBM Austin TX <[email protected]>, 2001 +* * Tests the LINUX memory manager. The program is aimed at stressing the memory * manager by repeaded map/write/unmap of file/memory of random size (maximum * 1GB) this is done by multiple threads.
testcases/kernel/mem/mtest07/mallocstress.c +9 -63
75 lines not on this page · raw message
testcases/kernel/mem/thp/thp01.c +1 -10
@@ -1,15 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011-2017 Red Hat, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. */ /* Description:
testcases/kernel/pty/pty02.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Google, Inc. -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program, if not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/sched/autogroup/autogroup01.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Fujitsu Ltd. * Ported: Guangwen Feng <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/security/dirtyc0w/dirtyc0w.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/security/dirtyc0w/dirtyc0w_child.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Cyril Hrubis <[email protected]> * Based on: https://github.com/dirtycow/dirtycow.github.io -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <sys/mman.h>
testcases/kernel/security/integrity/ima/src/ima_mmap.c +2 -11
@@ -1,18 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2009 +* Copyright (c) International Business Machines Corp., 2009 * * Authors: * Mimi Zohar <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation, version 2 of the -* License. -* -* File: ima_mmap.c -* -* Open and mmap a file and sleep. Another process will open the -* mmapped file in read mode, resulting in a open_writer violation. */ #include "tst_test.h"
testcases/kernel/syscalls/access/access01.c +1 -20
@@ -1,26 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : William Roske -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* */ /* * Basic test for access(2) using F_OK, R_OK, W_OK and X_OK
testcases/kernel/syscalls/access/access02.c +3 -17
@@ -1,20 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* -* Copyright (c) International Business Machines Corp., 2001 -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* Copyright (c) International Business Machines Corp., 2001 */ /*
@@ -28,7 +14,7 @@* As well as verify that, these test files can be * stat/read/written/executed indeed as root and nobody respectively. * -* 07/2001 Ported by Wayne Boyera +* Ported to LTP: Wayne Boyer * 06/2016 Modified by Guangwen Feng <[email protected]> */
testcases/kernel/syscalls/access/access03.c +1 -20
@@ -1,25 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* */ /*
testcases/kernel/syscalls/access/access04.c +3 -15
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * Copyright (c) 2013 Fujitsu Ltd. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, see <http://www.gnu.org/licenses/>. */ /*
@@ -31,7 +19,7 @@* 6) access() fails with -1 return value and sets errno to EROFS * if write permission was requested for files on a read-only file system. * -* 07/2001 Ported by Wayne Boyer +* Ported to LTP: Wayne Boyer * 11/2013 Ported by Xiaoguang Wang <[email protected]> * 11/2016 Modified by Guangwen Feng <[email protected]> */
testcases/kernel/syscalls/add_key/add_key01.c +5 -22
@@ -1,27 +1,10 @@ -/****************************************************************************** -* Copyright (c) Crackerjack Project., 2007 * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * -* the GNU General Public License for more details. * -* * -* You should have received a copy of the GNU General Public License * -* along with this program; if not, write to the Free Software Foundation, * -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * -* * -******************************************************************************/ - +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Basic test for the add_key() syscall. +* Copyright (c) Crackerjack Project., 2007 +* Porting from Crackerjack to LTP is done by +* Manas Kumar Nayak [email protected]> * -* History: Porting from Crackerjack to LTP is done by -* Manas Kumar Nayak [email protected]> +* Basic test for the add_key() syscall. */ #include <errno.h>
testcases/kernel/syscalls/add_key/add_key02.c +4 -20
@@ -1,24 +1,8 @@ -/****************************************************************************** -* Copyright (c) Crackerjack Project., 2007 * -* Copyright (c) 2017 Google, Inc. * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * -* the GNU General Public License for more details. * -* * -* You should have received a copy of the GNU General Public License * -* along with this program; if not, write to the Free Software Foundation, * -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * -* * -******************************************************************************/ - +// SPDX-License-Identifier: GPL-2.0-or-later /* +* Copyright (c) Crackerjack Project., 2007 +* Copyright (c) 2017 Google, Inc. +* * Test that the add_key() syscall correctly handles a NULL payload with nonzero * length. Specifically, it should fail with EFAULT rather than oopsing the * kernel with a NULL pointer dereference or failing with EINVAL, as it did
testcases/kernel/syscalls/add_key/add_key03.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Google, Inc. -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program, if not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/syscalls/add_key/add_key04.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Google, Inc. -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program, if not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/syscalls/alarm/alarm05.c +3 -16
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001,2005 -* 07/2001 Ported by Wayne Boyer +* Copyright (c) International Business Machines Corp., 2001,2005 +* Ported to LTP: Wayne Boyer * 06/2005 Test for alarm cleanup by Amos Waterland * * Copyright (c) 2018 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /*
testcases/kernel/syscalls/alarm/alarm06.c +7 -23
@@ -1,33 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * Copyright (C) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* Ported to LTP: Wayne Boyer */ /* -* Test Description: -* Check the functionality of the Alarm system call when the time input -* parameter is zero. +* Check the functionality of the Alarm system call when the time input +* parameter is zero. * * Expected Result: -* The previously specified alarm request should be cancelled and the -* SIGALRM should not be received. -* -* HISTORY -* 07/2001 Ported by Wayne Boyer +* The previously specified alarm request should be cancelled and the +* SIGALRM should not be received. */ #include <stdio.h>
testcases/kernel/syscalls/brk/brk01.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <unistd.h>
testcases/kernel/syscalls/chdir/chdir03.c +2 -15
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /*
testcases/kernel/syscalls/chmod/chmod06.c +3 -16
@@ -1,21 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 -* 07/2001 Ported by Wayne Boyer +* Copyright (c) International Business Machines Corp., 2001 +* Ported to LTP: Wayne Boyer * Copyright (c) 2014-2018 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /*
testcases/kernel/syscalls/clock_getres/clock_getres01.c +9 -26
@@ -1,30 +1,13 @@ -/****************************************************************************** -* Copyright (c) Crackerjack Project., 2007-2008 ,Hitachi, Ltd * -* Author(s): Takahiro Yasui <[email protected]>, * -* Yumiko Sugita <[email protected]>, * -* Satoshi Fujiwara <[email protected]> * -* LTP authors: * -* Manas Kumar Nayak [email protected]> * -* Zeng Linggang <[email protected]> * -* Cyril Hrubis <[email protected]> * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * -* the GNU General Public License for more details. * -* * -* You should have received a copy of the GNU General Public License * -* along with this program; if not, write to the Free Software Foundation, * -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * -* * -******************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Description: This tests the clock_getres() syscall +* Copyright (c) Crackerjack Project., 2007-2008 ,Hitachi, Ltd +* Authors: Takahiro Yasui <[email protected]>, +* Yumiko Sugita <[email protected]>, +* Satoshi Fujiwara <[email protected]> +* LTP authors: +* Manas Kumar Nayak [email protected]> +* Zeng Linggang <[email protected]> +* Cyril Hrubis <[email protected]> */ #include <errno.h>
testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c +1 -14
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) Crackerjack Project., 2007-2008 ,Hitachi, Ltd * Author(s): Takahiro Yasui <[email protected]>, * Yumiko Sugita <[email protected]>, * Satoshi Fujiwara <[email protected]> * Copyright (c) 2016 Linux Test Project -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include <limits.h>
testcases/kernel/syscalls/clock_nanosleep2/clock_nanosleep2_01.c +4 -20
@@ -1,25 +1,9 @@ -/****************************************************************************** -* Copyright (c) M. Koehrer <[email protected]>, 2009 * -* Copyright (C) 2017 Cyril Hrubis <[email protected]> * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * -* the GNU General Public License for more details. * -* * -* You should have received a copy of the GNU General Public License * -* along with this program; if not, write to the Free Software Foundation, * -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * -* * -******************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* This tests the clock_nanosleep2() syscall. +* Copyright (c) M. Koehrer <[email protected]>, 2009 +* Copyright (C) 2017 Cyril Hrubis <[email protected]> */ +#include <stdio.h> #include <time.h> #include <unistd.h>
testcases/kernel/syscalls/clone/clone08.c +1 -11
@@ -1,18 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Oracle and/or its affiliates. All Rights Reserved. * Copyright (c) 2013 Fujitsu Ltd. * Author: Zeng Linggang <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* You should have received a copy of the GNU General Public License along -* with this program. */ #define _GNU_SOURCE
testcases/kernel/syscalls/clone/clone09.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Oracle and/or its affiliates. All Rights Reserved. -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define _GNU_SOURCE
testcases/kernel/syscalls/creat/creat01.c +3 -16
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 -* 07/2001 Ported by Wayne Boyer -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* Copyright (c) International Business Machines Corp., 2001 +* Ported to LTP: Wayne Boyer */ /*
testcases/kernel/syscalls/creat/creat03.c +3 -16
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 -* 07/2001 Ported by Wayne Boyer -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* Copyright (c) International Business Machines Corp., 2001 +* Ported to LTP: Wayne Boyer */ /*
testcases/kernel/syscalls/creat/creat04.c +3 -16
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 -* 07/2001 Ported by Wayne Boyer -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* Copyright (c) International Business Machines Corp., 2001 +* Ported to LTP: Wayne Boyer */ /*
testcases/kernel/syscalls/creat/creat05.c +3 -16
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 -* 07/2001 Ported by Wayne Boyer -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* Copyright (c) International Business Machines Corp., 2001 +* Ported to LTP: Wayne Boyer */ /*
testcases/kernel/syscalls/creat/creat06.c +3 -16
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 -* Ported by Wayne Boyer -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* Copyright (c) International Business Machines Corp., 2001 +* Ported to LTP: Wayne Boyer */ /*
testcases/kernel/syscalls/creat/creat07.c +2 -15
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * Copyright (c) 2012-2016 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /*
testcases/kernel/syscalls/creat/creat07_child.c +2 -15
@@ -1,20 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * Copyright (c) 2012 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include <unistd.h>
testcases/kernel/syscalls/epoll_create1/epoll_create1_01.c +3 -18
@@ -1,24 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) Ulrich Drepper <[email protected]> -* Copyright (c) International Business Machines Corp., 2009 +* Copyright (c) International Business Machines Corp., 2009 * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; -* -* Test: epoll_create1_01.c -* -* Description: This Program tests the new system call introduced in 2.6.27. -* Ulrich´s comment as in: +* Test system call introduced in 2.6.27. * http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a0998b50c3f0b8fdd265c63e0032f86ebe377dbf * * This patch adds the new epoll_create1 syscall. It extends the old
testcases/kernel/syscalls/epoll_ctl/epoll_ctl01.c +1 -11
@@ -1,17 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Fujitsu Ltd. * Author: Xiao Yang <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* You should have received a copy of the GNU General Public License -* alone with this program. */ /*
testcases/kernel/syscalls/epoll_ctl/epoll_ctl02.c +1 -11
@@ -1,17 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Fujitsu Ltd. * Author: Xiao Yang <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* You should have received a copy of the GNU General Public License -* alone with this program. */ /*
testcases/kernel/syscalls/epoll_wait/epoll_wait01.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Fujitsu Ltd. * Author: Guangwen Feng <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. */ /*
testcases/kernel/syscalls/execl/execl01.c +1 -14
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis <[email protected]> * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : William Roske * CO-PILOT : Dave Fenner -* DATE STARTED : 06/01/02 -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <sys/types.h>
testcases/kernel/syscalls/execl/execl01_child.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis [email protected] -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define TST_NO_DEFAULT_MAIN
testcases/kernel/syscalls/execle/execle01.c +1 -14
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis <[email protected]> * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : William Roske * CO-PILOT : Dave Fenner -* DATE STARTED : 06/01/02 -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <sys/types.h>
testcases/kernel/syscalls/execle/execle01_child.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis [email protected] -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define TST_NO_DEFAULT_MAIN
testcases/kernel/syscalls/execlp/execlp01.c +1 -15
@@ -1,24 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis <[email protected]> * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : William Roske * CO-PILOT : Dave Fenner -* DATE STARTED : 06/01/02 -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -* */ #include <errno.h>
testcases/kernel/syscalls/execlp/execlp01_child.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis [email protected] -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define TST_NO_DEFAULT_MAIN
testcases/kernel/syscalls/execv/execv01.c +1 -14
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis <[email protected]> * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : William Roske * CO-PILOT : Dave Fenner -* DATE STARTED : 06/01/02 -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <sys/types.h>
testcases/kernel/syscalls/execv/execv01_child.c +1 -14
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis <[email protected]> * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : William Roske * CO-PILOT : Dave Fenner -* DATE STARTED : 06/01/02 -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define TST_NO_DEFAULT_MAIN
testcases/kernel/syscalls/execve/execve01.c +1 -14
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis <[email protected]> * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : William Roske * CO-PILOT : Dave Fenner -* DATE STARTED : 06/01/02 -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testcases/kernel/syscalls/execve/execve01_child.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis [email protected] -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define TST_NO_DEFAULT_MAIN
testcases/kernel/syscalls/execve/execve02.c +3 -15
@@ -1,23 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (c) 2015 Cyril Hrubis <[email protected]> -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * -* 07/2001 Ported by Wayne Boyer +* Ported to LTP: Wayne Boyer * 21/04/2008 Renaud Lottiaux ([email protected]) -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/syscalls/execve/execve03.c +4 -24
@@ -1,29 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project -* Copyright (c) International Business Machines Corp., 2001 -* -* 07/2001 Ported by Wayne Boyer -* 21/04/2008 Renaud Lottiaux ([email protected]) -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. +* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) Renaud Lottiaux <[email protected]> +* Ported to LTP: Wayne Boyer */ /* -* NAME -* execve03.c -* -* DESCRIPTION * Testcase to check execve sets the following errnos correctly: * 1. ENAMETOOLONG * 2. ENOENT
@@ -50,9 +33,6 @@* * 6. Attempt to execve(2) a zero length file with executable * permissions - fails with ENOEXEC. -* -* HISTORY -* 07/2001 Ported by Wayne Boyer */ #ifndef _GNU_SOURCE
testcases/kernel/syscalls/execve/execve04.c +3 -15
@@ -1,23 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (c) 2015 Cyril Hrubis <[email protected]> -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * -* 07/2001 Ported by Wayne Boyer +* Ported to LTP: Wayne Boyer * 04/2008 Roy Lee <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/syscalls/execve/execve05.c +3 -15
@@ -1,22 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * -* 07/2001 Ported by Wayne Boyer +* Ported to LTP: Wayne Boyer * 21/04/2008 Renaud Lottiaux ([email protected]) -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/syscalls/execve/execve_child.c +2 -14
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project -* Copyright (c) International Business Machines Corp., 2001 -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. +* Copyright (c) International Business Machines Corp., 2001 */ /*
testcases/kernel/syscalls/execveat/execveat03.c +12 -32
53 lines not on this page · raw message
testcases/kernel/syscalls/execveat/execveat_child.c +1 -20
@@ -1,25 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2018 MediaTek Inc. All Rights Reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 or any later of the GNU General Public License -* as published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* */ /*
testcases/kernel/syscalls/execvp/execvp01.c +1 -14
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis <[email protected]> * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : William Roske * CO-PILOT : Dave Fenner -* DATE STARTED : 06/01/02 -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <sys/types.h>
testcases/kernel/syscalls/execvp/execvp01_child.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2018 Linux Test Project * Copyright (C) 2015 Cyril Hrubis [email protected] -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define TST_NO_DEFAULT_MAIN
testcases/kernel/syscalls/exit/exit02.c +3 -16
@@ -1,21 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 -* 07/2001 Ported by Wayne Boyer +* Copyright (c) International Business Machines Corp., 2001 +* Ported to LTP: Wayne Boyer * Copyright (c) 2018 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Fork a process that creates a file and writes a few bytes, and
testcases/kernel/syscalls/fallocate/fallocate04.c +2 -16
@@ -1,24 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved. +* Author: Alexey Kodanev <[email protected]> * -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -* -* Description: * Test allocates a file with specified size then tests the following modes: * FALLOC_FL_PUNCH_HOLE, FALLOC_FL_ZERO_RANGE and FALLOC_FL_COLLAPSE_RANGE. -* -* Author: Alexey Kodanev <[email protected]> */ #define _GNU_SOURCE
testcases/kernel/syscalls/fallocate/fallocate05.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
testcases/kernel/syscalls/fchdir/fchdir03.c +2 -15
@@ -1,21 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) Bull S.A. 2001 -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /*
testcases/kernel/syscalls/fchmod/fchmod06.c +2 -15
@@ -1,21 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) International Business Machines Corp., 2001 +* Copyright (c) International Business Machines Corp., 2001 * Author: Wayne Boyer * Copyright (c) 2018 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test that fchmod() fails and sets the proper errno values.
testcases/kernel/syscalls/fcntl/fcntl02.c +1 -29
@@ -1,35 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, -* Mountain View, CA 94043, or: -* -* http://www.sgi.com -* -* For further information regarding this notice, see: -* -* http://oss.sgi.com/projects/GenInfo/NoticeExplan/ -* */ /* * Basic test for fcntl(2) using F_DUPFD argument.
testcases/kernel/syscalls/fcntl/fcntl03.c +1 -29
@@ -1,35 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, -* Mountain View, CA 94043, or: -* -* http://www.sgi.com -* -* For further information regarding this notice, see: -* -* http://oss.sgi.com/projects/GenInfo/NoticeExplan/ -* */ /* * Basic test for fcntl(2) using F_GETFD argument.
testcases/kernel/syscalls/fcntl/fcntl04.c +1 -29
@@ -1,35 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2017 Cyril Hrubis <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, -* Mountain View, CA 94043, or: -* -* http://www.sgi.com -* -* For further information regarding this notice, see: -* -* http://oss.sgi.com/projects/GenInfo/NoticeExplan/ -* */ /* * Basic test for fcntl(2) using F_GETFL argument.
testcases/kernel/syscalls/fcntl/fcntl34.c +1 -15
@@ -1,21 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 Oracle and/or its affiliates. All Rights Reserved. -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -* * Author: Alexey Kodanev <[email protected]> -* */ #include <sys/types.h>
testcases/kernel/syscalls/fcntl/fcntl35.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Fujitsu Ltd. * Author: Xiao Yang <[email protected]> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>.* */ /*
testcases/kernel/syscalls/fcntl/fcntl36.c +9 -24
@@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Red Hat Inc. All Rights Reserved. -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it would be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -* * Author: Xiong Zhou <[email protected]> * * This is testing OFD locks racing with POSIX locks:
@@ -29,19 +16,17 @@* * For example: * -* Init an file with preset values. -* -* Threads acquire OFD READ locks to read a 4k section start from 0; -* checking data read back, there should not be any surprise -* values and data should be consistent in a 1k block. -* -* Threads acquire OFD WRITE locks to write a 4k section start from 1k, -* writing different values in different threads. +* Init an file with preset values. * -* Check file data after racing, there should not be any surprise values -* and data should be consistent in a 1k block. +* Threads acquire OFD READ locks to read a 4k section start from 0; +* checking data read back, there should not be any surprise +* values and data should be consistent in a 1k block. * +* Threads acquire OFD WRITE locks to write a 4k section start from 1k, +* writing different values in different threads. * +* Check file data after racing, there should not be any surprise values +* and data should be consistent in a 1k block. */ #include <sys/types.h>
testcases/kernel/syscalls/flistxattr/flistxattr01.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 RT-RK Institute for Computer Based Systems * Author: Dejan Jovicevic <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -* the GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. */ /*
testcases/kernel/syscalls/flistxattr/flistxattr02.c +1 -11
@@ -1,17 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2016 RT-RK Institute for Computer Based Systems * Author: Dejan Jovicevic <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* You should have received a copy of the GNU General Public License -* alone with this program. */ /*
testcases/kernel/syscalls/flistxattr/flistxattr03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/fsync/fsync01.c +1 -29
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getcwd/getcwd01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getcwd/getcwd02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getcwd/getcwd03.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getcwd/getcwd04.c +1 -10
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getpriority/getpriority01.c +3 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getpriority/getpriority02.c +3 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getrandom/getrandom01.c +3 -24
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getrandom/getrandom02.c +4 -25
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getrandom/getrandom03.c +4 -28
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getrandom/getrandom04.c +4 -28
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getsockopt/getsockopt02.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/gettimeofday/gettimeofday02.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/getxattr/getxattr04.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify01.c +2 -21
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify02.c +2 -21
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify03.c +3 -22
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify04.c +3 -25
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify05.c +2 -17
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify06.c +2 -17
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify07.c +2 -21
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify08.c +2 -22
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/inotify/inotify09.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/io_destroy/io_destroy01.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/io_setup/io_setup01.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/io_submit/io_submit01.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ioctl/ioctl03.c +7 -27
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ioctl/ioctl04.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ioctl/ioctl05.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ioctl/ioctl06.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ioctl/ioctl07.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/libnewipc/libnewipc.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgctl/msgctl01.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgctl/msgctl02.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgctl/msgctl03.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgctl/msgctl04.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgctl/msgctl12.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgget/msgget01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgget/msgget02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgget/msgget03.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgsnd/msgsnd01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgsnd/msgsnd02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgsnd/msgsnd05.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/msgsnd/msgsnd06.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/shmat/shmat01.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/shmat/shmat02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/shmat/shmat03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ipc/shmctl/shmctl05.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/kcmp/kcmp01.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/kcmp/kcmp02.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/kcmp/kcmp03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/keyctl/keyctl01.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/keyctl/keyctl02.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/keyctl/keyctl03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/keyctl/keyctl04.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/keyctl/keyctl05.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/keyctl/keyctl06.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/keyctl/keyctl07.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/keyctl/keyctl08.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/lgetxattr/lgetxattr01.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/lgetxattr/lgetxattr02.c +1 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/link/link08.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/listxattr/listxattr01.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/listxattr/listxattr02.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/listxattr/listxattr03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/llistxattr/llistxattr01.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/llistxattr/llistxattr02.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/llistxattr/llistxattr03.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/lseek/lseek01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/lseek/lseek02.c +1 -18
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/lseek/lseek07.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/lseek/lseek11.c +16 -31
47 lines not on this page · raw message
testcases/kernel/syscalls/madvise/madvise01.c +2 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/madvise/madvise02.c +2 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/madvise/madvise05.c +1 -10
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/madvise/madvise06.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/madvise/madvise07.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/madvise/madvise08.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/madvise/madvise09.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/madvise/madvise10.c +1 -10
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mbind/mbind01.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/memfd_create/memfd_create01.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/memfd_create/memfd_create02.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/memfd_create/memfd_create03.c +1 -10
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/memfd_create/memfd_create04.c +1 -10
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/memfd_create/memfd_create_common.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/migrate_pages/migrate_pages02.c +1 -20
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/migrate_pages/migrate_pages03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mkdir/mkdir02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mkdir/mkdir03.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mkdir/mkdir04.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mkdir/mkdir05.c +3 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mkdirat/mkdirat02.c +1 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mmap/mmap12.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mq_notify/mq_notify01.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mq_open/mq_open01.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/mq_unlink/mq_unlink01.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/msync/msync04.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/nice/nice01.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/nice/nice02.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/nice/nice03.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/nice/nice04.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/open/open01.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/open/open02.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/open/open08.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pause/pause01.c +1 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pipe/pipe01.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pipe/pipe02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pipe/pipe03.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pipe/pipe11.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/poll/poll01.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ppoll/ppoll01.c +1 -10
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/preadv/preadv01.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/preadv/preadv02.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/preadv/preadv03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pselect/pselect03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/ptrace/ptrace07.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pwrite/pwrite02.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pwrite/pwrite03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pwritev/pwritev01.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pwritev/pwritev02.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/pwritev/pwritev03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/quotactl/quotactl01.c +1 -17
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/quotactl/quotactl02.c +1 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/quotactl/quotactl03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/read/read01.c +1 -28
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/read/read02.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/readlink/readlink01.c +3 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/readlink/readlink03.c +3 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/recvmsg/recvmsg02.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/recvmsg/recvmsg03.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/request_key/request_key01.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/request_key/request_key02.c +2 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/request_key/request_key03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/request_key/request_key04.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/request_key/request_key05.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/rmdir/rmdir01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/rmdir/rmdir02.c +3 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/rmdir/rmdir03.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/rt_sigsuspend/rt_sigsuspend01.c +4 -8
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/sbrk/sbrk03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/sched_setscheduler/sched_setscheduler03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/sendto/sendto02.c +1 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setpriority/setpriority01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setpriority/setpriority02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setrlimit/setrlimit02.c +3 -16
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setrlimit/setrlimit03.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setrlimit/setrlimit04.c +10 -20
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setrlimit/setrlimit05.c +1 -10
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setsockopt/setsockopt02.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setsockopt/setsockopt03.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setuid/setuid01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setuid/setuid03.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setuid/setuid04.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setxattr/setxattr01.c +1 -20
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/setxattr/setxattr02.c +1 -20
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/socket/socket01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/socket/socket02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/socketcall/socketcall01.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/socketpair/socketpair01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/socketpair/socketpair02.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/splice/splice01.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/splice/splice02.c +6 -23
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/splice/splice03.c +1 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/splice/splice04.c +2 -19
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/splice/splice05.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/switch/endian_switch01.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/syscall/syscall01.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/sysctl/sysctl03.c +2 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/sysctl/sysctl04.c +2 -11
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/times/times03.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/umask/umask01.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/umount/umount01.c +5 -18
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/umount/umount02.c +10 -24
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/umount/umount03.c +4 -17
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/uname/uname04.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/unlink/unlink05.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/unlink/unlink07.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/unlink/unlink08.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/utimes/utimes01.c +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/vmsplice/vmsplice01.c +5 -24
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/vmsplice/vmsplice02.c +1 -12
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/wait4/wait401.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/waitpid/waitpid01.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/waitpid/waitpid09.c +2 -19
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/waitpid/waitpid_common.h +1 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/write/write01.c +1 -19
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/write/write02.c +1 -13
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/write/write03.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/write/write04.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/write/write05.c +2 -15
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/writev/writev01.c +2 -14
Lines of this file are not shown. View the raw message.
testcases/kernel/syscalls/writev/writev07.c +1 -10
Lines of this file are not shown. View the raw message.
testcases/network/netstress/netstress.c +1 -15
Lines of this file are not shown. View the raw message.
testcases/network/nfs/nfs_stress/nfs05_make_tree.c +2 -16
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.21.0
Part of the diff is not shown here. View the raw message.
PATCH 3/3 sh: Replace GPL verbose text by SPDX license identifier
In reply to Petr Vorelin tests which use new shell API.
+ other minor cleanup.
--- testcases/commands/ar/ar01 | 24 ++------- testcases/commands/cp/cp_tests.sh | 27 ++-------- testcases/commands/cpio/cpio_tests.sh | 24 +-------- testcases/commands/df/df01.sh | 13 +---- testcases/commands/du/du01.sh | 17 +----- testcases/commands/eject/eject-tests.sh | 26 ++------- testcases/commands/file/file01.sh | 25 ++------- testcases/commands/gdb/gdb01.sh | 23 ++------ testcases/commands/gzip/gzip_tests.sh | 34 +++--------- testcases/commands/insmod/insmod01.sh | 15 +----- testcases/commands/keyctl/keyctl01.sh | 16 +----- testcases/commands/ld/ld01 | 24 ++------- testcases/commands/ldd/ldd01 | 30 ++--------- testcases/commands/ln/ln_tests.sh | 27 ++-------- testcases/commands/lsmod/lsmod01.sh | 16 ++---- testcases/commands/mkdir/mkdir_tests.sh | 25 ++------- testcases/commands/mkfs/mkfs01.sh | 13 +---- testcases/commands/mkswap/mkswap01.sh | 13 +---- testcases/commands/mv/mv_tests.sh | 34 +++--------- testcases/commands/nm/nm01 | 24 ++------- testcases/commands/sysctl/sysctl01.sh | 16 +----- testcases/commands/tar/tar_tests.sh | 26 ++------- testcases/commands/unshare/unshare01.sh | 13 +---- testcases/commands/unzip/unzip01.sh | 26 ++------- testcases/commands/wc/wc01.sh | 13 +---- testcases/commands/which/which01.sh | 13 +---- .../kernel/controllers/cpuacct/cpuacct.sh | 35 +++--------- testcases/kernel/controllers/pids/pids.sh | 29 ++-------- testcases/kernel/mem/vma/vma05.sh | 44 +++++---------- testcases/kernel/numa/numa01.sh | 53 ++++++------------- .../security/integrity/ima/tests/ima_setup.sh | 15 +----- .../tracing/dynamic_debug/dynamic_debug01.sh | 31 +++-------- testcases/lib/tst_test.sh | 22 ++------ 33 files changed, 131 insertions(+), 655 deletions(-)
testcases/commands/ar/ar01 +4 -20
@@ -1,27 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# -# Copyright (c) International Business Machines Corp., 2000 -# 06/01 Robbie Williamson ([email protected]) +# Copyright (c) International Business Machines Corp., 2000 # Copyright (c) 2016 Cyril Hrubis <[email protected]> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -#----------------------------------------------------------------------- +# Author: Robbie Williamson <[email protected]> # # This is a basic ar command test. -# + AR="${AR:=ar}" TST_CNT=17 TST_SETUP=setup
testcases/commands/cp/cp_tests.sh +5 -22
@@ -1,28 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## Copyright (c) 2016 Cyril Hrubis <[email protected]> ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ +# Copyright (c) International Business Machines Corp., 2001 +# Copyright (c) 2016 Cyril Hrubis <[email protected]> +# Author: Manoj Iyer <[email protected]> # # Tests basic cp functionality -# + TST_CNT=5 TST_TESTFUNC=do_test TST_SETUP=setup
testcases/commands/cpio/cpio_tests.sh +2 -22
@@ -1,28 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## Copyright (c) Cyril Hrubis <[email protected]> ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ # # Test basic functionality of cpio command -# + TST_TESTFUNC=cpio_test TST_NEEDS_TMPDIR=1 TST_NEEDS_CMDS="cpio"
testcases/commands/df/df01.sh +1 -12
@@ -1,20 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2015 Fujitsu Ltd. # Author: Zhang Jin <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# # Test df command with some basic options. -# TST_CNT=12 TST_SETUP=setup
testcases/commands/du/du01.sh +1 -16
@@ -1,24 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2015 Fujitsu Ltd. # Author: Zeng Linggang <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# # Test du command with some basic options. -# TST_CNT=23 TST_SETUP=setup
testcases/commands/eject/eject-tests.sh +4 -22
@@ -1,28 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## Copyright (c) 2016 Cyril Hrubis <[email protected]> ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ +# Copyright (c) International Business Machines Corp., 2001 +# Copyright (c) 2016 Cyril Hrubis <[email protected]> +# Author: Manoj Iyer <[email protected]> # # Tests basic functionality of eject command. -# TST_CNT=4 TST_SETUP=setup
testcases/commands/file/file01.sh +4 -21
@@ -1,29 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Copyright (c) 2016 Cyril Hrubis <[email protected]> ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ +# Copyright (c) International Business Machines Corp., 2001 +# Copyright (c) 2016 Cyril Hrubis <[email protected]> # # This program tests the file command. The tests are aimed at # testing if the file command can recognize some of the commonly # used file formats like, tar, tar.gz, rpm, C, ASCII, ELF etc. -# + TST_CNT=20 TST_SETUP=setup TST_TESTFUNC=do_test
testcases/commands/gdb/gdb01.sh +3 -20
@@ -1,26 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh - # Copyright (C) 2017 Red Hat, Inc. # -# This program is free software; you can redistribute it and#or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. -# - -# Test description: See if gdb can successfully attach to a process and -# this process exits normally. - -# Usage -# ./gdb01.sh +# Test if gdb can successfully attach to a process and +# this process exits normally. TST_TESTFUNC=simple_test TST_NEEDS_CMDS="gdb /bin/cat"
testcases/commands/gzip/gzip_tests.sh +8 -26
@@ -1,32 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software ## -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ +# Copyright (c) International Business Machines Corp., 2001 +# Author: Manoj Iyer <[email protected]> # -# Description: Test basic functionality of gzip and gunzip command -# - Test #1: Test that gzip -r will travel directories and -# compress all the files available. -# -# - Test #2: Test that gunzip -r will travel directories and -# uncompress all the files available. +# Test basic functionality of gzip and gunzip command +# Test #1: Test that gzip -r will travel directories and +# compress all the files available. # +# Test #2: Test that gunzip -r will travel directories and +# uncompress all the files available. TST_CNT=2 TST_TESTFUNC=test
testcases/commands/insmod/insmod01.sh +2 -13
@@ -1,20 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2016 Fujitsu Ltd. # Author: Guangwen Feng <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# Test the basic functionality of insmod command. -# +# Test basic functionality of insmod command. TST_CLEANUP=cleanup TST_TESTFUNC=do_test
testcases/commands/keyctl/keyctl01.sh +1 -15
@@ -1,21 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2017 Fujitsu Ltd. # Ported: Guangwen Feng <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it would be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program, if not, see <http://www.gnu.org/licenses/>. -# # This is a regression test about potential uninitialized variable, # the test can crash the buggy kernel, and the bug has been fixed in: #
@@ -24,7 +11,6 @@ # Date: Thu Jun 16 15:48:57 2016 +0100 # # KEYS: potential uninitialized variable -# TST_SETUP=setup TST_CLEANUP=cleanup
testcases/commands/ld/ld01 +4 -20
@@ -1,26 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# -# Copyright (c) International Business Machines Corp., 2000 -# 06/01 Robbie Williamson ([email protected]) +# Copyright (c) International Business Machines Corp., 2000 # Copyright (c) 2016 Cyril Hrubis <[email protected]> +# Author: Robbie Williamson <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -#--------------------------------------------------------------------------- -# -# Test the basic functionality of the `ld` command. -# +# Test basic functionality of the `ld` command. CC=${CC:=gcc} LD=${LD:=ld}
testcases/commands/ldd/ldd01 +4 -26
@@ -1,31 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh +# Copyright (c) International Business Machines Corp., 2000 +# Author: Robbie Williamson <[email protected]> # -# Copyright (c) International Business Machines Corp., 2000 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# -# -# FILE : ldd01 -# -# PURPOSE: To test the basic functionality of the `ldd` command. -# -# HISTORY: -# 06/01 Robbie Williamson ([email protected]) -# -Ported -#--------------------------------------------------------------------------- +# test basic functionality of the `ldd` command. TST_CNT=2 TST_SETUP=setup
testcases/commands/ln/ln_tests.sh +5 -22
@@ -1,28 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## Copyright (c) 2016 Cyril Hrubis <[email protected]> ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ +# Copyright (c) International Business Machines Corp., 2001 +# Copyright (c) 2016 Cyril Hrubis <[email protected]> +# Author: Manoj Iyer <[email protected]> # # Basic test for ln -# + TST_CNT=6 TST_TESTFUNC=do_test TST_SETUP=setup
testcases/commands/lsmod/lsmod01.sh +3 -13
@@ -1,20 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2015 Fujitsu Ltd. # Author: Guangwen Feng <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# Test the basic functionality of lsmod command. -# +# Test basic functionality of lsmod command. + TST_TESTFUNC=lsmod_test TST_NEEDS_TMPDIR=1 TST_NEEDS_CMDS="lsmod"
testcases/commands/mkdir/mkdir_tests.sh +4 -21
@@ -1,27 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ +# Copyright (c) International Business Machines Corp., 2001 +# Author: Manoj Iyer <[email protected]> # # Basic mkdir tests -# + TST_CNT=3 TST_SETUP=setup TST_TESTFUNC=test
testcases/commands/mkfs/mkfs01.sh +1 -12
@@ -1,20 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2015 Fujitsu Ltd. # Author: Guangwen Feng <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# # Test mkfs command with some basic options. -# TST_CNT=5 TST_SETUP=setup
testcases/commands/mkswap/mkswap01.sh +1 -12
@@ -1,20 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2015 Fujitsu Ltd. # Author: Guangwen Feng <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# # Test mkswap command with some basic options. -# TST_CNT=10 TST_SETUP=setup
testcases/commands/mv/mv_tests.sh +8 -26
@@ -1,31 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ -# -# Description: Test basic functionality of mv command -# - Test #1: mv <dir1> <dir2> -# move dir1 to dir2 and all its contents. -# - Test #2: mv -b <file1> <file2> -# move file1 to file2 and backup the file2. +# Copyright (c) International Business Machines Corp., 2001 +# Author: Manoj Iyer <[email protected]> # +# Test basic functionality of mv command +# Test #1: mv <dir1> <dir2> +# move dir1 to dir2 and all its contents. +# Test #2: mv -b <file1> <file2> +# move file1 to file2 and backup the file2. TST_CNT=2 TST_SETUP=setup
testcases/commands/nm/nm01 +4 -20
@@ -1,27 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# -# Copyright (c) International Business Machines Corp., 2000 -# 06/01 Robbie Williamson ([email protected]) +# Copyright (c) International Business Machines Corp., 2000 # Copyright (c) 2016 Cyril Hrubis <[email protected]> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -#--------------------------------------------------------------------------- +# Author: Robbie Williamson <[email protected]> # # Tests the basic functionality of the `nm` command. -# + NM=${NM:=nm} TST_CNT=7
testcases/commands/sysctl/sysctl01.sh +1 -15
@@ -1,22 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh - # Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. # Author: Xiao Yang <[email protected]> # -# This program is free software; you can redistribute it and#or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. -# -# Description: # This is a regression test for invalid value of sysctl_sched_time_avg. # System will hang if user set sysctl_sched_time_avg to 0 on buggy kernel. #
testcases/commands/tar/tar_tests.sh +4 -22
@@ -1,28 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## Copyright (c) 2016 Cyril Hrubis <[email protected]> ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ +# Copyright (c) International Business Machines Corp., 2001 +# Copyright (c) 2016 Cyril Hrubis <[email protected]> +# Author: Manoj Iyer <[email protected]> # # Creates, lists and extracts an plain, gzip and bzip tar archive. -# TST_CNT=6 TST_TESTFUNC=do_test
testcases/commands/unshare/unshare01.sh +1 -12
@@ -1,18 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2017 FUJITSU LIMITED. All rights reserved. # Author: Xiao Yang <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# # Test unshare command with some basic options. # 1) If we run unshare with "--user", UID in the newly created user namespace # is set to 65534.
@@ -35,7 +25,6 @@ # Please see the following URL for detailed information: # http://man7.org/linux/man-pages/man7/user_namespaces.7.html # http://man7.org/linux/man-pages/man7/mount_namespaces.7.html -# TST_CNT=8 TST_SETUP=setup
testcases/commands/unzip/unzip01.sh +4 -22
@@ -1,28 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #! /bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## Author: Manoj Iyer, [email protected] ## -## Copyright (c) Cyril Hrubis <[email protected]> ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software Foundation, ## -## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ +# Copyright (c) International Business Machines Corp., 2001 +# Copyright (c) Cyril Hrubis <[email protected]> +# Author: Manoj Iyer <[email protected]> # # Tests basic functionality of unzip command. -# TST_SETUP=setup TST_TESTFUNC=do_test
testcases/commands/wc/wc01.sh +1 -12
@@ -1,20 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2016 Fujitsu Ltd. # Author: Xiao Yang <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# # Test wc command with some basic options. -# TST_CNT=12 TST_SETUP=setup
testcases/commands/which/which01.sh +1 -12
@@ -1,20 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) 2015 Fujitsu Ltd. # Author: Guangwen Feng <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# # Test which command with some basic options. -# TST_CNT=10 TST_SETUP=setup
testcases/kernel/controllers/cpuacct/cpuacct.sh +6 -29
@@ -1,39 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh - -################################################################################ -## ## -## Copyright (c) 2015 SUSE ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software ## -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 ## -## USA ## -## ## -## Author: Cedric Hnyda <[email protected]> ## -## ## -################################################################################ - +# Copyright (c) 2015 SUSE +# Author: Cedric Hnyda <[email protected]> +# # Usage # ./cpuacct.sh nbsubgroup nbprocess -# -# 1) nbsubgroup : number of subgroup to create -# 2) nbprocess : number of process to attach to each subgroup +# nbsubgroup: number of subgroup to create +# nbprocess: number of process to attach to each subgroup # # Description -# # 1) Find if cpuacct is mounted, if not mounted, cpuacct will be mounted # 2) Check that sum ltp_test/subgroup*/cpuacct.usage = ltp_test/cpuacct.usage -# TST_SETUP=setup TST_CLEANUP=cleanup
testcases/kernel/controllers/pids/pids.sh +4 -25
@@ -1,31 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh - -################################################################################ -## ## -## Copyright (c) 2015 SUSE ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software ## -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 ## -## USA ## -## ## -## Author: Cedric Hnyda <[email protected]> ## -## ## -################################################################################ - +# Copyright (c) 2015 SUSE +# Author: Cedric Hnyda <[email protected]> # Usage # ./pids.sh caseno max -# + TST_CLEANUP=cleanup TST_SETUP=setup TST_TESTFUNC=do_test
testcases/kernel/mem/vma/vma05.sh +13 -31
51 lines not on this page · raw message
testcases/kernel/numa/numa01.sh +16 -37
66 lines not on this page · raw message
testcases/kernel/security/integrity/ima/tests/ima_setup.sh +1 -14
@@ -1,20 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh # Copyright (c) 2009 IBM Corporation # Copyright (c) 2018 Petr Vorel <[email protected]> -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it would be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# # Author: Mimi Zohar, [email protected] TST_TESTFUNC="test"
testcases/kernel/tracing/dynamic_debug/dynamic_debug01.sh +7 -24
@@ -1,31 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh - # Copyright (C) 2017 Red Hat, Inc. # -# This program is free software; you can redistribute it and#or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. -# -# -# Test description: Test functionality of dynamic debug feature by enabling -# and disabling traces with available flags. Check that these -# settings don't cause issues by searching dmesg. -# -# This test handles changes of dynamic debug interface from -# commits 5ca7d2a6 (dynamic_debug: describe_flags with -# '=[pmflt_]*') and 8ba6ebf5 (Dynamic debug: Add more flags) +# Test functionality of dynamic debug feature by enabling +# and disabling traces with available flags. Check that these +# settings don't cause issues by searching dmesg. # -# Usage -# ./dynamic_debug01.sh +# This test handles changes of dynamic debug interface from +# commits 5ca7d2a6 (dynamic_debug: describe_flags with +# '=[pmflt_]*') and 8ba6ebf5 (Dynamic debug: Add more flags) TST_TESTFUNC=ddebug_test TST_NEEDS_CMDS="awk /bin/echo"
testcases/lib/tst_test.sh +3 -19
@@ -1,25 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-or-later #!/bin/sh -# # Copyright (c) Linux Test Project, 2014-2018 +# Author: Cyril Hrubis <[email protected]> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Written by Cyril Hrubis <[email protected]> -# -# This is a LTP test library for shell. -# +# LTP test library for shell. [ -n "$TST_LIB_LOADED" ] && return 0
Signature · 1 line
2.21.0
PATCH 3/3 sh: Replace GPL verbose text by SPDX license identifier
Hi,
This one is wrong, shebang should be before SPDX.
Kind regards,
Petr
PATCH 3/3 sh: Replace GPL verbose text by SPDX license identifier
Hi!
Quoted 1 line
This one is wrong, shebang should be before SPDX.
Just fix this and push the patchset, otherwise this is obviously Ok.
Signature · 2 lines
Cyril Hrubis [email protected]
PATCH 3/3 sh: Replace GPL verbose text by SPDX license identifier
Hi Cyril,
Quoted 4 lines
Hi!
Quoted 1 line
This one is wrong, shebang should be before SPDX.
Just fix this and push the patchset, otherwise this is obviously Ok.
Thanks, merged with your ack.
Kind regards,
Petr