test.sh requires valgrind there are two kinds of tests:
those tests are just gwion (.gw) files, handling special comments:
// [skip](optionally followed by reason to skip)
| #include <string.h> | |
| #include "defs.h" | |
| #include "map.h" | |
| #include "context.h" | |
| #include "func.h" | |
| #include "err_msg.h" | |
| #ifndef GWION_DOC_DIR | |
| #define GWION_DOC_DIR "/usr/lib/Gwion/doc/" | |
| #endif |
| 5.0 => float songlength; | |
| [660.0, 587.0, 440.0, 392.0, 370.0, 392.0] @=> float freqs[]; | |
| [0.5, 1.5, 2.5, 3.0, 3.5, 4.0] @=> float soundtimes[]; | |
| [0.5, 0.5, 1.0, 1.0, 1.0, 1.0] @=> float amps[]; | |
| [20, 20, 20, 20, 20, 20] @=> int num[]; | |
| for (0 => int i; i < freqs.size(); 1 +=> i) { | |
| SinOsc s[num[i]];//Hold all of the oscillators for this note | |
| 0.5 / num[i] => float scale; | |
| for (0 => int j; j < num[i]; 1 +=> j) { |
| #include <string.h> | |
| #include "defs.h" | |
| #include "map.h" | |
| #include "context.h" | |
| #include "func.h" | |
| #include "err_msg.h" | |
| #ifndef GWION_DOC_DIR | |
| #define GWION_DOC_DIR "/usr/lib/Gwion/doc/" | |
| #endif |
| #ifndef SPFLOAT | |
| #define SPFLOAT double | |
| #endif |