-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6aff9b7
commit d0d26c2
Showing
7 changed files
with
170 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: test JSFX | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out repository code | ||
with: | ||
# Fetches all submodules recursively | ||
submodules: 'recursive' | ||
|
||
- name: Compile EEL2 with NO_GFX | ||
run: | | ||
make -C WDL/WDL/eel2 NO_GFX=1 | ||
- name: Compile JSFX Plugins | ||
run: | | ||
# Add commands to compile your JSFX scripts | ||
# Example: eel2compiler my_plugin.jsfx | ||
- name: Run Tests | ||
run: | | ||
test_eel.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -360,3 +360,5 @@ MigrationBackup/ | |
|
||
# Fody - auto-generated XML schema | ||
FodyWeavers.xsd | ||
|
||
*.test.eel2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "WDL"] | ||
path = WDL | ||
url = https://github.com/justinfrankel/WDL.git | ||
ignore = all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
cat testing_defines.eel2 > vocalrediso.test.eel2 | ||
sed -r -e 's/^(desc|slider[0-9]+):.*|^@(init|slider|block|serialize|sample)//' \ | ||
-e 's/\/\/DEBUGPRINT/printf/' \ | ||
-e 's/\/\/IFTEST|\/\*IFTEST\{\*|\*\}IFTEST\*\///' \ | ||
-e 's/\*IFNTEST\*|IFNTEST\{\*|\*\}IFNTEST//' \ | ||
vocalrediso-jamesdsp.eel >> vocalrediso.test.eel2 | ||
./WDL/WDL/eel2/loose_eel ./vocalrediso.test.eel2 | ||
|
||
##//DEBUGPRINT("HI"); | ||
##//IFTEST code_here(); | ||
##/*IFTEST{* | ||
## more_code(); | ||
##*}IFTEST*/ | ||
##/*IFNTEST*/called_when_not_testing(); | ||
##/*IFNTEST{*/ | ||
## also_called_when_not_testing(); | ||
##/*}IFNTEST*/ | ||
|
||
# will transform to | ||
|
||
##printf("HI"); | ||
## code_here(); | ||
## | ||
## more_code(); | ||
## | ||
##//called_when_not_testing(); | ||
##/*IFNTEST{*/ | ||
## also_called_when_not_testing(); | ||
##/*IFNTEST}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
function assert_equal_exact(expected, actual, message) global() ( | ||
(expected !== actual) ? printf("expected: %d, was: %d. %s\n", expected, actual, message) | ||
); | ||
|
||
function assert_equal_exact(expected, actual) global() ( | ||
assert_equal_exact(expected, actual, "values differ!") | ||
); | ||
|
||
function assert_true(boolean, message) global() ( | ||
(!boolean) ? printf("expected true, was false. %s\n", message) | ||
); | ||
|
||
function assert_false(boolean, message) global() ( | ||
boolean ? printf("expected false, was true. %s\n", message) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters