Browse Source

test: Remove sequence number prefixes from test case filenames

This stops the madness of having to invent sequence numbers to be able
to order the test suite run. Instead we now honour the order of the
arguments passed to the runner.
Guillem Jover 10 years ago
parent
commit
47732d7563
83 changed files with 111 additions and 110 deletions
  1. 3 3
      Makefile.am
  2. 1 0
      debian/changelog
  3. 85 85
      scripts/Makefile.am
  4. 0 1
      scripts/t/200_Dpkg_Shlibs/ld.so.conf.d/inf_recurse.conf
  5. 0 1
      scripts/t/200_Dpkg_Shlibs/ld.so.conf.d/recursive.conf
  6. 0 0
      scripts/t/Dpkg_Arch.t
  7. 0 0
      scripts/t/Dpkg_BuildOptions.t
  8. 1 1
      scripts/t/600_Dpkg_Changelog.t
  9. 0 0
      scripts/t/Dpkg_Changelog/countme
  10. 0 0
      scripts/t/Dpkg_Changelog/fields
  11. 0 0
      scripts/t/Dpkg_Changelog/misplaced-tz
  12. 0 0
      scripts/t/Dpkg_Changelog/regressions
  13. 0 0
      scripts/t/Dpkg_Changelog/shadow
  14. 1 1
      scripts/t/600_Dpkg_Changelog_Ubuntu.t
  15. 1 1
      scripts/t/850_Dpkg_Compression.t
  16. 1 1
      scripts/t/700_Dpkg_Control.t
  17. 0 0
      scripts/t/Dpkg_Control/bogus-armor-double.dsc
  18. 0 0
      scripts/t/Dpkg_Control/bogus-armor-inline.dsc
  19. 0 0
      scripts/t/Dpkg_Control/bogus-armor-nested.dsc
  20. 0 0
      scripts/t/Dpkg_Control/bogus-armor-no-sig.dsc
  21. 0 0
      scripts/t/Dpkg_Control/bogus-armor-spaces.dsc
  22. 0 0
      scripts/t/Dpkg_Control/bogus-armor-trail.dsc
  23. 0 0
      scripts/t/Dpkg_Control/bogus-unsigned.dsc
  24. 0 0
      scripts/t/Dpkg_Control/control-1
  25. 0 0
      scripts/t/Dpkg_Deps.t
  26. 0 0
      scripts/t/Dpkg_IPC.t
  27. 0 0
      scripts/t/Dpkg_Package.t
  28. 1 1
      scripts/t/500_Dpkg_Path.t
  29. 2 2
      scripts/t/200_Dpkg_Shlibs.t
  30. 0 0
      scripts/t/Dpkg_Shlibs/basictags.c
  31. 0 0
      scripts/t/Dpkg_Shlibs/basictags.symbols
  32. 1 1
      scripts/t/200_Dpkg_Shlibs/ld.so.conf
  33. 1 0
      scripts/t/Dpkg_Shlibs/ld.so.conf.d/inf_recurse.conf
  34. 0 0
      scripts/t/Dpkg_Shlibs/ld.so.conf.d/normal.conf
  35. 1 0
      scripts/t/Dpkg_Shlibs/ld.so.conf.d/recursive.conf
  36. 0 0
      scripts/t/Dpkg_Shlibs/ld.so.conf_2
  37. 1 1
      scripts/t/200_Dpkg_Shlibs/objdump.basictags-amd64
  38. 1 1
      scripts/t/200_Dpkg_Shlibs/objdump.basictags-i386
  39. 0 0
      scripts/t/Dpkg_Shlibs/objdump.blacklisted
  40. 0 0
      scripts/t/Dpkg_Shlibs/objdump.dbd-pg
  41. 0 0
      scripts/t/Dpkg_Shlibs/objdump.glib-ia64
  42. 0 0
      scripts/t/Dpkg_Shlibs/objdump.libc6-2.3
  43. 0 0
      scripts/t/Dpkg_Shlibs/objdump.libc6-2.6
  44. 0 0
      scripts/t/Dpkg_Shlibs/objdump.ls
  45. 1 1
      scripts/t/200_Dpkg_Shlibs/objdump.patterns
  46. 0 0
      scripts/t/Dpkg_Shlibs/objdump.space
  47. 0 0
      scripts/t/Dpkg_Shlibs/patterns.cpp
  48. 0 0
      scripts/t/Dpkg_Shlibs/patterns.map
  49. 0 0
      scripts/t/Dpkg_Shlibs/patterns.symbols
  50. 0 0
      scripts/t/Dpkg_Shlibs/symbols.blacklist-filter
  51. 0 0
      scripts/t/Dpkg_Shlibs/symbols.blacklist-groups
  52. 0 0
      scripts/t/Dpkg_Shlibs/symbols.blacklist-ignore
  53. 0 0
      scripts/t/Dpkg_Shlibs/symbols.blacklisted
  54. 0 0
      scripts/t/Dpkg_Shlibs/symbols.fake-1
  55. 0 0
      scripts/t/Dpkg_Shlibs/symbols.fake-2
  56. 0 0
      scripts/t/Dpkg_Shlibs/symbols.fake-3
  57. 0 0
      scripts/t/Dpkg_Shlibs/symbols.include-1
  58. 0 0
      scripts/t/Dpkg_Shlibs/symbols.include-2
  59. 0 0
      scripts/t/Dpkg_Shlibs/symbols.include-3
  60. 0 0
      scripts/t/Dpkg_Shlibs_Cppfilt.t
  61. 3 3
      scripts/t/750_Dpkg_Substvars.t
  62. 0 0
      scripts/t/Dpkg_Substvars/substvars1
  63. 0 0
      scripts/t/Dpkg_Util.t
  64. 0 0
      scripts/t/Dpkg_Version.t
  65. 1 1
      scripts/t/910_merge_changelogs.t
  66. 0 0
      scripts/t/merge_changelogs/ch-a
  67. 0 0
      scripts/t/merge_changelogs/ch-b
  68. 0 0
      scripts/t/merge_changelogs/ch-badver-a
  69. 0 0
      scripts/t/merge_changelogs/ch-badver-b
  70. 0 0
      scripts/t/merge_changelogs/ch-badver-merged
  71. 0 0
      scripts/t/merge_changelogs/ch-badver-old
  72. 0 0
      scripts/t/merge_changelogs/ch-merged
  73. 0 0
      scripts/t/merge_changelogs/ch-merged-basic
  74. 0 0
      scripts/t/merge_changelogs/ch-merged-pr
  75. 0 0
      scripts/t/merge_changelogs/ch-merged-pr-basic
  76. 0 0
      scripts/t/merge_changelogs/ch-old
  77. 1 1
      src/Makefile.am
  78. 1 1
      src/t/100_dpkg_divert.t
  79. 1 1
      test/100_critic.t
  80. 0 0
      test/critic/perlcriticrc
  81. 0 0
      test/pod.t
  82. 1 1
      utils/Makefile.am
  83. 1 1
      utils/t/100_update_alternatives.t

