From 3607264dfd549d50e3582b6c7061c65fd281e1af Mon Sep 17 00:00:00 2001 From: jbj Date: Tue, 20 Oct 1998 19:30:02 +0000 Subject: [PATCH] More "make check" enhancement. CVS patchset: 2469 CVS date: 1998/10/20 19:30:02 --- tests/hello-test/Makefile.am | 7 ++- tests/hello-test/Makefile.in | 7 ++- tests/hello-test/ba.exp | 1 + tests/hello-test/ckH.exp | 112 ++++++++++++++++++++-------------- tests/hello-test/e | 11 ++++ tests/hello-test/e.exp | 20 ++++++ tests/hello-test/hello-1.0.tar.gz | Bin 764 -> 890 bytes tests/hello-test/hello-1.0/hello.spec | 10 +++ tests/hello-test/i | 11 ++++ tests/hello-test/i.exp | 26 ++++++++ tests/hello-test/qi | 10 +++ tests/hello-test/qi.exp | 18 ++++++ 12 files changed, 181 insertions(+), 52 deletions(-) create mode 100755 tests/hello-test/e create mode 100644 tests/hello-test/e.exp create mode 100755 tests/hello-test/i create mode 100644 tests/hello-test/i.exp create mode 100755 tests/hello-test/qi create mode 100644 tests/hello-test/qi.exp diff --git a/tests/hello-test/Makefile.am b/tests/hello-test/Makefile.am index 168a13a..caf605d 100644 --- a/tests/hello-test/Makefile.am +++ b/tests/hello-test/Makefile.am @@ -2,7 +2,7 @@ all: -noinst_SCRIPTS = initdb showrc ba ckL ckH ckS ckC +noinst_SCRIPTS = initdb showrc ba ckL ckH ckS ckC i qi e TESTS_ENVIRONMENT = \ rpm="${top_builddir}/rpm --rcfile ${top_builddir}/tests/$(pkglibdir)/rpmrc" \ @@ -11,6 +11,7 @@ TESTS_ENVIRONMENT = \ rpmheader="${top_builddir}/tools/rpmheader" \ rpmsignature="${top_builddir}/tools/rpmsignature" \ rpmdump="${top_builddir}/tools/dump" \ - myrpm="../usr/src/redhat/RPMS/sparc/hello-1.0-1.sparc.rpm" + rpmdumpdb="${top_builddir}/tools/dumpdb" \ + myrpm='../usr/src/redhat/RPMS/*/hello-1.0-1.*.rpm' -TESTS = initdb showrc ba ckL ckH ckS ckC +TESTS = initdb showrc ba ckL ckH ckS ckC i qi e diff --git a/tests/hello-test/Makefile.in b/tests/hello-test/Makefile.in index 10330c6..e53f4c4 100644 --- a/tests/hello-test/Makefile.in +++ b/tests/hello-test/Makefile.in @@ -115,7 +115,7 @@ testdir = @testdir@ tmpdir = @tmpdir@ varprefix = @varprefix@ -noinst_SCRIPTS = initdb showrc ba ckL ckH ckS ckC +noinst_SCRIPTS = initdb showrc ba ckL ckH ckS ckC i qi e TESTS_ENVIRONMENT = \ rpm="${top_builddir}/rpm --rcfile ${top_builddir}/tests/$(pkglibdir)/rpmrc" \ @@ -124,9 +124,10 @@ TESTS_ENVIRONMENT = \ rpmheader="${top_builddir}/tools/rpmheader" \ rpmsignature="${top_builddir}/tools/rpmsignature" \ rpmdump="${top_builddir}/tools/dump" \ - myrpm="../usr/src/redhat/RPMS/sparc/hello-1.0-1.sparc.rpm" + rpmdumpdb="${top_builddir}/tools/dumpdb" \ + myrpm='../usr/src/redhat/RPMS/*/hello-1.0-1.*.rpm' -TESTS = initdb showrc ba ckL ckH ckS ckC +TESTS = initdb showrc ba ckL ckH ckS ckC i qi e mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../../config.h CONFIG_CLEAN_FILES = diff --git a/tests/hello-test/ba.exp b/tests/hello-test/ba.exp index f649abe..0c70491 100644 --- a/tests/hello-test/ba.exp +++ b/tests/hello-test/ba.exp @@ -39,6 +39,7 @@ Executing: %doc + exit 0 Finding provides... Finding requires... +Provides: hi Prereqs: /bin/sh Requires: ld-linux.so.2 libc.so.6 Wrote: /usr/src/redhat/SRPMS/hello-1.0-1.src.rpm diff --git a/tests/hello-test/ckH.exp b/tests/hello-test/ckH.exp index b9f0a4a..b37d754 100644 --- a/tests/hello-test/ckH.exp +++ b/tests/hello-test/ckH.exp @@ -1,4 +1,4 @@ -Entry count: 42 +Entry count: 52 CT TAG TYPE OFSET COUNT Entry : 000 (100)(unknown) STRING_ARRAY_TYPE 0xffffffff 00000001 @@ -9,113 +9,133 @@ Entry : 002 (1001)RPMTAG_VERSION STRING_TYPE 0xffffffff 00000001 Data: 000 1.0 Entry : 003 (1002)RPMTAG_RELEASE STRING_TYPE 0xffffffff 00000001 Data: 000 1 -Entry : 004 (1004)RPMTAG_SUMMARY I18N_STRING_TYPE 0xffffffff 00000001 +Entry : 004 (1003)RPMTAG_EPOCH INT32_TYPE 0xffffffff 00000001 + Data: 000 0x00000001 (1) +Entry : 005 (1004)RPMTAG_SUMMARY I18N_STRING_TYPE 0xffffffff 00000001 Data: 000 hello -- hello, world rpm -Entry : 005 (1005)RPMTAG_DESCRIPTION I18N_STRING_TYPE 0xffffffff 00000001 +Entry : 006 (1005)RPMTAG_DESCRIPTION I18N_STRING_TYPE 0xffffffff 00000001 Data: 000 Simple rpm demonstration. -Entry : 006 (1006)RPMTAG_BUILDTIME INT32_TYPE 0xffffffff 00000001 - Data: 000 0x362cac47 (908897351) -Entry : 007 (1007)RPMTAG_BUILDHOST STRING_TYPE 0xffffffff 00000001 +Entry : 007 (1006)RPMTAG_BUILDTIME INT32_TYPE 0xffffffff 00000001 + Data: 000 0x362cd576 (908907894) +Entry : 008 (1007)RPMTAG_BUILDHOST STRING_TYPE 0xffffffff 00000001 Data: 000 krusty.devel.redhat.com -Entry : 008 (1009)RPMTAG_SIZE INT32_TYPE 0xffffffff 00000001 +Entry : 009 (1009)RPMTAG_SIZE INT32_TYPE 0xffffffff 00000001 Data: 000 0x00007c67 (31847) -Entry : 009 (1014)RPMTAG_LICENSE STRING_TYPE 0xffffffff 00000001 +Entry : 010 (1010)RPMTAG_DISTRIBUTION STRING_TYPE 0xffffffff 00000001 + Data: 000 RPM test suite. +Entry : 011 (1011)RPMTAG_VENDOR STRING_TYPE 0xffffffff 00000001 + Data: 000 Red Hat Software +Entry : 012 (1014)RPMTAG_LICENSE STRING_TYPE 0xffffffff 00000001 Data: 000 GPL -Entry : 010 (1016)RPMTAG_GROUP I18N_STRING_TYPE 0xffffffff 00000001 +Entry : 013 (1015)RPMTAG_PACKAGER STRING_TYPE 0xffffffff 00000001 + Data: 000 Red Hat Software +Entry : 014 (1016)RPMTAG_GROUP I18N_STRING_TYPE 0xffffffff 00000001 Data: 000 Utilities -Entry : 011 (1020)RPMTAG_URL STRING_TYPE 0xffffffff 00000001 +Entry : 015 (1020)RPMTAG_URL STRING_TYPE 0xffffffff 00000001 Data: 000 http://www.redhat.com -Entry : 012 (1021)RPMTAG_OS STRING_TYPE 0xffffffff 00000001 +Entry : 016 (1021)RPMTAG_OS STRING_TYPE 0xffffffff 00000001 Data: 000 Linux -Entry : 013 (1022)RPMTAG_ARCH STRING_TYPE 0xffffffff 00000001 +Entry : 017 (1022)RPMTAG_ARCH STRING_TYPE 0xffffffff 00000001 Data: 000 sparc -Entry : 014 (1027)RPMTAG_FILENAMES STRING_ARRAY_TYPE 0xffffffff 00000003 +Entry : 018 (1027)RPMTAG_FILENAMES STRING_ARRAY_TYPE 0xffffffff 00000003 Data: 000 /home/devel/jbj/src/rpm/tests/usr/doc/hello-1.0 Data: 001 /home/devel/jbj/src/rpm/tests/usr/doc/hello-1.0/FAQ Data: 002 /usr/local/bin/hello -Entry : 015 (1028)RPMTAG_FILESIZES INT32_TYPE 0xffffffff 00000003 +Entry : 019 (1028)RPMTAG_FILESIZES INT32_TYPE 0xffffffff 00000003 Data: 000 0x00000400 (1024) Data: 001 0x00000024 (36) Data: 002 0x00007843 (30787) -Entry : 016 (1030)RPMTAG_FILEMODES INT16_TYPE 0xffffffff 00000003 +Entry : 020 (1030)RPMTAG_FILEMODES INT16_TYPE 0xffffffff 00000003 Data: 000 0x41ed (16877) Data: 001 0xffff81a4 (-32348) Data: 002 0xffff81e9 (-32279) -Entry : 017 (1033)RPMTAG_FILERDEVS INT16_TYPE 0xffffffff 00000003 +Entry : 021 (1033)RPMTAG_FILERDEVS INT16_TYPE 0xffffffff 00000003 Data: 000 0x0000 (0) Data: 001 0x0000 (0) Data: 002 0x0000 (0) -Entry : 018 (1034)RPMTAG_FILEMTIMES INT32_TYPE 0xffffffff 00000003 - Data: 000 0x362cac42 (908897346) +Entry : 022 (1034)RPMTAG_FILEMTIMES INT32_TYPE 0xffffffff 00000003 + Data: 000 0x362cd571 (908907889) Data: 001 0x362ca336 (908895030) - Data: 002 0x362cac42 (908897346) -Entry : 019 (1035)RPMTAG_FILEMD5S STRING_ARRAY_TYPE 0xffffffff 00000003 + Data: 002 0x362cd571 (908907889) +Entry : 023 (1035)RPMTAG_FILEMD5S STRING_ARRAY_TYPE 0xffffffff 00000003 Data: 000 Data: 001 33cccc1f055d73acaceed7d8204e99c7 Data: 002 741e702cdf114c95a9e965fa8aa40864 -Entry : 020 (1036)RPMTAG_FILELINKTOS STRING_ARRAY_TYPE 0xffffffff 00000003 +Entry : 024 (1036)RPMTAG_FILELINKTOS STRING_ARRAY_TYPE 0xffffffff 00000003 Data: 000 Data: 001 Data: 002 -Entry : 021 (1037)RPMTAG_FILEFLAGS INT32_TYPE 0xffffffff 00000003 +Entry : 025 (1037)RPMTAG_FILEFLAGS INT32_TYPE 0xffffffff 00000003 Data: 000 0x00000000 (0) Data: 001 0x00000002 (2) Data: 002 0x00000000 (0) -Entry : 022 (1039)RPMTAG_FILEUSERNAME STRING_ARRAY_TYPE 0xffffffff 00000003 +Entry : 026 (1039)RPMTAG_FILEUSERNAME STRING_ARRAY_TYPE 0xffffffff 00000003 Data: 000 root Data: 001 root Data: 002 root -Entry : 023 (1040)RPMTAG_FILEGROUPNAME STRING_ARRAY_TYPE 0xffffffff 00000003 +Entry : 027 (1040)RPMTAG_FILEGROUPNAME STRING_ARRAY_TYPE 0xffffffff 00000003 Data: 000 root Data: 001 root Data: 002 root -Entry : 024 (1044)RPMTAG_SOURCERPM STRING_TYPE 0xffffffff 00000001 +Entry : 028 (1044)RPMTAG_SOURCERPM STRING_TYPE 0xffffffff 00000001 Data: 000 hello-1.0-1.src.rpm -Entry : 025 (1045)RPMTAG_FILEVERIFYFLAGS INT32_TYPE 0xffffffff 00000003 +Entry : 029 (1045)RPMTAG_FILEVERIFYFLAGS INT32_TYPE 0xffffffff 00000003 Data: 000 0x00000000 (0) Data: 001 0x00000000 (0) Data: 002 0xffffffff (-1) -Entry : 026 (1046)RPMTAG_ARCHIVESIZE INT32_TYPE 0xffffffff 00000001 +Entry : 030 (1046)RPMTAG_ARCHIVESIZE INT32_TYPE 0xffffffff 00000001 Data: 000 0x00007aac (31404) -Entry : 027 (1048)RPMTAG_REQUIREFLAGS INT32_TYPE 0xffffffff 00000003 +Entry : 031 (1047)RPMTAG_PROVIDES STRING_ARRAY_TYPE 0xffffffff 00000001 + Data: 000 hi +Entry : 032 (1048)RPMTAG_REQUIREFLAGS INT32_TYPE 0xffffffff 00000003 Data: 000 0x00000040 (64) Data: 001 0x00000000 (0) Data: 002 0x00000000 (0) -Entry : 028 (1049)RPMTAG_REQUIRENAME STRING_ARRAY_TYPE 0xffffffff 00000003 +Entry : 033 (1049)RPMTAG_REQUIRENAME STRING_ARRAY_TYPE 0xffffffff 00000003 Data: 000 /bin/sh Data: 001 ld-linux.so.2 Data: 002 libc.so.6 -Entry : 029 (1050)RPMTAG_REQUIREVERSION STRING_ARRAY_TYPE 0xffffffff 00000003 +Entry : 034 (1050)RPMTAG_REQUIREVERSION STRING_ARRAY_TYPE 0xffffffff 00000003 Data: 000 Data: 001 Data: 002 -Entry : 030 (1064)RPMTAG_RPMVERSION STRING_TYPE 0xffffffff 00000001 +Entry : 035 (1053)RPMTAG_CONFLICTFLAGS INT32_TYPE 0xffffffff 00000001 + Data: 000 0x00000000 (0) +Entry : 036 (1054)RPMTAG_CONFLICTNAME STRING_ARRAY_TYPE 0xffffffff 00000001 + Data: 000 goodbye +Entry : 037 (1055)RPMTAG_CONFLICTVERSION STRING_ARRAY_TYPE 0xffffffff 00000001 + Data: 000 +Entry : 038 (1064)RPMTAG_RPMVERSION STRING_TYPE 0xffffffff 00000001 Data: 000 2.90 -Entry : 031 (1080)RPMTAG_CHANGELOGTIME INT32_TYPE 0xffffffff 00000001 +Entry : 039 (1080)RPMTAG_CHANGELOGTIME INT32_TYPE 0xffffffff 00000001 Data: 000 0x362cf9d0 (908917200) -Entry : 032 (1081)RPMTAG_CHANGELOGNAME STRING_ARRAY_TYPE 0xffffffff 00000001 +Entry : 040 (1081)RPMTAG_CHANGELOGNAME STRING_ARRAY_TYPE 0xffffffff 00000001 Data: 000 Jeff Johnson -Entry : 033 (1082)RPMTAG_CHANGELOGTEXT STRING_ARRAY_TYPE 0xffffffff 00000001 +Entry : 041 (1082)RPMTAG_CHANGELOGTEXT STRING_ARRAY_TYPE 0xffffffff 00000001 Data: 000 - create. -Entry : 034 (1085)RPMTAG_PREINPROG STRING_TYPE 0xffffffff 00000001 +Entry : 042 (1085)RPMTAG_PREINPROG STRING_TYPE 0xffffffff 00000001 Data: 000 /bin/sh -Entry : 035 (1086)RPMTAG_POSTINPROG STRING_TYPE 0xffffffff 00000001 +Entry : 043 (1086)RPMTAG_POSTINPROG STRING_TYPE 0xffffffff 00000001 Data: 000 /bin/sh -Entry : 036 (1087)RPMTAG_PREUNPROG STRING_TYPE 0xffffffff 00000001 +Entry : 044 (1087)RPMTAG_PREUNPROG STRING_TYPE 0xffffffff 00000001 Data: 000 /bin/sh -Entry : 037 (1088)RPMTAG_POSTUNPROG STRING_TYPE 0xffffffff 00000001 +Entry : 045 (1088)RPMTAG_POSTUNPROG STRING_TYPE 0xffffffff 00000001 Data: 000 /bin/sh -Entry : 038 (1094)RPMTAG_COOKIE STRING_TYPE 0xffffffff 00000001 - Data: 000 krusty.devel.redhat.com 908897351 -Entry : 039 (1095)RPMTAG_FILEDEVICES INT32_TYPE 0xffffffff 00000003 +Entry : 046 (1090)RPMTAG_OBSOLETES STRING_ARRAY_TYPE 0xffffffff 00000001 + Data: 000 howdy +Entry : 047 (1094)RPMTAG_COOKIE STRING_TYPE 0xffffffff 00000001 + Data: 000 krusty.devel.redhat.com 908907894 +Entry : 048 (1095)RPMTAG_FILEDEVICES INT32_TYPE 0xffffffff 00000003 Data: 000 0x00000804 (2052) Data: 001 0x00000804 (2052) Data: 002 0x00000804 (2052) -Entry : 040 (1096)RPMTAG_FILEINODES INT32_TYPE 0xffffffff 00000003 - Data: 000 0x0001bc87 (113799) - Data: 001 0x0001bc88 (113800) - Data: 002 0x00010de6 (69094) -Entry : 041 (1097)RPMTAG_FILELANGS STRING_ARRAY_TYPE 0xffffffff 00000003 +Entry : 049 (1096)RPMTAG_FILEINODES INT32_TYPE 0xffffffff 00000003 + Data: 000 0x000194d7 (103639) + Data: 001 0x000194d8 (103640) + Data: 002 0x00010de9 (69097) +Entry : 050 (1097)RPMTAG_FILELANGS STRING_ARRAY_TYPE 0xffffffff 00000003 Data: 000 Data: 001 Data: 002 +Entry : 051 (1098)RPMTAG_PREFIXES STRING_ARRAY_TYPE 0xffffffff 00000001 + Data: 000 /usr diff --git a/tests/hello-test/e b/tests/hello-test/e new file mode 100755 index 0000000..5142f43 --- /dev/null +++ b/tests/hello-test/e @@ -0,0 +1,11 @@ +#!/bin/sh + +rpm=${rpm:=rpm} +destdir="`pwd`" +destdir="`dirname $destdir`" + +$rpm -e -vv hello | \ + sed -e "s,$destdir,,g" > $0.out + +diff $0.out $0.exp || exit 1 + diff --git a/tests/hello-test/e.exp b/tests/hello-test/e.exp new file mode 100644 index 0000000..89f331c --- /dev/null +++ b/tests/hello-test/e.exp @@ -0,0 +1,20 @@ +D: counting packages to uninstall +D: opening database in //var/lib/rpm/ +D: found 1 packages to uninstall +D: uninstalling record number 1752 +D: will remove files test = 0 +D: /hello-test/../usr/local/bin/hello - removing +D: /usr/doc/hello-1.0/FAQ - removing +D: /usr/doc/hello-1.0 - removing +D: running postuninstall script (if any) +D: removing database entry +D: removing name index +D: removing group index +D: removing provides index for hi +D: removing requiredby index for /bin/sh +D: removing requiredby index for ld-linux.so.2 +D: removing requiredby index for libc.so.6 +D: removing conflict index for goodbye +D: removing file index for /usr/doc/hello-1.0 +D: removing file index for /usr/doc/hello-1.0/FAQ +D: removing file index for /hello-test/../usr/local/bin/hello diff --git a/tests/hello-test/hello-1.0.tar.gz b/tests/hello-test/hello-1.0.tar.gz index 88ecd72aaf0943ea66b1c045c4cb48ee4891e4ea..48b2cd7d010dec5001b7089b7115402b78c9ad8f 100644 GIT binary patch literal 890 zcmV-=1BLt_iwFQgvMe?L1MQe=Z`(E$hV#|@6$f1nBt>=eMP9XTSX*aVilp}JWWay{ z1uan)8%b12s%~2BzwhYc#&x$D7!n6t`M{QVNQ$JW^NQ3-SegpUvt8%KWcu6btCNG< z$8%lZAHV^?!1KM$bBpid-}m}n&+83(0G`(y`Ul|N!C1baRGLbFgExye|5$HV`G1s) zge$QQtNC-v=~JgGS$k@Eqp?ZPIB|U}fNrhQp=;JUkp9&o9QOvm>We(n&=~Q)j_* zLc)~M9IulZSTQ`Z#k$G+zCFVZZuCDpel|WozKcF~uK$BC^zRw{?}yFxzwv-(`8Uh{ z*TIece|q-I9rdwW|ASBa|AFtL{@tNJGWy>KoBBr&FyjBpxY2)|vco&*W4HeM+w1?( z>l^*=1DkVQsb(TuHQ1ivz=xX1%Qk0CRLpZyBU zJThmJ(=_OKv<$3 z=CcTXrW)oV)+;I*nbPozF4(CH(kkSl&wEZ(OyTW+u$_m)>pfup|{aM=kxn<+E7$COlZDj zsaTRna8WXtgc^D-cu$^u3olt5!%LCmO62eqwf>n$SrFn#Di6JHxf%=xgTY`h7z_r3 Q!SJv66N|2M^Z+OT04*WT7XSbN literal 764 zcmVvhWUzr#ZfmTsG5rdBrCgU?dYmjv~)lxO`24t z!6|N&ICGq#ZQ6gIbD=P*jW0m8)sG`B<0iJS)v^FEw%T?D%ni)t0cj#!4p6zhzWr;vRrUWUqX|tw{=|ep zKs^#A1biA0D9r(U#$hru5*lko(vjBns6gvo*Nj~G(yM=h#Sf4 zcnF#gyE>b7`PjFoSixNXgQJ7)+0iD(Sh@eV9_Sw{{cnfG{lBn)V*6Ly{?lNt|Mv$U zHZ;a+{kQJ@|CVh_{hMvuQTpEoi~5%qpv3>gnCm}J>D~s$Sgrr&^8Vk(O{M>BKqG-d zmqzsl`hlu3mwCUwliR}QXs7WK{Z#V*pIO#_5|g#R0#@iBxigR7IHplNW)ko0sBRh1MYa5D(`n;{4ywQ3k5PtiYTm?+Zb-mx&@PNp0)0<_Wdh#ce*ve&_u-UH uqJ%~8O6ue7d|lrl4Lms$L6rNbP$(1%g+ifFC=?3Cqw@=tN+KBmC;$K(WqUyY diff --git a/tests/hello-test/hello-1.0/hello.spec b/tests/hello-test/hello-1.0/hello.spec index 23052ce..48ad24e 100644 --- a/tests/hello-test/hello-1.0/hello.spec +++ b/tests/hello-test/hello-1.0/hello.spec @@ -2,10 +2,20 @@ Summary: hello -- hello, world rpm Name: hello Version: 1.0 Release: 1 +Serial: 1 Group: Utilities License: GPL +Distribution: RPM test suite. +Vendor: Red Hat Software +Packager: Red Hat Software URL: http://www.redhat.com Source0: hello-1.0.tar.gz +Excludearch: lsi +Excludeos: cpm +Provides: hi +Conflicts: goodbye +Obsoletes: howdy +Prefix: /usr BuildRoot: /var/tmp/hello-root %description diff --git a/tests/hello-test/i b/tests/hello-test/i new file mode 100755 index 0000000..943c221 --- /dev/null +++ b/tests/hello-test/i @@ -0,0 +1,11 @@ +#!/bin/sh + +rpm=${rpm:=rpm} +destdir="`pwd`" +destdir="`dirname $destdir`" + +$rpm -i -vv --nodeps --prefix="`pwd`/../usr" $myrpm | \ + sed -e "s,$destdir,,g" > $0.out + +diff $0.out $0.exp || exit 1 + diff --git a/tests/hello-test/i.exp b/tests/hello-test/i.exp new file mode 100644 index 0000000..0ff27b9 --- /dev/null +++ b/tests/hello-test/i.exp @@ -0,0 +1,26 @@ +D: counting packages to install +D: found 1 packages +D: looking for packages to download +D: retrieved 0 packages +D: finding source and binary packages +D: New Header signature +D: Signature size: 68 +D: Signature pad : 4 +D: sigsize : 72 +D: Header + Archive: 13492 +D: expected size : 13492 +D: found 0 source and 1 binary packages +D: opening database mode: 01002 +D: opening database in //var/lib/rpm/ +D: installing binary packages +Installing ../usr/src/redhat/RPMS/sparc/hello-1.0-1.sparc.rpm +D: New Header signature +D: Signature size: 68 +D: Signature pad : 4 +D: sigsize : 72 +D: Header + Archive: 13492 +D: expected size : 13492 +D: package: hello-1.0-1 files test = 0 +D: relocating /usr/local/bin/hello to /hello-test/../usr/local/bin/hello +D: running preinstall script (if any) +D: running postinstall script (if any) diff --git a/tests/hello-test/qi b/tests/hello-test/qi new file mode 100755 index 0000000..93711e6 --- /dev/null +++ b/tests/hello-test/qi @@ -0,0 +1,10 @@ +#!/bin/sh + +rpm=${rpm:=rpm} +destdir="`pwd`" +destdir="`dirname $destdir`" + +$rpm -qil --scripts hello > $0.out + +diff $0.out $0.exp || exit 0 + diff --git a/tests/hello-test/qi.exp b/tests/hello-test/qi.exp new file mode 100644 index 0000000..c3800a0 --- /dev/null +++ b/tests/hello-test/qi.exp @@ -0,0 +1,18 @@ +Name : hello Distribution: RPM test suite. +Version : 1.0 Vendor: Red Hat Software +Release : 1 Build Date: Tue Oct 20 14:21:44 1998 +Install date: Tue Oct 20 14:21:47 1998 Build Host: krusty.devel.redhat.com +Group : Utilities Source RPM: hello-1.0-1.src.rpm +Size : 31847 License: GPL +Packager : Red Hat Software +URL : http://www.redhat.com +Summary : hello -- hello, world rpm +Description : +Simple rpm demonstration. +preinstall program: /bin/sh +postinstall program: /bin/sh +preuninstall program: /bin/sh +postuninstall program: /bin/sh +/home/devel/jbj/src/rpm/tests/usr/doc/hello-1.0 +/home/devel/jbj/src/rpm/tests/usr/doc/hello-1.0/FAQ +/home/devel/jbj/src/rpm/tests/hello-test/../usr/local/bin/hello -- 2.7.4