separate tests for dynamic
This commit is contained in:
parent
82d310ea76
commit
7b889a2350
12 changed files with 27 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rm raylib pyray examples
|
||||
ln -s ../raylib
|
||||
ln -s ../pyray
|
||||
ln -s ../examples
|
||||
|
|
17
tests/run_tests_dynamic.sh
Executable file
17
tests/run_tests_dynamic.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rm raylib pyray examples
|
||||
ln -s ../dynamic/raylib
|
||||
ln -s ../dynamic/pyray
|
||||
ln -s ../examples
|
||||
for FILE in test_*.py
|
||||
do
|
||||
if python3 $FILE; then
|
||||
echo $FILE returned true
|
||||
else
|
||||
echo $FILE returned some error
|
||||
rm raylib pyray examples
|
||||
exit
|
||||
fi
|
||||
done
|
||||
rm raylib pyray examples
|
9
tests/test_float_pointers.py
Normal file
9
tests/test_float_pointers.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
import pyray as pr
|
||||
|
||||
pr.init_window(1280, 720, "any")
|
||||
|
||||
shader = pr.load_shader("", "shader.fs")
|
||||
time = pr.ffi.new("float *", 0.0)
|
||||
timeLoc = pr.get_shader_location(shader, "uTime")
|
||||
pr.set_shader_value(shader, timeLoc, time, pr.SHADER_UNIFORM_FLOAT)
|
||||
pr.set_shader_value(shader, timeLoc, 0.0, pr.SHADER_UNIFORM_FLOAT)
|
Reference in a new issue