+ 3 - 3
Makefile.am

@@ -130,12 +130,12 @@ coverage-clean:
 endif
 
 test_cases = \
-	test/000_pod.t \
-	test/100_critic.t \
+	test/pod.t \
+	test/critic.t \
 	$(nil)
 
 test_data = \
-	test/100_critic/perlcriticrc \
+	test/critic/perlcriticrc \
 	$(nil)
 
 include $(top_srcdir)/check.am

+ 1 - 0
debian/changelog

@@ -16,6 +16,7 @@ dpkg (1.17.7) UNRELEASED; urgency=low
   * Perl test suite cleanup:
     - Switch test suite runner from ExtUtils::Command::MM to Test::Harness.
     - Enable colors in test suite runner.
+    - Remove sequence number prefixes from test case filenames.
 
   [ Updated dpkg translations ]
   * German (Sven Joachim).

+ 85 - 85
scripts/Makefile.am

@@ -185,99 +185,99 @@ TEST_COVERAGE = $(PERL_COVERAGE)
 test_tmpdir = t.tmp
 
 test_cases = \
-	t/100_Dpkg_Version.t \
-	t/110_Dpkg_Arch.t \
-	t/150_Dpkg_Package.t \
-	t/190_Dpkg_Shlibs_Cppfilt.t \
-	t/200_Dpkg_Shlibs.t \
-	t/300_Dpkg_BuildOptions.t \
-	t/400_Dpkg_Deps.t \
-	t/500_Dpkg_Path.t \
-	t/550_Dpkg_Util.t \
-	t/600_Dpkg_Changelog.t \
-	t/600_Dpkg_Changelog_Ubuntu.t \
-	t/700_Dpkg_Control.t \
-	t/750_Dpkg_Substvars.t \
-	t/800_Dpkg_IPC.t \
-	t/850_Dpkg_Compression.t \
-	t/910_merge_changelogs.t
+	t/Dpkg_Version.t \
+	t/Dpkg_Arch.t \
+	t/Dpkg_Package.t \
+	t/Dpkg_Shlibs_Cppfilt.t \
+	t/Dpkg_Shlibs.t \
+	t/Dpkg_BuildOptions.t \
+	t/Dpkg_Deps.t \
+	t/Dpkg_Path.t \
+	t/Dpkg_Util.t \
+	t/Dpkg_Changelog.t \
+	t/Dpkg_Changelog_Ubuntu.t \
+	t/Dpkg_Control.t \
+	t/Dpkg_Substvars.t \
+	t/Dpkg_IPC.t \
+	t/Dpkg_Compression.t \
+	t/merge_changelogs.t
 
 test_data = \
