Fix the creation of the dumpdir directory in stress_floppy Makefile
[ltp-debian.git] / debian / generate-lists
blob28a519cb8dfe9ae6e3dca629724b1c4b381aa2f6
1 #!/usr/bin/make -f
2 KERNEL_TESTCASES=abort* accept* access* acct* acl_* add_key* adjtimex* aio* dio_* \
3 alarm* asyncio* bdflush* bind* brk* cacheflush* capget* capset* cap_*bounds* check_pe chdir* chmod* chown* child*.sh ch_ftp.sh \
4 chroot* cgroup_regression_test.sh cgroup_fj_* clock_* clone* close* confstr* connect* container_ftp.pl creat[0-9]* creat_slink \
5 create_datafile cpuset_* crtchild* cpuacct_* data_space disktest dirty doio dummy delchild.sh \
6 dup* epoll-ltp eventfd* event-generator exec* exit* endian_switch* epoll_create1_* frag fallocate* faccessat* fchdir* fchmod* \
7 fchown* fcntl* fdatasync* flock* fmtmsg* fork* fpathconf* fs_di \
8 fs_perms_simpletest.sh fs_inod fs_perms fsstress fstat* fsx-linux fsxtest* fsync* ftest* \
9 ftruncate* futimesat* get_sched_values getdelays [gs]et_robust_list* getcontext* getcpu* getcwd* getdents* getdomainname* \
10 getdtablesize* getegid* geteuid* getgid* getuid* getgroups* gethostid* \
11 gethostname* getitimer* getpagesize* getpeername* getpgid* getpgrp* \
12 getpid* getppid* getpriority* getresgid* getresuid* getrlimit* \
13 getrusage* getsid* getsockname* getsockopt* gettid* gettimeofday* get_mempolicy* growfiles \
14 hackbench hangup* hugemmap* hugeshm* initialize.sh inode* io_* ioctl* iogen ioperm* iopl* inotify* ilb_test.py \
15 kill[0-9]* keyctl* lchown* lftest link* llseek* lseek* lstat* ltp-diorh listen* locktests madvise* \
16 mallocstress mallopt* mbind* mem[0-9]* memcg_* memset* memcpy* memcmp* message_queue* mesgq_nstest mq_* mqns_* mincore* mkdir[0-9]* \
17 mkdirat* mknod* mlock* mmap* mmstress modify_ldt* run-modify_ldt* mount* move_pages* mprotect* \
18 mremap* msgctl* msgget* msgrcv* msgsnd* msync* mtest* munlock* munmap* \
19 nanosleep* newuname* nftw* nice* nptl* support_numa numa* open[0-9]* openat* openfile page* \
20 parent*.sh par_chld_* par_ftp.sh paripv6.sh \
21 pathconf* pause* performance_counter* pec_listener personality* pipe* pidns* posix_fadvise* ppoll* poll* prctl* \
22 pread* proc* profil* pselect* ptem* pth_str* pthcli pthserv data ptrace* \
23 pty* pwrite* read* reboot* recv* remap_file_pages* rename* rmdir* run-io* run_semaphore_test* run_pec_test run_sched_cliserv.sh \
24 quota_remount_test*.sh quotactl* \
25 rwtest rt_sig* sbrk* sched* select* sem* send[0-9]* sendfile0[2-9] \
26 sendfile0[2-9]_64 sendmsg* sendto* setdomainname* setegid* setfsgid* \
27 setfsuid* setgid* setgroups* sethostname* setitimer* setpgid* setpgrp* \
28 setpriority* setregid* setresgid* setresuid* setreuid* setrlimit* \
29 setsid* setsockopt* settimeofday* setuid* set_thread_area* set_tid_address* shm* sig* \
30 socket* sockioctl* splice* s[sg]etmask* stack_space stat* stime* stream* string* \
31 swapoff* swapon* symlink* sync* syscall* sysconf* sysctl* sysfs* \
32 sysinfo* syslog* smount tee* test? test_controllers.sh test_sched_mc.sh \
33 time* tkill* trace_sched truncate* two_children_ns ulimit* umask* \
34 umount* uname* unlink* unshare* ustat* utime* vfork* vhangup* vmsplice* wait* \
35 write* utstest checkfor*cap* check_xattr filecapstest.sh inh_capped print_caps \
36 verify_caps_exec check_simple_capset check_for_unshare \
37 check_*ns_enabled container_test.sh run*nstest.sh runutstest.sh \
38 change_freq.sh change_govr.sh check_cpufreq_sysfs_files.sh cpu_consolidation.py \
39 check_cpuidle_sysfs_files.sh check_kv_arch pm_include.sh pwkm_load_unload.sh runpwtests.sh run_io_throttle_test.sh \
40 run_memctl_test.sh run_cpuset_test.sh run_cpuctl*_test.sh run_capbounds.sh parameters.sh myfunctions-io.sh \
41 run_*_test_fj.sh run_cpuacct_test.sh myfunctions.sh memctl_test01 iobw event_generator cpuctl_* \
42 tcore* fs_racer* ht_* smt_smp_*.sh create_container nw_under_ns.sh \
43 dma_thread_diotest7 test_dma_thread_diotest7.sh test_[0-9]*_[0-9].sh test_[0-9]*_[0-9] test_sched_smt.sh test_timer_migration.sh
45 NETWORK_TESTCASES=acl1 add_ipv6addr arp* asapi_* bg_tcp_traffic broken_ip* \
46 check_envval check_icmp* check_netem check_setkey create_file \
47 dhcpd_tests.sh dns-stress* dns4-stress dns6-stress echo* \
48 find_portbundle finger* ftp* get_ifname getaddrinfo_* host* http* icmp* if* in6_* \
49 initialize_if ip_tests.sh iptables* killall_*_traffic \
50 ltpClient ltpServer mc_* mcast* member *ManyGroups rcast* netstat* nfs* ns-* open_files opts* \
51 output_ipsec_conf perf_lan* ping* rcp* rdist* rlogin* route* rpc_server rpc*[0-9] rsh* \
52 rusers* rup* rwho* sendfile01 sendfile6?? set_ipv4addr ssh* tcp* \
53 telnet* test_[[:lower:][:digit:]]*[^.][^.][^.][^.] traceroute_tests.sh udp* \
54 xinetd_tests.sh createfile SF_Server* testsf_* make_tree net_cmdlib.sh cmdlib.sh
56 MISC_TESTCASES=abs* atof* crash* f00f float* fptest* nextafter* \
57 *.ref *.ref2 [rd]*sin [rd]sinh [rd]*cos [rd]cosh [rd]*tan [rd]*tan2 \
58 [rd]tanh
60 COMMANDS_TESTCASES=lddfile*.obj nmfile*.[oc]* tpm* test_arch.obj \
61 unzip_tests.sh
63 DISC_TESTCASES=diotest* 1*K_file
65 write_testcases = $(patsubst $(CURDIR)/debian/tmp/%,%,$(wildcard $(addprefix $(CURDIR)/debian/tmp/usr/lib/ltp/testcases/bin/, $(1))))
67 # write_testcases() {
68 # for i in $@; do
69 # echo 'build-tree/*/testcases/bin/'$i usr/lib/ltp/tests/linux/testcases/bin
70 # done;
71 # }
73 dh_install_targets = debian/ltp-kernel-test.install debian/ltp-network-test.install debian/ltp-misc-test.install debian/ltp-commands-test.install debian/ltp-disc-test.install
75 $(dh_install_targets) : debian/ltp-%-test.install : debian/ltp-%-test.install.in FORCE
76 cp $< $@
77 sh -c "$(foreach line, $(call write_testcases, $($(shell echo $* | tr [a-z] [A-Z])_TESTCASES)), echo $(line);)" >> $@
79 dh_install_check: $(dh_install_targets)
80 sh -c "! cat debian/ltp*.install | sort | uniq -d | grep . | read x"
81 find $(CURDIR)/debian/tmp/usr/lib/ltp/testcases/bin $(CURDIR)/debian/tmp/usr/lib/ltp/runtest | sort > all-files
82 @echo "Kernel version: "
83 @uname -a
84 @echo "===================================================="
85 @echo "= Files not present in the packages ="
86 @echo "===================================================="
87 @cat debian/ltp*.install | grep -v '^#' | sed 's#^[[:space:]]*\([^[:space:]]\+\).*$$#$(CURDIR)/debian/tmp/\1#' | sh -c 'echo $$(cat)' | xargs find | sort | comm -3 -1 - all-files
88 @echo "===================================================="
89 rm -f all-files
91 clean::
92 rm -f $(dh_install_targets) all-files
94 FORCE: