Skip to content

Commit 7b889a2

Browse files
separate tests for dynamic
1 parent 82d310e commit 7b889a2

12 files changed

+27
-0
lines changed

tests/run_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

3+
rm raylib pyray examples
34
ln -s ../raylib
45
ln -s ../pyray
56
ln -s ../examples

tests/run_tests_dynamic.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
rm raylib pyray examples
4+
ln -s ../dynamic/raylib
5+
ln -s ../dynamic/pyray
6+
ln -s ../examples
7+
for FILE in test_*.py
8+
do
9+
if python3 $FILE; then
10+
echo $FILE returned true
11+
else
12+
echo $FILE returned some error
13+
rm raylib pyray examples
14+
exit
15+
fi
16+
done
17+
rm raylib pyray examples
File renamed without changes.

tests/test_float_pointers.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pyray as pr
2+
3+
pr.init_window(1280, 720, "any")
4+
5+
shader = pr.load_shader("", "shader.fs")
6+
time = pr.ffi.new("float *", 0.0)
7+
timeLoc = pr.get_shader_location(shader, "uTime")
8+
pr.set_shader_value(shader, timeLoc, time, pr.SHADER_UNIFORM_FLOAT)
9+
pr.set_shader_value(shader, timeLoc, 0.0, pr.SHADER_UNIFORM_FLOAT)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)