diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/expected/build-sys/config | 0 | ||||
-rw-r--r-- | tests/expected/build-sys/config-all | 127 | ||||
-rw-r--r-- | tests/expected/build-sys/config-all-devel | 120 | ||||
-rw-r--r-- | tests/expected/build-sys/config-all-non-nls | 127 | ||||
-rw-r--r-- | tests/expected/build-sys/config-audit | 113 | ||||
-rw-r--r-- | tests/expected/build-sys/config-core | 108 | ||||
-rw-r--r-- | tests/expected/build-sys/config-devel | 126 | ||||
-rw-r--r-- | tests/expected/build-sys/config-non-libblkid | 85 | ||||
-rw-r--r-- | tests/expected/build-sys/config-non-libmount | 104 | ||||
-rw-r--r-- | tests/expected/build-sys/config-non-libs | 81 | ||||
-rw-r--r-- | tests/expected/build-sys/config-non-libuuid | 104 | ||||
-rw-r--r-- | tests/expected/build-sys/config-non-nls | 108 | ||||
-rw-r--r-- | tests/expected/build-sys/config-selinux | 113 | ||||
-rw-r--r-- | tests/expected/build-sys/config-slang | 108 | ||||
-rw-r--r-- | tests/expected/build-sys/config-static | 114 | ||||
-rw-r--r-- | tests/functions.sh | 4 | ||||
-rwxr-xr-x | tests/ts/build-sys/config | 61 |
18 files changed, 1603 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 2c7231879..fd6251977 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -7,5 +7,5 @@ EXTRA_DIST = expected \ functions.sh \ run.sh -clean-local: +distclean-local: rm -rf output diff diff --git a/tests/expected/build-sys/config b/tests/expected/build-sys/config new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/expected/build-sys/config diff --git a/tests/expected/build-sys/config-all b/tests/expected/build-sys/config-all new file mode 100644 index 000000000..5944b4a67 --- /dev/null +++ b/tests/expected/build-sys/config-all @@ -0,0 +1,127 @@ +mkswap: libblkid libuuid +swaplabel: libblkid libuuid +blockdev: +elvtune: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +fdisk.static: STATIC +sfdisk: +sfdisk.static: STATIC +fsck: libblkid libuuid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libuuid +libmount.so.1.1.0: libblkid libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +chfn: libpam libpam_misc +chsh: libpam libpam_misc +last: +login: libpam libpam_misc +newgrp: rypt +test_islocal: +test_logindefs: +vipw: +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +blkid.static: STATIC +cal: libncursesw libtinfo +ddate: +kill: +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +losetup.static: STATIC +mount.static: STATIC +mtab_lock_test: +umount.static: STATIC +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libuuid +arch: +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +mesg: +script: libutil +scriptreplay: +setterm: libtinfo +write: +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +line: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-all-devel b/tests/expected/build-sys/config-all-devel new file mode 100644 index 000000000..4b31e7e56 --- /dev/null +++ b/tests/expected/build-sys/config-all-devel @@ -0,0 +1,120 @@ +mkswap: libblkid libselinux libuuid +swaplabel: libblkid libuuid +blockdev: +elvtune: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +sfdisk: +fsck: libblkid libuuid +getopt: +hwclock: libaudit +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libselinux libsepol libuuid +libmount.so.1.1.0: libblkid libselinux libsepol libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +chfn: libpam libpam_misc libselinux +chsh: libpam libpam_misc libselinux +last: +login: libaudit libpam libpam_misc libselinux +newgrp: rypt +test_islocal: +test_logindefs: +vipw: libselinux +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libselinux libsepol libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +cal: libncursesw libtinfo +ddate: +kill: +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libmount libselinux libsepol libuuid +swapon: libblkid libuuid +umount: libblkid libmount libselinux libsepol libuuid +losetup: +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libselinux libsepol libuuid +arch: +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +mesg: +script: libutempter libutil +scriptreplay: +setterm: libtinfo +write: +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +line: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-all-non-nls b/tests/expected/build-sys/config-all-non-nls new file mode 100644 index 000000000..5944b4a67 --- /dev/null +++ b/tests/expected/build-sys/config-all-non-nls @@ -0,0 +1,127 @@ +mkswap: libblkid libuuid +swaplabel: libblkid libuuid +blockdev: +elvtune: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +fdisk.static: STATIC +sfdisk: +sfdisk.static: STATIC +fsck: libblkid libuuid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libuuid +libmount.so.1.1.0: libblkid libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +chfn: libpam libpam_misc +chsh: libpam libpam_misc +last: +login: libpam libpam_misc +newgrp: rypt +test_islocal: +test_logindefs: +vipw: +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +blkid.static: STATIC +cal: libncursesw libtinfo +ddate: +kill: +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +losetup.static: STATIC +mount.static: STATIC +mtab_lock_test: +umount.static: STATIC +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libuuid +arch: +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +mesg: +script: libutil +scriptreplay: +setterm: libtinfo +write: +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +line: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-audit b/tests/expected/build-sys/config-audit new file mode 100644 index 000000000..74cb8bba2 --- /dev/null +++ b/tests/expected/build-sys/config-audit @@ -0,0 +1,113 @@ +mkswap: libblkid libuuid +swaplabel: libblkid libuuid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +sfdisk: +fsck: libblkid libuuid +getopt: +hwclock: libaudit +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libuuid +libmount.so.1.1.0: libblkid libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +chfn: libpam libpam_misc +chsh: libpam libpam_misc +login: libaudit libpam libpam_misc +newgrp: rypt +test_islocal: +test_logindefs: +vipw: +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +mtab_lock_test: +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libuuid +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-core b/tests/expected/build-sys/config-core new file mode 100644 index 000000000..fc61b300b --- /dev/null +++ b/tests/expected/build-sys/config-core @@ -0,0 +1,108 @@ +mkswap: libblkid libuuid +swaplabel: libblkid libuuid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +sfdisk: +fsck: libblkid libuuid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libuuid +libmount.so.1.1.0: libblkid libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +test_islocal: +test_logindefs: +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +mtab_lock_test: +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libuuid +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-devel b/tests/expected/build-sys/config-devel new file mode 100644 index 000000000..644fe286d --- /dev/null +++ b/tests/expected/build-sys/config-devel @@ -0,0 +1,126 @@ +mkswap: libblkid libselinux libuuid +swaplabel: libblkid libuuid +blockdev: +elvtune: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +fdisk.static: STATIC +sfdisk: +sfdisk.static: STATIC +fsck: libblkid libuuid +getopt: +hwclock: libaudit +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libselinux libsepol libuuid +libmount.so.1.1.0: libblkid libselinux libsepol libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +chfn: libpam libpam_misc libselinux +chsh: libpam libpam_misc libselinux +last: +login: libaudit libpam libpam_misc libselinux +newgrp: rypt +test_islocal: +test_logindefs: +vipw: libselinux +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libselinux libsepol libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +blkid.static: STATIC +cal: libncursesw libtinfo +ddate: +kill: +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libmount libselinux libsepol libuuid +swapon: libblkid libuuid +umount: libblkid libmount libselinux libsepol libuuid +losetup: +losetup.static: STATIC +mount.static: STATIC +umount.static: STATIC +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libselinux libsepol libuuid +arch: +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +mesg: +script: libutempter libutil +scriptreplay: +setterm: libtinfo +write: +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +line: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-non-libblkid b/tests/expected/build-sys/config-non-libblkid new file mode 100644 index 000000000..8603afbca --- /dev/null +++ b/tests/expected/build-sys/config-non-libblkid @@ -0,0 +1,85 @@ +mkswap: libuuid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libncursesw libtinfo +fdisk: +sfdisk: +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +test_islocal: +test_logindefs: +uuidd: libuuid +uuidgen: libuuid +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +chrt: +ionice: +taskset: +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-non-libmount b/tests/expected/build-sys/config-non-libmount new file mode 100644 index 000000000..b08329172 --- /dev/null +++ b/tests/expected/build-sys/config-non-libmount @@ -0,0 +1,104 @@ +mkswap: libblkid libuuid +swaplabel: libblkid libuuid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +sfdisk: +fsck: libblkid libuuid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +test_islocal: +test_logindefs: +blkid: libblkid libuuid +findfs: libblkid libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +mtab_lock_test: +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-non-libs b/tests/expected/build-sys/config-non-libs new file mode 100644 index 000000000..6367ce994 --- /dev/null +++ b/tests/expected/build-sys/config-non-libs @@ -0,0 +1,81 @@ +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +mkswap: +raw: +cfdisk: libncursesw libtinfo +fdisk: +sfdisk: +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +test_islocal: +test_logindefs: +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +chrt: +ionice: +taskset: +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-non-libuuid b/tests/expected/build-sys/config-non-libuuid new file mode 100644 index 000000000..f959e6784 --- /dev/null +++ b/tests/expected/build-sys/config-non-libuuid @@ -0,0 +1,104 @@ +mkswap: libblkid +swaplabel: libblkid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo +fdisk: libblkid +sfdisk: +fsck: libblkid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid +partitions: libblkid +superblocks: libblkid +topology: libblkid +libblkid.so.1.1.0: +mount: libblkid libmount +libmount.so.1.1.0: libblkid +test_islocal: +test_logindefs: +blkid: libblkid +findfs: libblkid +findmnt: libblkid libmount +lsblk: libblkid libudev +wipefs: libblkid +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid +swapon: libblkid +umount: libblkid +losetup: +mtab_lock_test: +partx: libblkid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-non-nls b/tests/expected/build-sys/config-non-nls new file mode 100644 index 000000000..fc61b300b --- /dev/null +++ b/tests/expected/build-sys/config-non-nls @@ -0,0 +1,108 @@ +mkswap: libblkid libuuid +swaplabel: libblkid libuuid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +sfdisk: +fsck: libblkid libuuid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libuuid +libmount.so.1.1.0: libblkid libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +test_islocal: +test_logindefs: +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +mtab_lock_test: +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libuuid +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-selinux b/tests/expected/build-sys/config-selinux new file mode 100644 index 000000000..c45ae8493 --- /dev/null +++ b/tests/expected/build-sys/config-selinux @@ -0,0 +1,113 @@ +mkswap: libblkid libselinux libuuid +swaplabel: libblkid libuuid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +sfdisk: +fsck: libblkid libuuid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libselinux libsepol libuuid +libmount.so.1.1.0: libblkid libselinux libsepol libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +chfn: libpam libpam_misc libselinux +chsh: libpam libpam_misc libselinux +login: libpam libpam_misc libselinux +newgrp: rypt +test_islocal: +test_logindefs: +vipw: libselinux +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libselinux libsepol libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libselinux libsepol libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +mtab_lock_test: +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libselinux libsepol libuuid +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-slang b/tests/expected/build-sys/config-slang new file mode 100644 index 000000000..8b2efaf84 --- /dev/null +++ b/tests/expected/build-sys/config-slang @@ -0,0 +1,108 @@ +mkswap: libblkid libuuid +swaplabel: libblkid libuuid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libslang libuuid +fdisk: libblkid libuuid +sfdisk: +fsck: libblkid libuuid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libuuid +libmount.so.1.1.0: libblkid libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +test_islocal: +test_logindefs: +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +mtab_lock_test: +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libuuid +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/expected/build-sys/config-static b/tests/expected/build-sys/config-static new file mode 100644 index 000000000..f62d2c447 --- /dev/null +++ b/tests/expected/build-sys/config-static @@ -0,0 +1,114 @@ +mkswap: libblkid libuuid +swaplabel: libblkid libuuid +blockdev: +fdformat: +fsck.cramfs: libz +fsck.minix: +isosize: +mkfs: +mkfs.bfs: +mkfs.cramfs: libz +mkfs.minix: +raw: +cfdisk: libblkid libncursesw libtinfo libuuid +fdisk: libblkid libuuid +fdisk.static: STATIC +sfdisk: +sfdisk.static: STATIC +fsck: libblkid libuuid +getopt: +hwclock: +test_at: +test_blkdev: +test_canonicalize: +test_cpuset: +test_ismounted: +test_loopdev: +test_mangle: +test_procutils: +test_strutils: +test_sysfs: +test_tt: +test_wholedisk: +mkfs: libblkid libuuid +partitions: libblkid libuuid +superblocks: libblkid libuuid +topology: libblkid libuuid +libblkid.so.1.1.0: libuuid +mount: libblkid libmount libuuid +libmount.so.1.1.0: libblkid libuuid +libuuid.so.1.3.0: ld-linux-x86-64 +tst_uuid: libuuid +test_islocal: +test_logindefs: +blkid: libblkid libuuid +findfs: libblkid libuuid +findmnt: libblkid libmount libuuid +lsblk: libblkid libudev libuuid +uuidd: libuuid +uuidgen: libuuid +wipefs: libblkid libuuid +blkid.static: STATIC +cal: libncursesw libtinfo +logger: +look: +mcookie: +namei: +rename: +whereis: +mount: libblkid libuuid +swapon: libblkid libuuid +umount: libblkid libuuid +losetup: +losetup.static: STATIC +mount.static: STATIC +mtab_lock_test: +umount.static: STATIC +partx: libblkid libuuid +addpart: +delpart: +chrt: +ionice: +taskset: +mountpoint: libblkid libmount libuuid +chcpu: +ctrlaltdel: +cytune: +dmesg: +fallocate: +flock: +fsfreeze: +fstrim: +ipcmk: +ipcrm: +ipcs: +ldattach: +lscpu: +pivot_root: +prlimit: +readprofile: +renice: +rtcwake: +setarch: +setsid: +switch_root: +tunelp: +unshare: +agetty: +script: libutil +scriptreplay: +setterm: libtinfo +test_byteswap: +test_md5: +test_pathnames: +test_sysinfo: +col: +colcrt: +colrm: +column: +hexdump: +more: libtinfo +pg: libncursesw libtinfo +rev: +tailf: +ul: libtinfo diff --git a/tests/functions.sh b/tests/functions.sh index bc658ba9a..c6567df5a 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -129,7 +129,9 @@ function ts_init_env { declare -a TS_SUID_USER declare -a TS_SUID_GROUP - . $TS_TOPDIR/commands.sh + if [ -f $TS_TOPDIR/commands.sh ]; then + . $TS_TOPDIR/commands.sh + fi export BLKID_FILE diff --git a/tests/ts/build-sys/config b/tests/ts/build-sys/config new file mode 100755 index 000000000..87308ba3a --- /dev/null +++ b/tests/ts/build-sys/config @@ -0,0 +1,61 @@ +#!/bin/bash + +# Copyright (C) 2011 Karel Zak <kzak@redhat.com> + +TS_TOPDIR="$(dirname $0)/../.." +TS_DESC="config" + +# Don't execute this test by default, --force required +TS_OPTIONAL="yes" + +. $TS_TOPDIR/functions.sh +ts_init "$*" + +[ -x /usr/bin/readelf ] || ts_skip "readelf(1) not found" +[ -x /usr/bin/file ] || ts_skip "file(1) not found" + +config_gen_dir="$top_srcdir/tools" +. $config_gen_dir/config-gen-functions.sh + +[ -n "$CFLAGS" ] && export CFLAGS="$CFLAGS" + +cd $top_builddir && make -j clean &> /dev/null + +for conf in $config_gen_dir/config-gen.d/*.conf; do + ts_init_subtest $(basename $conf | sed 's/\.conf//') + + opts=$(ul_get_configuration $conf) + + olddir=$(pwd) + cd $top_builddir + + ./configure $opts &> /dev/null + make -j &> /dev/null + + bins=$(find . -type f -perm /a+x | sort) + for b in $bins; do + libs=$(readelf --dynamic $b 2> /dev/null | \ + awk '/NEEDED/ { print $5 }' | \ + sed 's:\[::g; s:\..*::g; s:libc::g' | \ + sort -u | tr '\n' ' ') + + if [ -n "$libs" ]; then + echo "$(basename $b): $libs" >> $TS_OUTPUT + else + fres=$(file $b) + case $fres in + *statically*) + echo "$(basename $b): STATIC" >> $TS_OUTPUT + ;; + *) # ignore scripts, ...etc. + ;; + esac + fi + done + make -j clean &> /dev/null + cd $olddir + + ts_finalize_subtest +done + +ts_finalize |