-	t/200_Dpkg_Shlibs/symbols.blacklisted \
-	t/200_Dpkg_Shlibs/symbols.blacklist-groups \
-	t/200_Dpkg_Shlibs/symbols.blacklist-filter \
-	t/200_Dpkg_Shlibs/symbols.blacklist-ignore \
-	t/200_Dpkg_Shlibs/symbols.fake-1 \
-	t/200_Dpkg_Shlibs/symbols.fake-2 \
-	t/200_Dpkg_Shlibs/symbols.fake-3 \
-	t/200_Dpkg_Shlibs/symbols.include-1 \
-	t/200_Dpkg_Shlibs/symbols.include-2 \
-	t/200_Dpkg_Shlibs/symbols.include-3 \
-	t/200_Dpkg_Shlibs/basictags.symbols \
-	t/200_Dpkg_Shlibs/basictags.c \
-	t/200_Dpkg_Shlibs/patterns.symbols \
-	t/200_Dpkg_Shlibs/patterns.cpp \
-	t/200_Dpkg_Shlibs/patterns.map \
-	t/200_Dpkg_Shlibs/ld.so.conf \
-	t/200_Dpkg_Shlibs/ld.so.conf_2 \
-	t/200_Dpkg_Shlibs/ld.so.conf.d/normal.conf \
-	t/200_Dpkg_Shlibs/ld.so.conf.d/inf_recurse.conf \
-	t/200_Dpkg_Shlibs/ld.so.conf.d/recursive.conf \
-	t/200_Dpkg_Shlibs/objdump.space \
-	t/200_Dpkg_Shlibs/objdump.basictags-amd64 \
-	t/200_Dpkg_Shlibs/objdump.basictags-i386 \
-	t/200_Dpkg_Shlibs/objdump.blacklisted \
-	t/200_Dpkg_Shlibs/objdump.patterns \
-	t/200_Dpkg_Shlibs/objdump.glib-ia64 \
-	t/200_Dpkg_Shlibs/objdump.libc6-2.3 \
-	t/200_Dpkg_Shlibs/objdump.libc6-2.6 \
-	t/200_Dpkg_Shlibs/objdump.dbd-pg \
-	t/200_Dpkg_Shlibs/objdump.ls \
-	t/600_Dpkg_Changelog/countme \
-	t/600_Dpkg_Changelog/fields \
-	t/600_Dpkg_Changelog/misplaced-tz \
-	t/600_Dpkg_Changelog/regressions \
-	t/600_Dpkg_Changelog/shadow \
-	t/700_Dpkg_Control/control-1 \
-	t/700_Dpkg_Control/bogus-unsigned.dsc \
-	t/700_Dpkg_Control/bogus-armor-double.dsc \
-	t/700_Dpkg_Control/bogus-armor-no-sig.dsc \
-	t/700_Dpkg_Control/bogus-armor-trail.dsc \
-	t/700_Dpkg_Control/bogus-armor-inline.dsc \
-	t/700_Dpkg_Control/bogus-armor-nested.dsc \
-	t/700_Dpkg_Control/bogus-armor-spaces.dsc \
-	t/750_Dpkg_Substvars/substvars1 \
-	t/910_merge_changelogs/ch-old \
-	t/910_merge_changelogs/ch-a \
-	t/910_merge_changelogs/ch-b \
-	t/910_merge_changelogs/ch-badver-a \
-	t/910_merge_changelogs/ch-badver-b \
-	t/910_merge_changelogs/ch-badver-merged \
-	t/910_merge_changelogs/ch-badver-old \
-	t/910_merge_changelogs/ch-merged \
-	t/910_merge_changelogs/ch-merged-basic \
-	t/910_merge_changelogs/ch-merged-pr \
-	t/910_merge_changelogs/ch-merged-pr-basic \
+	t/Dpkg_Shlibs/symbols.blacklisted \
+	t/Dpkg_Shlibs/symbols.blacklist-groups \
+	t/Dpkg_Shlibs/symbols.blacklist-filter \
+	t/Dpkg_Shlibs/symbols.blacklist-ignore \
+	t/Dpkg_Shlibs/symbols.fake-1 \
+	t/Dpkg_Shlibs/symbols.fake-2 \
+	t/Dpkg_Shlibs/symbols.fake-3 \
+	t/Dpkg_Shlibs/symbols.include-1 \
+	t/Dpkg_Shlibs/symbols.include-2 \
+	t/Dpkg_Shlibs/symbols.include-3 \
+	t/Dpkg_Shlibs/basictags.symbols \
+	t/Dpkg_Shlibs/basictags.c \
+	t/Dpkg_Shlibs/patterns.symbols \
+	t/Dpkg_Shlibs/patterns.cpp \
+	t/Dpkg_Shlibs/patterns.map \
+	t/Dpkg_Shlibs/ld.so.conf \
+	t/Dpkg_Shlibs/ld.so.conf_2 \
+	t/Dpkg_Shlibs/ld.so.conf.d/normal.conf \
+	t/Dpkg_Shlibs/ld.so.conf.d/inf_recurse.conf \
+	t/Dpkg_Shlibs/ld.so.conf.d/recursive.conf \
+	t/Dpkg_Shlibs/objdump.space \
+	t/Dpkg_Shlibs/objdump.basictags-amd64 \
+	t/Dpkg_Shlibs/objdump.basictags-i386 \
+	t/Dpkg_Shlibs/objdump.blacklisted \
+	t/Dpkg_Shlibs/objdump.patterns \
+	t/Dpkg_Shlibs/objdump.glib-ia64 \
+	t/Dpkg_Shlibs/objdump.libc6-2.3 \
+	t/Dpkg_Shlibs/objdump.libc6-2.6 \
+	t/Dpkg_Shlibs/objdump.dbd-pg \
+	t/Dpkg_Shlibs/objdump.ls \
+	t/Dpkg_Changelog/countme \
+	t/Dpkg_Changelog/fields \
+	t/Dpkg_Changelog/misplaced-tz \
+	t/Dpkg_Changelog/regressions \
+	t/Dpkg_Changelog/shadow \
+	t/Dpkg_Control/control-1 \
+	t/Dpkg_Control/bogus-unsigned.dsc \
+	t/Dpkg_Control/bogus-armor-double.dsc \
+	t/Dpkg_Control/bogus-armor-no-sig.dsc \
+	t/Dpkg_Control/bogus-armor-trail.dsc \
+	t/Dpkg_Control/bogus-armor-inline.dsc \
+	t/Dpkg_Control/bogus-armor-nested.dsc \
+	t/Dpkg_Control/bogus-armor-spaces.dsc \
+	t/Dpkg_Substvars/substvars1 \
+	t/merge_changelogs/ch-old \
+	t/merge_changelogs/ch-a \
+	t/merge_changelogs/ch-b \
+	t/merge_changelogs/ch-badver-a \
+	t/merge_changelogs/ch-badver-b \
+	t/merge_changelogs/ch-badver-merged \
+	t/merge_changelogs/ch-badver-old \
+	t/merge_changelogs/ch-merged \
+	t/merge_changelogs/ch-merged-basic \
+	t/merge_changelogs/ch-merged-pr \
+	t/merge_changelogs/ch-merged-pr-basic \
 	t/origins/debian \
 	t/origins/default \
 	t/origins/ubuntu
 
 test_data_objects = \
