Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CHAITANYA CHAWLA
purr-data
Commits
a1dcffef
Commit
a1dcffef
authored
4 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Plain Diff
Merge branch 'suppress-creation-error-messages'
parents
2ee6a60b
fa276b4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/external-tests.pd
+36
-28
36 additions, 28 deletions
scripts/external-tests.pd
with
36 additions
and
28 deletions
scripts/external-tests.pd
+
36
−
28
View file @
a1dcffef
#N canvas
9 60
659 633 12;
#N canvas
10 84
659 633 12;
#X obj 61 34 loadbang;
#N canvas 107 123 756 233 load_hcs/folder_list 0;
#X obj 357 47 inlet;
...
...
@@ -368,7 +368,7 @@ works.;
#X connect 28 1 19 1;
#X connect 29 0 19 0;
#X restore 132 653 pd get-creator-names;
#N canvas 31
0 187
450 421 test-object 0;
#N canvas 31
1 211
450 421 test-object 0;
#X obj 26 36 inlet;
#X text 72 34 creator_name argtype1 argtype2 etc.;
#N canvas 372 37 649 659 right_outlet_for_aliases 0;
...
...
@@ -434,7 +434,7 @@ tests;
#X connect 26 1 3 0;
#X connect 27 0 12 1;
#X restore 194 129 pd right_outlet_for_aliases;
#N canvas
6 60
740
633
load_the_object 0;
#N canvas
787 103
740
854
load_the_object 0;
#X obj 22 13 inlet;
#X obj 86 115 list split 1;
#N canvas 238 121 613 490 set_args 0;
...
...
@@ -512,29 +512,29 @@ arguments in order to continue the tests, f 45;
#X restore 193 168 pd set_args;
#X obj 126 140 route bang;
#X obj 86 213 list;
#X obj
86 38
1 s pd-\$0-load_the_object_subpatch;
#X obj
125 52
1 s pd-\$0-load_the_object_subpatch;
#X obj 86 238 t a b;
#X msg 118 264 clear;
#X text 216 107 Try to instantiate the object and connect up the primary
inlet and outlet;
#X msg 54
43
0 find \$1;
#X obj 54
4
55 s \$0-load_canvasinfo_input;
#X obj 54
48
0 r \$0-load_canvasinfo_output;
#X obj 54
50
5 list split 1;
#X text 261
42
9 <-- find the object by box text-- it was the first
#X msg 54
57
0 find \$1;
#X obj 54 5
9
5 s \$0-load_canvasinfo_input;
#X obj 54
62
0 r \$0-load_canvasinfo_output;
#X obj 54
64
5 list split 1;
#X text 261
56
9 <-- find the object by box text-- it was the first
one on the canvas to get created so it will get returned first if there
are any duplicate matches;
#X text 149
50
5 <-- filter out any duplicate matches from our "helper"
#X text 149
64
5 <-- filter out any duplicate matches from our "helper"
object chain;
#X obj 54
53
0 t b a;
#X msg 54
55
5 class;
#X obj 54
58
0 objectinfo;
#X obj 54
60
5 select text;
#X text 140
60
4 <-- the "text" class is an internal class that essentially
#X obj 54
67
0 t b a;
#X msg 54
69
5 class;
#X obj 54
72
0 objectinfo;
#X obj 54
74
5 select text;
#X text 140
74
4 <-- the "text" class is an internal class that essentially
represents an object box that currently holds no object. So if we query
our object and get "text" here \, it means Pd couldn't load the object.
;
#X obj 54 4
0
6 trigger anything anything;
#X obj 54
5
46 trigger anything anything;
#N canvas 365 98 450 323 fail 0;
#X obj 41 34 inlet;
#X obj 112 34 inlet;
...
...
@@ -548,8 +548,8 @@ our object and get "text" here \, it means Pd couldn't load the object.
#X connect 3 0 6 0;
#X connect 5 0 3 1;
#X connect 6 0 4 0;
#X restore 54
63
0 pd fail;
#X obj 22
66
5 outlet;
#X restore 54
77
0 pd fail;
#X obj 22
80
5 outlet;
#N canvas 436 87 569 401 plain_then_with_libdir_prefix 0;
#X obj 35 26 inlet;
#X text 128 26 try both the lone creator name and the libdir prefix:
...
...
@@ -579,10 +579,17 @@ may be other oddities in external libs with regard to libdir prefixes.
#X restore 128 57 pd plain_then_with_libdir_prefix;
#X obj 22 38 t a a;
#X obj 54 89 t a a;
#X msg
86 29
1 obj 5 30 \$@ \, obj 5 100 r \$0-load_canvasinfo_input
#X msg
125 44
1 obj 5 30 \$@ \, obj 5 100 r \$0-load_canvasinfo_input
\, obj 5 130 canvasinfo \, obj 5 160 s \$0-load_canvasinfo_output \,
obj 5 190 r \$0-switch \, obj 5 220 switch~ \, connect 1 0 2 0 \, connect
2 0 3 0 \, connect 4 0 5 0;
#X obj 86 307 unpost;
#X text 137 306 suppress any constructor/error messages associated
with creating this object. In the future we may want to fail the test
if there are errors. For now there are just too many abstractions that
have dependencies on other abstractions \, and the way we're doing
the tests those standard paths aren't accessible. So for now \, we're
just looking for crashers and memory errors...;
#X connect 0 0 24 0;
#X connect 1 0 4 0;
#X connect 1 1 3 0;
...
...
@@ -591,7 +598,7 @@ obj 5 190 r \$0-switch \, obj 5 220 switch~ \, connect 1 0 2 0 \, connect
#X connect 3 0 4 1;
#X connect 3 1 2 0;
#X connect 4 0 6 0;
#X connect 6 0 2
6
0;
#X connect 6 0 2
7
0;
#X connect 6 1 7 0;
#X connect 7 0 5 0;
#X connect 9 0 10 0;
...
...
@@ -610,11 +617,12 @@ obj 5 190 r \$0-switch \, obj 5 220 switch~ \, connect 1 0 2 0 \, connect
#X connect 25 0 20 0;
#X connect 25 1 1 0;
#X connect 26 0 5 0;
#X restore 46 206 pd load_the_object;
#X connect 27 1 26 0;
#X restore 66 206 pd load_the_object;
#N canvas 844 164 450 369 \$0-load_the_object_subpatch 0;
#X restore 1
9
1 207 pd \$0-load_the_object_subpatch;
#X msg
4
6 2
9
1 clear;
#X obj
4
6
31
6 s pd-\$0-load_the_object_subpatch;
#X restore
2
11 207 pd \$0-load_the_object_subpatch;
#X msg
6
6 2
7
1 clear;
#X obj
6
6
29
6 s pd-\$0-load_the_object_subpatch;
#N canvas 135 60 704 645 check_for_namespace_collisions 0;
#X obj 42 26 inlet;
#X obj 42 51 t a a;
...
...
@@ -709,10 +717,10 @@ nameclash is in the current library we're testing then we ignore it.
#X connect 24 0 22 0;
#X restore 194 164 pd check_for_namespace_collisions;
#X obj 86 87 s \$0-object-test;
#X obj
6
6 160 s pd;
#X obj
4
6 160 s pd;
#X obj 26 61 t b b a b;
#X msg
6
6 131 dsp 1 \, dsp 0;
#X obj 26 3
4
5 outlet;
#X msg
4
6 131 dsp 1 \, dsp 0;
#X obj 26 3
2
5 outlet;
#N canvas 798 213 450 323 test-dsp 0;
#X obj 46 32 inlet;
#X obj 46 61 t b b b b;
...
...
@@ -732,7 +740,7 @@ non-optimized branches.;
#X connect 1 3 3 0;
#X connect 3 0 4 0;
#X connect 6 0 4 0;
#X restore
4
6 2
4
8 pd test-dsp;
#X restore
6
6 2
3
8 pd test-dsp;
#X connect 0 0 10 0;
#X connect 2 0 7 0;
#X connect 2 1 7 0;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment