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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
brittney allen
purr-data
Commits
12445dcc
Commit
12445dcc
authored
5 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Patches
Plain Diff
update external tests to cover dsp_add and dsp class perform routines
parent
e5fc916b
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
+96
-57
96 additions, 57 deletions
scripts/external-tests.pd
with
96 additions
and
57 deletions
scripts/external-tests.pd
+
96
−
57
View file @
12445dcc
#N canvas
1 53
659 6
16
12;
#N canvas
9 60
659 6
33
12;
#X obj 61 34 loadbang;
#N canvas 107 123 756 233 load_hcs/folder_list 0;
#X obj 357 47 inlet;
#X obj 357 155 s pd-\$0-hcs/folder_list;
#N canvas 288 225 450 300 \$0-hcs/folder_list 0;
#X obj 5 5 receive 1003-fl-in;
#X obj 5 30 /usr/lib/pd-l2ork/extra/hcs/folder_list;
#X obj 5 55 send 1003-fl-out;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 43 113 pd \$0-hcs/folder_list;
#X obj 43 47 inlet;
#X obj 43 76 s \$0-fl-in;
...
...
@@ -57,7 +62,16 @@ iem_anything ekext disis lyonpotpourri;
#X obj 102 163 f;
#X obj 102 188 + 1;
#X msg 274 263 set;
#X msg 66 307 \$1 \, \$2 \,;
#X msg 66 307 \$1 \, \$2 \, \$3 \, \$4 \, \$5 \, \$6 \, \$7 \, \$8
\, \$9 \, \$10 \, \$11 \, \$12 \, \$13 \, \$14 \, \$15 \, \$16 \, \$17
\, \$18 \, \$19 \, \$20 \, \$21 \, \$22 \, \$23 \, \$24 \, \$25 \,
\$26 \, \$27 \, \$28 \, \$29 \, \$30 \, \$31 \, \$32 \, \$33 \, \$34
\, \$35 \, \$36 \, \$37 \, \$38 \, \$39 \, \$40 \, \$41 \, \$42 \,
\$43 \, \$44 \, \$45 \, \$46 \, \$47 \, \$48 \, \$49 \, \$50 \, \$51
\, \$52 \, \$53 \, \$54 \, \$55 \, \$56 \, \$57 \, \$58 \, \$59 \,
\$60 \, \$61 \, \$62 \, \$63 \, \$64 \, \$65 \, \$66 \, \$67 \, \$68
\, \$69 \, \$70 \, \$71 \, \$72 \, \$73 \, \$74 \, \$75 \, \$76 \,
\$77 \, \$78 \, \$79 \, \$80 \, \$81 \, \$82 \, \$83 \, \$84 \,;
#X obj 66 263 list;
#X msg 102 263 adddollar \$1 \, addcomma;
#X msg 150 126 0;
...
...
@@ -143,7 +157,7 @@ iem_anything ekext disis lyonpotpourri;
#X obj 102 163 f;
#X obj 102 188 + 1;
#X msg 274 263 set;
#X msg 66 307 \$1 \, \$2 \,;
#X msg 66 307 \$1 \, \$2
\, \$3
\,;
#X obj 66 263 list;
#X msg 102 263 adddollar \$1 \, addcomma;
#X msg 150 126 0;
...
...
@@ -354,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
24
0 17
9
450
346
test-object 0;
#N canvas
31
0 1
8
7 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;
...
...
@@ -419,8 +433,8 @@ tests;
#X connect 25 0 26 1;
#X connect 26 1 3 0;
#X connect 27 0 12 1;
#X restore 194
7
9 pd right_outlet_for_aliases;
#N canvas
3 25
740 6
94
load_the_object 0;
#X restore 194
12
9 pd right_outlet_for_aliases;
#N canvas
6 60
740 6
33
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;
...
...
@@ -498,32 +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 3
5
1 s pd-\$0-load_the_object_subpatch;
#X obj 86 3
8
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 400 find \$1;
#X msg 86 291 obj 5 30 \$@ \, obj 5 100 r \$0-load_canvasinfo_input
\, obj 5 130 canvasinfo \, obj 5 160 s \$0-load_canvasinfo_output \,
connect 1 0 2 0 \, connect 2 0 3 0;
#X obj 54 425 s \$0-load_canvasinfo_input;
#X obj 54 450 r \$0-load_canvasinfo_output;
#X obj 54 475 list split 1;
#X text 261 399 <-- find the object by box text-- it was the first
#X msg 54 430 find \$1;
#X obj 54 455 s \$0-load_canvasinfo_input;
#X obj 54 480 r \$0-load_canvasinfo_output;
#X obj 54 505 list split 1;
#X text 261 429 <-- 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
47
5 <-- filter out any duplicate matches from our "helper"
#X text 149
50
5 <-- filter out any duplicate matches from our "helper"
object chain;
#X obj 54 5
0
0 t b a;
#X msg 54 5
2
5 class;
#X obj 54 5
5
0 objectinfo;
#X obj 54
57
5 select text;
#X text 140
57
4 <-- the "text" class is an internal class that essentially
#X obj 54 5
3
0 t b a;
#X msg 54 5
5
5 class;
#X obj 54 5
8
0 objectinfo;
#X obj 54
60
5 select text;
#X text 140
60
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
37
6 trigger anything anything;
#X obj 54
40
6 trigger anything anything;
#N canvas 365 98 450 323 fail 0;
#X obj 41 34 inlet;
#X obj 112 34 inlet;
...
...
@@ -537,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 6
0
0 pd fail;
#X obj 22 6
2
5 outlet;
#X restore 54 6
3
0 pd fail;
#X obj 22 6
6
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:
...
...
@@ -568,7 +579,11 @@ 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 connect 0 0 25 0;
#X msg 86 291 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 connect 0 0 24 0;
#X connect 1 0 4 0;
#X connect 1 1 3 0;
#X connect 2 0 4 1;
...
...
@@ -576,31 +591,31 @@ may be other oddities in external libs with regard to libdir prefixes.
#X connect 3 0 4 1;
#X connect 3 1 2 0;
#X connect 4 0 6 0;
#X connect 6 0
10
0;
#X connect 6 0
26
0;
#X connect 6 1 7 0;
#X connect 7 0 5 0;
#X connect 9 0 11 0;
#X connect 10 0 5 0;
#X connect 12 0 13 0;
#X connect 13 0 16 0;
#X connect 9 0 10 0;
#X connect 11 0 12 0;
#X connect 12 0 15 0;
#X connect 15 0 16 0;
#X connect 15 1 17 1;
#X connect 16 0 17 0;
#X connect 16 1 18 1;
#X connect 17 0 18 0;
#X connect 18 0 1
9
0;
#X connect
19
0
22
0;
#X connect 2
1 0 9 0
;
#X connect 2
1 1
22
1
;
#X connect 2
5 0
23 0;
#X connect 2
5
1 2
4
0;
#X connect 25
1
2
6
0;
#X connect 2
6 0 2
1 0;
#X connect 26
1 1
0;
#X restore
2
6
15
6 pd load_the_object;
#N canvas
268 243
450 3
4
6 \$0-load_the_object_subpatch 0;
#X restore 1
7
1
15
7 pd \$0-load_the_object_subpatch;
#X msg
2
6 2
4
1 clear;
#X obj
2
6
26
6 s pd-\$0-load_the_object_subpatch;
#N canvas
99 25
704 6
22
check_for_namespace_collisions 0;
#X connect 18 0
2
1 0;
#X connect
20
0
9
0;
#X connect 2
0 1 21 1
;
#X connect 2
4 0
22
0
;
#X connect 2
4 1
23 0;
#X connect 2
4
1 2
5
0;
#X connect 25
0
2
0
0;
#X connect 2
5 1
1 0;
#X connect 26
0 5
0;
#X restore
4
6
20
6 pd load_the_object;
#N canvas
844 164
450 36
9
\$0-load_the_object_subpatch 0;
#X restore 1
9
1
20
7 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;
#N canvas
135 60
704 6
45
check_for_namespace_collisions 0;
#X obj 42 26 inlet;
#X obj 42 51 t a a;
#X obj 74 83 list split 1;
...
...
@@ -692,19 +707,43 @@ nameclash is in the current library we're testing then we ignore it.
#X connect 22 0 13 0;
#X connect 23 0 24 1;
#X connect 24 0 22 0;
#X restore 194 114 pd check_for_namespace_collisions;
#X obj 49 128 print testing;
#X obj 49 103 list split 1;
#X obj 26 61 t a a b;
#X obj 96 69 s \$0-object-test;
#X restore 194 164 pd check_for_namespace_collisions;
#X obj 86 87 s \$0-object-test;
#X obj 66 160 s pd;
#X obj 26 61 t b b a b;
#X msg 66 131 dsp 1 \, dsp 0;
#X obj 26 345 outlet;
#N canvas 798 213 450 323 test-dsp 0;
#X obj 46 32 inlet;
#X obj 46 61 t b b b b;
#X obj 46 260 outlet;
#X msg 106 110 dsp 1;
#X obj 106 229 send pd;
#X obj 86 149 s \$0-switch;
#X msg 66 183 dsp 0;
#X text 177 149 force a dsp object to compute a block of samples. This
way we can get code coverage for its "perform" routine at the default
block size. Later we may want to reblock to size 4 or 1 to trigger
non-optimized branches.;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 6 0;
#X connect 1 2 5 0;
#X connect 1 3 3 0;
#X connect 3 0 4 0;
#X connect 6 0 4 0;
#X restore 46 248 pd test-dsp;
#X connect 0 0 10 0;
#X connect 2 0 7 0;
#X connect 2 1 7 0;
#X connect 3 0
5
0;
#X connect 3 0
13
0;
#X connect 5 0 6 0;
#X connect 9 0 8 0;
#X connect 10 0 3 0;
#X connect 10 2 11 0;
#X connect 10 0 12 0;
#X connect 10 1 11 0;
#X connect 10 2 3 0;
#X connect 10 3 8 0;
#X connect 11 0 9 0;
#X connect 13 0 5 0;
#X restore 132 714 pd test-object;
#X obj 164 269 trigger bang anything anything;
#X msg 371 293 methods;
...
...
@@ -744,7 +783,7 @@ nameclash is in the current library we're testing then we ignore it.
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X restore 164 359 pd set_\$0-ext;
#N canvas
37 97
1068 5
72
results 0;
#N canvas
236 102
1068 5
95
results 0;
#X obj 62 25 inlet;
#X obj 235 33 r \$0-current-libdir-name;
#X obj 146 33 r \$0-fail;
...
...
@@ -837,7 +876,7 @@ to set up Windows tests \, however.;
#X connect 41 0 42 0;
#X connect 41 1 36 0;
#X connect 42 0 37 0;
#X restore 61
74
1 pd results;
#X restore 61
80
1 pd results;
#X obj 132 239 t a a;
#X obj 61 94 trigger bang bang bang anything;
#X obj 132 179 t a a;
...
...
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