-	t/200_Dpkg_Shlibs/libobjdump.basictags-amd64.so \
-	t/200_Dpkg_Shlibs/libobjdump.basictags-i386.so \
-	t/200_Dpkg_Shlibs/libobjdump.patterns.so
+	t/Dpkg_Shlibs/libobjdump.basictags-amd64.so \
+	t/Dpkg_Shlibs/libobjdump.basictags-i386.so \
+	t/Dpkg_Shlibs/libobjdump.patterns.so
 
-$(srcdir)/t/200_Dpkg_Shlibs/libobjdump.basictags-amd64.so: $(srcdir)/t/200_Dpkg_Shlibs/basictags.c
+$(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-amd64.so: $(srcdir)/t/Dpkg_Shlibs/basictags.c
 	$(CC) $(CFLAGS) -shared -fPIC -Wl,-soname -Wl,libbasictags.so.1 $< \
 	  -DAMD64 -o $@
 
-$(srcdir)/t/200_Dpkg_Shlibs/libobjdump.basictags-i386.so: $(srcdir)/t/200_Dpkg_Shlibs/basictags.c
+$(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-i386.so: $(srcdir)/t/Dpkg_Shlibs/basictags.c
 	$(CC) $(CFLAGS) -shared -fPIC -Wl,-soname -Wl,libbasictags.so.1 $< \
 	  -o $@
 
-$(srcdir)/t/200_Dpkg_Shlibs/libobjdump.patterns.so: $(srcdir)/t/200_Dpkg_Shlibs/patterns.cpp $(srcdir)/t/200_Dpkg_Shlibs/patterns.map
+$(srcdir)/t/Dpkg_Shlibs/libobjdump.patterns.so: $(srcdir)/t/Dpkg_Shlibs/patterns.cpp $(srcdir)/t/Dpkg_Shlibs/patterns.map
 	$(CXX) $(CXXFLAGS) -shared -fPIC -Wl,-soname -Wl,libpatterns.so.1 \
-	    -Wl,--version-script=$(srcdir)/t/200_Dpkg_Shlibs/patterns.map $< \
+	    -Wl,--version-script=$(srcdir)/t/Dpkg_Shlibs/patterns.map $< \
 	    -o $@
 
 .PHONY: refresh-test-data
@@ -285,13 +285,13 @@ $(srcdir)/t/200_Dpkg_Shlibs/libobjdump.patterns.so: $(srcdir)/t/200_Dpkg_Shlibs/
 OBJDUMP = objdump -w -f -p -T -R
 
 refresh-test-data: $(test_data_objects)
-	$(OBJDUMP) $(srcdir)/t/200_Dpkg_Shlibs/libobjdump.basictags-amd64.so \
-	  >$(srcdir)/t/200_Dpkg_Shlibs/objdump.basictags-amd64
-	$(OBJDUMP) $(srcdir)/t/200_Dpkg_Shlibs/libobjdump.basictags-i386.so \
-	  >$(srcdir)/t/200_Dpkg_Shlibs/objdump.basictags-i386
-	$(OBJDUMP) $(srcdir)/t/200_Dpkg_Shlibs/libobjdump.patterns.so \
-	  >$(srcdir)/t/200_Dpkg_Shlibs/objdump.patterns
-	$(OBJDUMP) `which ls` >$(srcdir)/t/200_Dpkg_Shlibs/objdump.ls
+	$(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-amd64.so \
+	  >$(srcdir)/t/Dpkg_Shlibs/objdump.basictags-amd64
+	$(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.basictags-i386.so \
+	  >$(srcdir)/t/Dpkg_Shlibs/objdump.basictags-i386
+	$(OBJDUMP) $(srcdir)/t/Dpkg_Shlibs/libobjdump.patterns.so \
+	  >$(srcdir)/t/Dpkg_Shlibs/objdump.patterns
+	$(OBJDUMP) `which ls` >$(srcdir)/t/Dpkg_Shlibs/objdump.ls
 
 include $(top_srcdir)/check.am
 

+ 0 - 1
scripts/t/200_Dpkg_Shlibs/ld.so.conf.d/inf_recurse.conf

@@ -1 +0,0 @@
-include t/200_Dpkg_Shlibs/ld.so.conf

+ 0 - 1
scripts/t/200_Dpkg_Shlibs/ld.so.conf.d/recursive.conf

@@ -1 +0,0 @@
-include t/200_Dpkg_Shlibs/ld.so.conf_2

scripts/t/110_Dpkg_Arch.t → scripts/t/Dpkg_Arch.t


scripts/t/300_Dpkg_BuildOptions.t → scripts/t/Dpkg_BuildOptions.t


+ 1 - 1
scripts/t/600_Dpkg_Changelog.t

@@ -28,7 +28,7 @@ BEGIN {
 };
 
 my $srcdir = $ENV{srcdir} || '.';
-my $datadir = $srcdir . '/t/600_Dpkg_Changelog';
+my $datadir = $srcdir . '/t/Dpkg_Changelog';
 
 my $vendor = get_current_vendor();
 

scripts/t/600_Dpkg_Changelog/countme → scripts/t/Dpkg_Changelog/countme


scripts/t/600_Dpkg_Changelog/fields → scripts/t/Dpkg_Changelog/fields


scripts/t/600_Dpkg_Changelog/misplaced-tz → scripts/t/Dpkg_Changelog/misplaced-tz


scripts/t/600_Dpkg_Changelog/regressions → scripts/t/Dpkg_Changelog/regressions


scripts/t/600_Dpkg_Changelog/shadow → scripts/t/Dpkg_Changelog/shadow


+ 1 - 1
scripts/t/600_Dpkg_Changelog_Ubuntu.t

@@ -18,4 +18,4 @@ use warnings;
 
 $ENV{DEB_VENDOR} = 'Ubuntu';
 my $srcdir = $ENV{srcdir} || '.';
-do "$srcdir/t/600_Dpkg_Changelog.t";
+do "$srcdir/t/Dpkg_Changelog.t";

+ 1 - 1
scripts/t/850_Dpkg_Compression.t

@@ -21,7 +21,7 @@ use Test::More tests => 13;
 use_ok('Dpkg::Compression');
 use_ok('Dpkg::Compression::FileHandle');
 
-my $tmpdir = 't.tmp/850_Dpkg_Compression';
+my $tmpdir = 't.tmp/Dpkg_Compression';
 mkdir $tmpdir;
 my @lines = ("One\n", "Two\n", "Three\n");
 my $fh;

+ 1 - 1
scripts/t/700_Dpkg_Control.t

@@ -25,7 +25,7 @@ BEGIN {
 }
 
 my $srcdir = $ENV{srcdir} || '.';
-my $datadir = $srcdir . '/t/700_Dpkg_Control';
+my $datadir = $srcdir . '/t/Dpkg_Control';
 
 sub parse_dsc {
     my ($path) = @_;

scripts/t/700_Dpkg_Control/bogus-armor-double.dsc → scripts/t/Dpkg_Control/bogus-armor-double.dsc


scripts/t/700_Dpkg_Control/bogus-armor-inline.dsc → scripts/t/Dpkg_Control/bogus-armor-inline.dsc


scripts/t/700_Dpkg_Control/bogus-armor-nested.dsc → scripts/t/Dpkg_Control/bogus-armor-nested.dsc


scripts/t/700_Dpkg_Control/bogus-armor-no-sig.dsc → scripts/t/Dpkg_Control/bogus-armor-no-sig.dsc


scripts/t/700_Dpkg_Control/bogus-armor-spaces.dsc → scripts/t/Dpkg_Control/bogus-armor-spaces.dsc


scripts/t/700_Dpkg_Control/bogus-armor-trail.dsc → scripts/t/Dpkg_Control/bogus-armor-trail.dsc


scripts/t/700_Dpkg_Control/bogus-unsigned.dsc → scripts/t/Dpkg_Control/bogus-unsigned.dsc


scripts/t/700_Dpkg_Control/control-1 → scripts/t/Dpkg_Control/control-1


scripts/t/400_Dpkg_Deps.t → scripts/t/Dpkg_Deps.t


scripts/t/800_Dpkg_IPC.t → scripts/t/Dpkg_IPC.t


scripts/t/150_Dpkg_Package.t → scripts/t/Dpkg_Package.t


+ 1 - 1
scripts/t/500_Dpkg_Path.t

@@ -22,7 +22,7 @@ use_ok('Dpkg::Path', 'canonpath', 'resolve_symlink',
        'check_files_are_the_same', 'get_pkg_root_dir',
        'guess_pkg_root_dir', 'relative_to_pkg_root');
 
-my $tmpdir = 't.tmp/500_Dpkg_Path';
+my $tmpdir = 't.tmp/Dpkg_Path';
 
 mkdir $tmpdir;
 mkdir "$tmpdir/a";

+ 2 - 2
scripts/t/200_Dpkg_Shlibs.t

@@ -30,14 +30,14 @@ my @save_paths = Dpkg::Shlibs::get_library_paths();
 Dpkg::Shlibs::reset_library_paths();
 
 my $srcdir = $ENV{srcdir} || '.';
-my $datadir = $srcdir . '/t/200_Dpkg_Shlibs';
+my $datadir = $srcdir . '/t/Dpkg_Shlibs';
 
 # We want relative paths inside the ld.so.conf fragments to work, and $srcdir
 # is usually a relative path, so let's temporarily switch directory.
 # XXX: An alternative would be to make parse_ldso_conf relative path aware.
 my $cwd = cwd();
 chdir($srcdir);
-Dpkg::Shlibs::parse_ldso_conf('t/200_Dpkg_Shlibs/ld.so.conf');
+Dpkg::Shlibs::parse_ldso_conf('t/Dpkg_Shlibs/ld.so.conf');
 chdir($cwd);
 
 use Data::Dumper;

scripts/t/200_Dpkg_Shlibs/basictags.c → scripts/t/Dpkg_Shlibs/basictags.c


scripts/t/200_Dpkg_Shlibs/basictags.symbols → scripts/t/Dpkg_Shlibs/basictags.symbols


+ 1 - 1
scripts/t/200_Dpkg_Shlibs/ld.so.conf

@@ -5,5 +5,5 @@
 /nonexistant/lib64
 
 include /nonexistant/*.conf
-include t/200_Dpkg_Shlibs/ld.so.conf.d/*.conf
+include t/Dpkg_Shlibs/ld.so.conf.d/*.conf
 

+ 1 - 0
scripts/t/Dpkg_Shlibs/ld.so.conf.d/inf_recurse.conf

@@ -0,0 +1 @@
+include t/Dpkg_Shlibs/ld.so.conf

scripts/t/200_Dpkg_Shlibs/ld.so.conf.d/normal.conf → scripts/t/Dpkg_Shlibs/ld.so.conf.d/normal.conf


+ 1 - 0
scripts/t/Dpkg_Shlibs/ld.so.conf.d/recursive.conf

@@ -0,0 +1 @@
+include t/Dpkg_Shlibs/ld.so.conf_2

scripts/t/200_Dpkg_Shlibs/ld.so.conf_2 → scripts/t/Dpkg_Shlibs/ld.so.conf_2


+ 1 - 1
scripts/t/200_Dpkg_Shlibs/objdump.basictags-amd64

@@ -1,5 +1,5 @@
 
-./t/200_Dpkg_Shlibs/libobjdump.basictags-amd64.so:     file format elf32-i386
+./t/Dpkg_Shlibs/libobjdump.basictags-amd64.so:     file format elf32-i386
 architecture: i386, flags 0x00000150:
 HAS_SYMS, DYNAMIC, D_PAGED
 start address 0x00000410

+ 1 - 1
scripts/t/200_Dpkg_Shlibs/objdump.basictags-i386

@@ -1,5 +1,5 @@
 
-./t/200_Dpkg_Shlibs/libobjdump.basictags-i386.so:     file format elf32-i386
+./t/Dpkg_Shlibs/libobjdump.basictags-i386.so:     file format elf32-i386
 architecture: i386, flags 0x00000150:
 HAS_SYMS, DYNAMIC, D_PAGED
 start address 0x00000440

scripts/t/200_Dpkg_Shlibs/objdump.blacklisted → scripts/t/Dpkg_Shlibs/objdump.blacklisted


scripts/t/200_Dpkg_Shlibs/objdump.dbd-pg → scripts/t/Dpkg_Shlibs/objdump.dbd-pg


scripts/t/200_Dpkg_Shlibs/objdump.glib-ia64 → scripts/t/Dpkg_Shlibs/objdump.glib-ia64


scripts/t/200_Dpkg_Shlibs/objdump.libc6-2.3 → scripts/t/Dpkg_Shlibs/objdump.libc6-2.3


scripts/t/200_Dpkg_Shlibs/objdump.libc6-2.6 → scripts/t/Dpkg_Shlibs/objdump.libc6-2.6


scripts/t/200_Dpkg_Shlibs/objdump.ls → scripts/t/Dpkg_Shlibs/objdump.ls


+ 1 - 1
scripts/t/200_Dpkg_Shlibs/objdump.patterns

@@ -1,5 +1,5 @@
 
-./t/200_Dpkg_Shlibs/libobjdump.patterns.so:     file format elf32-i386
+./t/Dpkg_Shlibs/libobjdump.patterns.so:     file format elf32-i386
 architecture: i386, flags 0x00000150:
 HAS_SYMS, DYNAMIC, D_PAGED
 start address 0x00001880

scripts/t/200_Dpkg_Shlibs/objdump.space → scripts/t/Dpkg_Shlibs/objdump.space


scripts/t/200_Dpkg_Shlibs/patterns.cpp → scripts/t/Dpkg_Shlibs/patterns.cpp


scripts/t/200_Dpkg_Shlibs/patterns.map → scripts/t/Dpkg_Shlibs/patterns.map


scripts/t/200_Dpkg_Shlibs/patterns.symbols → scripts/t/Dpkg_Shlibs/patterns.symbols


scripts/t/200_Dpkg_Shlibs/symbols.blacklist-filter → scripts/t/Dpkg_Shlibs/symbols.blacklist-filter


scripts/t/200_Dpkg_Shlibs/symbols.blacklist-groups → scripts/t/Dpkg_Shlibs/symbols.blacklist-groups


scripts/t/200_Dpkg_Shlibs/symbols.blacklist-ignore → scripts/t/Dpkg_Shlibs/symbols.blacklist-ignore


scripts/t/200_Dpkg_Shlibs/symbols.blacklisted → scripts/t/Dpkg_Shlibs/symbols.blacklisted


scripts/t/200_Dpkg_Shlibs/symbols.fake-1 → scripts/t/Dpkg_Shlibs/symbols.fake-1


scripts/t/200_Dpkg_Shlibs/symbols.fake-2 → scripts/t/Dpkg_Shlibs/symbols.fake-2


scripts/t/200_Dpkg_Shlibs/symbols.fake-3 → scripts/t/Dpkg_Shlibs/symbols.fake-3


scripts/t/200_Dpkg_Shlibs/symbols.include-1 → scripts/t/Dpkg_Shlibs/symbols.include-1


scripts/t/200_Dpkg_Shlibs/symbols.include-2 → scripts/t/Dpkg_Shlibs/symbols.include-2


scripts/t/200_Dpkg_Shlibs/symbols.include-3 → scripts/t/Dpkg_Shlibs/symbols.include-3


scripts/t/190_Dpkg_Shlibs_Cppfilt.t → scripts/t/Dpkg_Shlibs_Cppfilt.t


+ 3 - 3
scripts/t/750_Dpkg_Substvars.t

@@ -24,7 +24,7 @@ use Dpkg::Arch qw(get_host_arch);
 use_ok('Dpkg::Substvars');
 
 my $srcdir = $ENV{srcdir} || '.';
-my $datadir = $srcdir . '/t/750_Dpkg_Substvars';
+my $datadir = $srcdir . '/t/Dpkg_Substvars';
 
 my $s = Dpkg::Substvars->new();
 
@@ -80,7 +80,7 @@ is($s->substvars('This is a string with unknown variable ${blubb}'),
                  'This is a string with unknown variable ',
                  'substvars missing');
 delete $SIG{__WARN__};
-is($output, '750_Dpkg_Substvars.t: warning: unknown substitution variable ${blubb}'."\n"
+is($output, 'Dpkg_Substvars.t: warning: unknown substitution variable ${blubb}'."\n"
           , 'missing variables warning');
 
 # Recursive replace
@@ -99,7 +99,7 @@ $output = '';
 $SIG{__WARN__} = sub { $output .= $_[0] };
 $s->warn_about_unused();
 delete $SIG{__WARN__};
-is($output, "750_Dpkg_Substvars.t: warning: unused substitution variable \${var2}\n",
+is($output, "Dpkg_Substvars.t: warning: unused substitution variable \${var2}\n",
           , 'unused variables warnings');
 
 # Disable warnings for a certain variable

scripts/t/750_Dpkg_Substvars/substvars1 → scripts/t/Dpkg_Substvars/substvars1


scripts/t/550_Dpkg_Util.t → scripts/t/Dpkg_Util.t


scripts/t/100_Dpkg_Version.t → scripts/t/Dpkg_Version.t


+ 1 - 1
scripts/t/910_merge_changelogs.t

@@ -24,7 +24,7 @@ use File::Compare;
 use File::Temp qw(tempfile);
 
 my $srcdir = $ENV{srcdir} || '.';
-my $datadir = "$srcdir/t/910_merge_changelogs";
+my $datadir = "$srcdir/t/merge_changelogs";
 
 my $res;
 sub test_merge {

scripts/t/910_merge_changelogs/ch-a → scripts/t/merge_changelogs/ch-a


scripts/t/910_merge_changelogs/ch-b → scripts/t/merge_changelogs/ch-b


scripts/t/910_merge_changelogs/ch-badver-a → scripts/t/merge_changelogs/ch-badver-a


scripts/t/910_merge_changelogs/ch-badver-b → scripts/t/merge_changelogs/ch-badver-b


scripts/t/910_merge_changelogs/ch-badver-merged → scripts/t/merge_changelogs/ch-badver-merged


scripts/t/910_merge_changelogs/ch-badver-old → scripts/t/merge_changelogs/ch-badver-old


scripts/t/910_merge_changelogs/ch-merged → scripts/t/merge_changelogs/ch-merged


scripts/t/910_merge_changelogs/ch-merged-basic → scripts/t/merge_changelogs/ch-merged-basic


scripts/t/910_merge_changelogs/ch-merged-pr → scripts/t/merge_changelogs/ch-merged-pr


scripts/t/910_merge_changelogs/ch-merged-pr-basic → scripts/t/merge_changelogs/ch-merged-pr-basic


scripts/t/910_merge_changelogs/ch-old → scripts/t/merge_changelogs/ch-old


+ 1 - 1
src/Makefile.am

@@ -91,7 +91,7 @@ install-data-local:
 test_tmpdir = t.tmp
 
 test_cases = \
-	t/100_dpkg_divert.t
+	t/dpkg_divert.t
 
 include $(top_srcdir)/check.am
 

+ 1 - 1
src/t/100_dpkg_divert.t

@@ -27,7 +27,7 @@ delete $ENV{DPKG_MAINTSCRIPT_ARCH};
 
 my $srcdir = $ENV{srcdir} || '.';
 my $builddir = $ENV{builddir} || '.';
-my $tmpdir = 't.tmp/950_dpkg_divert';
+my $tmpdir = 't.tmp/dpkg_divert';
 my $admindir = File::Spec->rel2abs("$tmpdir/admindir");
 my $testdir = File::Spec->rel2abs("$tmpdir/testdir");
 

+ 1 - 1
test/100_critic.t

@@ -115,7 +115,7 @@ my @policies = qw(
 );
 
 Test::Perl::Critic->import(
-    -profile => 'test/100_critic/perlcriticrc',
+    -profile => 'test/critic/perlcriticrc',
     -verbose => 8,
     -include => \@policies,
     -only => 1,

test/100_critic/perlcriticrc → test/critic/perlcriticrc


test/000_pod.t → test/pod.t


+ 1 - 1
utils/Makefile.am

@@ -55,7 +55,7 @@ TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)
 
 test_tmpdir = t.tmp
 test_cases = \
-	t/100_update_alternatives.t
+	t/update_alternatives.t
 
 include $(top_srcdir)/check.am
 

+ 1 - 1
utils/t/100_update_alternatives.t

@@ -22,7 +22,7 @@ use strict;
 use warnings;
 
 my $srcdir = $ENV{srcdir} || '.';
-my $tmpdir = 't.tmp/900_update_alternatives';
+my $tmpdir = 't.tmp/update_alternatives';
 my $admindir = File::Spec->rel2abs("$tmpdir/admindir"),
 my $altdir = File::Spec->rel2abs("$tmpdir/alternatives");
 my $bindir = File::Spec->rel2abs("$tmpdir/bin");