Skip to content

Commit 3e9291f

Browse files
committed
Move all module code to segregated namespace under packages/
Move all module code that will be loaded under packages/ -- while also structuring their filesystem layout as distributions. This should make it easier to keep track of what namespaces a given `use lib ...` is bringing in. For modules under packages/Test we not only create the distribution file layout, but also add a META6.json. When using e.g. Test::Util you load it via `packages/Test-Helpers`. This is slightly different than all the other ad-hoc modules where you include via `packages/Some-Name/lib` ( note the /lib ). This means we are testing areas of the CUR system that were not tested at all before.
1 parent aa32d4d commit 3e9291f

File tree

428 files changed

+446
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

428 files changed

+446
-405
lines changed

APPENDICES/A01-limits/misc.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
2-
use lib $?FILE.IO.parent(3).add: 'packages';
32
use Test;
3+
use lib $?FILE.IO.parent(3).add: 'packages/Test-Helpers';
44
use Test::Util;
55

66
plan 3;

APPENDICES/A01-limits/overflow.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use v6;
2-
use lib $?FILE.IO.parent(3).add("packages");
2+
use lib $?FILE.IO.parent(3).add("packages/Test-Helpers");
33
use Test;
44
use Test::Util;
55

APPENDICES/A02-some-day-maybe/misc.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
2-
use lib $?FILE.IO.parent(3).add: 'packages';
32
use Test;
3+
use lib $?FILE.IO.parent(3).add: 'packages/Test-Helpers';
44
use Test::Util;
55

66
# The tests in this file ensure certain constructs die with a decent error

APPENDICES/A03-older-specs/01-misc.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6.c;
2-
use lib $?FILE.IO.parent(3).add: 'packages';
32
use Test;
3+
use lib $?FILE.IO.parent(3).add: 'packages/Test-Helpers';
44
use Test::Util;
55

66
plan 9;

APPENDICES/A04-experimental/01-misc.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6.c;
2-
use lib $?FILE.IO.parent(3).add: 'packages';
32
use Test;
3+
use lib $?FILE.IO.parent(3).add: 'packages/Test-Helpers';
44
use Test::Util;
55

66
plan 19;

MISC/bug-coverage-6.d.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use v6.d.PREVIEW;
2-
use lib $?FILE.IO.parent(2).add("packages");
2+
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
33
use Test;
44
use Test::Util;
55

MISC/bug-coverage-stress-6.d.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use v6.d.PREVIEW;
2-
use lib $?FILE.IO.parent(2).add("packages");
2+
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
33
use Test;
44
use Test::Util;
55

MISC/bug-coverage-stress.t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
use v6.c;
2-
use lib $?FILE.IO.parent(2).add("packages");
32
use Test;
3+
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
44
use Test::Util;
55

6+
use lib $?FILE.IO.parent(2).add("packages/RAKUDO1413/lib");
7+
68
# This file is for random bugs that don't really fit well in other places
79
# or ones that need to be only part of strestest and not spectest.
810
# Feel free to move the tests to more appropriate places.

MISC/bug-coverage.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6.c;
2-
use lib $?FILE.IO.parent(2).add("packages");
32
use Test;
3+
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
44
use Test::Util;
55

66
# This file is for random bugs that don't really fit well in other places.

MISC/misc-6.d.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use v6.d.PREVIEW;
2-
use lib $?FILE.IO.parent(2).add: 'packages';
2+
use lib $?FILE.IO.parent(2).add: 'packages/Test-Helpers';
33
use Test;
44
use Test::Util;
55

0 commit comments

Comments
 (0)