rdb
f0ba25e11d
tests: work around Python 2.7 tempfile case bug on Windows
2019-08-20 14:40:15 +02:00
rdb
7d34526c33
tests: fix OS-specific filename issue on Windows with loader tests
2019-08-20 14:00:15 +02:00
rdb
b23561d863
tests: add unit tests for Python loader file types
2019-08-20 13:23:11 +02:00
rdb
1318fd80d7
tests: add unit test for track-gui-items setting in DirectGUI
2019-08-20 01:08:56 +02:00
rdb
a0aa7de291
dgui: fix critical regression introduced by 43a5719
2019-08-19 21:26:35 +02:00
John Cote
ff188c1dca
tests: Add unit test for DirectEntry._autoCapitalize()
...
Closes #628
Co-authored-by: rdb <git@rdb.name>
2019-08-14 13:26:33 +02:00
Mitchell Stokes
369dccbab9
tests: Add tests around compiling GLSL and Cg shaders ( #622 )
2019-08-01 12:32:06 +02:00
pythonengineer
46a3a72029
PythonUtil: weightedChoice should throw IndexError on empty list
...
Also includes a unit test.
Closes #682
2019-07-15 19:39:31 +02:00
rdb
bac376541f
pgraph: add NodePath.replace_texture()
2019-07-10 09:53:42 +02:00
rdb
cc4d5259cc
linmath: fix mat4.get_col3() and mat4.get_row3() when using Eigen
2019-05-02 19:40:23 +02:00
rdb
ca5b4e7b54
ode: fix OdeJoint.attach with None parameters
...
Fixes #633
2019-04-28 22:29:29 +02:00
rdb
6464327e6f
tests: add more thorough unit test for SparseArray::clear_range
2019-04-14 17:59:55 +02:00
Epihaius
83723d38a5
tests: Create test_sparsearray.py
...
Closes #590
2019-04-14 17:59:29 +02:00
rdb
63d2992d5e
egg: add ability to read <Tangent> with four components
...
This is not intended to be used just yet in 1.10, but already added in preparation for changes on master to support #546 . I'm just allowing Panda to parse the syntax ahead of time to reduce potential .egg incompatiblities.
2019-02-05 00:30:54 +01:00
rdb
e4daa0bf16
tests: test various things that could suffer from libc++ eof() bug
2019-01-10 21:55:07 +01:00
rdb
0c5546bcb0
tests: add unit tests for Audio3DManager sound velocity
2019-01-06 09:32:41 +01:00
rdb
0d5d6466f1
Remove references to obsolete index from requirements.txt
2019-01-05 20:53:11 +01:00
Mitchell Stokes
8f4d66db04
tests/build_samples: Use temporary directories to avoid in-source builds
2019-01-04 18:55:31 -08:00
rdb
7bdbbc78a3
tests: fix syntax error in setup.py, use default platforms
2018-12-28 15:36:02 +01:00
rdb
01915a36db
Merge branch 'master' into deploy-ng
2018-12-26 23:41:50 +01:00
rdb
69decc17ff
tests: raise GLSL version from 1.30 to 1.50 for compute shader
2018-12-23 22:28:52 +01:00
rdb
bd6ef2b0ea
Rename CollisionTube to CollisionCapsule (bam 6.44)
...
Adds ability to register "obsolete" names for certain types under older .bam versions, so that we are still able to write out old .bam files.
Fixes #347
2018-12-23 22:28:06 +01:00
rdb
4c0fa1e75d
Merge branch 'master' into deploy-ng
2018-12-16 22:36:45 +01:00
rdb
73452957ee
gobj: better handle NaNs in vertex data when calculating bounds
2018-12-16 20:43:30 +01:00
rdb
a7752da4f1
Merge branch 'master' into deploy-ng
2018-12-09 20:22:23 +01:00
rdb
b5b77e5956
pgraph: fix issues with serializing empty NodePaths
2018-12-09 20:16:55 +01:00
rdb
825058805a
dtoolutil: add GlobPattern::matches_file() and unit test
...
This is used similar to matches() but for file paths: it does not match slashes for * characters and has special support for /**/ and ignores // and /./ patterns.
2018-12-09 15:21:11 +01:00
rdb
d7124d4df4
Merge branch 'master' into deploy-ng
2018-11-29 12:57:49 +01:00
rdb
c427357db9
pnmimage: fix PixelSpec coercion, add PixelSpec unit test
2018-11-27 17:09:40 +01:00
rdb
3d7fcf2ce9
Merge branch 'master' into deploy-ng
2018-11-12 18:31:43 +01:00
rdb
0e7302e86a
tests: add a few basic unit tests for WindowProperties class
2018-11-12 18:14:48 +01:00
rdb
54b3474670
Merge branch 'master' into deploy-ng
2018-10-28 20:47:36 +01:00
rdb
da82087735
tests: add unit test for TextNode::write, see #431
2018-10-28 11:45:39 +01:00
Sam Edwards
3b7b9cd18c
tests: Enhance GLSL test
...
- Don't assume GLSL 4.30 is available just because the driver
supports compute shaders. Drivers before OpenGL 4.3 may still
offer the extension.
- Use GLSL 1.30 by default, and turn on additional features
using extensions. Skip any tests requiring extensions that
aren't supported by the driver.
- Unsigned literal ints should have a 'u' suffix.
- Clean up a few dead Python expressions
2018-10-20 17:55:46 -06:00
Mitchell Stokes
b16f9f8f4f
Merge branch 'master' into deploy-ng
2018-10-18 17:58:21 -07:00
rdb
4bc0a1ef5e
tests: fix futures test when building without true threading
2018-10-17 17:28:25 +02:00
rdb
c28045990c
Merge branch 'master' into deploy-ng
2018-10-15 15:42:48 +02:00
rdb
0561d7920f
tests: add unit tests for TextEncoder
2018-10-08 23:19:29 +02:00
rdb
93a3e7e699
Changes to make ColorAttrib behavior more consistent:
...
- T_off now actually properly disables vertex colours
- T_vertex is now the default, to preserve the previous behaviour
- ShaderGenerator behavior is now the same as in the FFP
- tests are updated to verify new behavior
- tests now properly use vertex colours, previously they accidentally only used flat colors
- With color-scale-via-lighting off and no color scale, color is no longer munged
- p3d_Color in GLSL shaders is now properly set to white instead of black with T_off mode
- In DX9 shaders will now sample white color for absent or disabled vertex color
Fixes #401
Also see #371
2018-10-08 22:09:22 +02:00
rdb
914ef2e13d
tests: add various unit tests for color-related render states
2018-10-08 01:01:08 +02:00
rdb
102a256b05
tests: remove accidentally added debug image output
2018-10-07 23:03:07 +02:00
rdb
cd9673ae9b
tests: fix pytest deprecation warnings
2018-09-28 14:19:40 +02:00
rdb
c43d9b5002
tests: fix issue with double-precision TextNode tests
2018-09-27 22:23:10 +02:00
rdb
a6ad608207
tests: add some unit tests for TextNode
2018-09-25 11:38:59 +02:00
rdb
338b428e65
Merge branch 'master' into deploy-ng
2018-09-17 17:37:07 +02:00
rdb
1a94e65b17
tests: fix mutex test on win32 where mutexes are always reentrant
2018-09-04 23:01:41 +02:00
rdb
171ba35f26
tests: add some simple smoke tests for Mutex and ReMutex
2018-09-04 12:58:48 +02:00
rdb
b168fa6a85
tests: fix erroneous test_texture_clear_unsigned_byte test
2018-09-02 21:04:40 +02:00
rdb
eb62d7f223
tests: add unit tests for clearing and then peeking texture
2018-09-02 12:00:10 +02:00
rdb
a90159271b
tests: remove unused fixture from Datagram tests
2018-08-26 14:02:52 +02:00
rdb
57b66ebeaf
Merge branch 'master' into deploy-ng
2018-08-20 19:13:04 +02:00
rdb
4f9a2aca85
tests: fix issues with temp files without correct case on Windows
2018-08-20 16:56:45 +02:00
rdb
91ae68f04b
tests: attempt to fix egg2pg test failure on macOS
2018-08-19 16:49:54 +02:00
rdb
b4abea17d5
tests: add various matrix unit tests
2018-08-19 16:43:34 +02:00
rdb
b1d2111037
express: add Datagram add_blob and add_blob32, et al.
...
This is for writing Python 2/3 agnostic code for writing binary data to a datagram, and reading from it using DatagramIterator.
2018-08-19 16:01:39 +02:00
Mitchell Stokes
49c47164ff
Merge remote-tracking branch 'origin/master' into deploy-ng
2018-08-12 19:58:15 -07:00
rdb
838d238f6e
tests: add various test cases to test egg loading and transforms
...
Used to track down and reproduce the issue in #228 .
2018-08-12 22:14:22 +02:00
rdb
aa66d8313e
tests: add BoundingPlane unit tests
2018-08-08 21:54:58 +02:00
rdb
1e9a64fe63
tests: add Geom.decompose tests
2018-08-03 21:10:26 +02:00
rdb
4b8ff0573e
tests: add TexturePool unit tests
2018-07-31 14:57:55 +02:00
rdb
f12bc29d6d
tests: do not attempt to run GLSL tests without buffer tex support
2018-07-26 22:58:15 +02:00
rdb
71e18eb960
tests: add test for setting near distance to infinitiy
2018-07-17 23:23:48 +02:00
rdb
eafab53729
tests: fix depth buffer test failure
2018-07-17 22:59:38 +02:00
rdb
06539f5c66
glsl: support passing uint variables to shader
2018-07-17 22:32:34 +02:00
Mitchell Stokes
e4cf73378c
Merge remote-tracking branch 'origin/master' into deploy-ng
2018-07-15 14:38:05 -07:00
rdb
c434e08a9c
tests: add various depth buffer rendering tests
2018-07-12 14:20:31 +02:00
rdb
7c8426a79f
tests: fix int overflow error with GLSL shader test on some drivers
2018-07-08 22:28:52 +02:00
rdb
cf451bde23
tests: add some fuzz to bullet plane shape testing
...
Needed to unbreak the test suite on macOS.
2018-07-08 21:11:36 +02:00
rdb
ec06d3f4f8
tests: fix occasional timing issue in future test
2018-07-05 12:59:02 +02:00
rdb
c5dd683366
tests: add unit test for writing to and extracting buffer textures
2018-07-04 20:55:07 +02:00
rdb
eab8b1c7a3
tform: MouseWatcher sort should uniquify duplicates
...
Also change the code to use range-for when appropriate, which improves code readability.
2018-06-12 13:44:24 +02:00
rdb
c1e5a71904
tests: ensure FrameBufferProperties has working copy constructor
2018-06-09 10:38:03 +02:00
rdb
d8bf9d4b55
tests: skip display tests if pipe cannot create offscreen buffers
2018-06-03 22:33:12 +02:00
rdb
4f55e26e61
tests: add tests for BitMask*.is_all_on()
2018-05-30 23:06:47 +02:00
rdb
8d84c58d73
express: explicitly declare defaulted Datagram copy/move ctor/assign
...
Fixes #329
2018-05-27 15:38:19 +02:00
Sam Edwards
339e1ce4d8
tests: Update the datagram tests
2018-05-26 18:36:46 -06:00
rdb
5c9705c21c
pgraph: fix crash accessing python_tags via dict property
...
Fixes #326
2018-05-24 22:44:08 +02:00
rdb
ddc45e3529
tests: fix broken test case, add more WeakNodePath comparisons
2018-05-24 22:25:20 +02:00
rdb
ae8e9d159d
tests: add some unit tests for UpdateSeq
2018-05-24 21:39:05 +02:00
rdb
941fda6ec3
pgraph: fix comparisons between WeakNodePath and NodePath
...
Previously it would only work correctly if the WeakNodePath appeared on the left side of the comparison operator.
2018-05-20 15:57:23 +02:00
Mitchell Stokes
ebe2588a50
Merge branch 'master' into deploy-ng
2018-05-06 11:21:13 -07:00
Mitchell Stokes
7073609480
deploy-ng: Use sys.executable instead of 'python' in tests/build_samples.py
2018-05-06 10:25:32 -07:00
rdb
f986f8de1b
showbase: add back clampScalar and PriorityCallbacks to PythonUtil
...
These were removed by 88dbb31daa under the assumption that they were not used, but it has recently come to my attention that there is still code out there that uses these.
PriorityCallbacks has been updated to be compatible with Python 3 by only comparing the priority, rather than the (priority, callback) tuple. This also has the side-effect of ditching the bisect dependency.
Also moves testing code from the source to the unit tests.
2018-04-21 11:43:46 +02:00
rdb
fc172f8918
tests: fix unit test on 32-bit Ubuntu due to float imprecision
2018-04-20 12:48:26 +02:00
rdb
4877e8350d
tests: fix unit test on 64-bit Ubuntu due to float imprecision
...
[skip ci]
2018-04-18 18:25:29 +02:00
rdb
b0cece7faf
Merge branch 'master' into deploy-ng
2018-04-08 15:44:32 +02:00
rdb
22f933a419
tests: disable datagram bytes() test on Python 2
...
See #297
2018-04-06 20:34:48 +02:00
rdb
b4d29e6096
express: allow using bytes() on Datagram
...
Closes : #297
2018-04-06 17:42:59 +02:00
Mitchell Stokes
d613523f14
deploy-ng: Add tests/build_samples.py script
...
This script will run python setup.py bdist_apps on each sample in a list
(currently only contains asteroids). The script will fail if any of the
builds fail. We can use this for some automated sanitity checking of
deploy-ng builds.
2018-03-22 18:53:26 -07:00
rdb
aebdefcf60
Merge branch 'master' into deploy-ng
2018-03-11 23:01:10 +01:00
rdb
bfff7e1000
tests: don't assert if pipe cannot create physical windows
2018-03-08 11:41:00 +01:00
rdb
43914f4e75
Merge branch 'master' into deploy-ng
2018-03-02 09:27:38 +01:00
rdb
9638eb47eb
Add support for geometry with adjacency information
...
Example code: https://gist.github.com/rdb/7cebb8941b962c59d5a092048efb3855
2018-03-01 21:20:19 +01:00
rdb
f535a641e4
Merge branch 'master' into deploy-ng
2018-02-27 20:53:28 +01:00
Sam Edwards
89be2c19af
tests: Add tests for Datagram{,Iterator,InputFile,OutputFile}
...
This also includes a test for my previous commit which changes
DatagramInputFile::get_datagram().
2018-02-23 03:08:01 -07:00
rdb
e0569815b5
tests: add test for prc page and one for light color temperature
2018-02-21 15:56:45 +01:00
Sam Edwards
7aedc21510
tests: Update audio test to recognize missing sounds as NullAudioSound
2018-02-20 00:55:49 -07:00
Sam Edwards
bc88566906
tests: Add xfail test for loading a missing audio file
2018-02-19 19:15:08 -07:00
rdb
5c90f64182
text: fix is_whitespace() assertion when invalid chars are included
2018-02-17 20:50:18 +01:00
Mitchell Stokes
0c3c6c36bf
deploy-ng: Fix loading submodules for hidden imports
...
Fixes #242
2018-02-12 22:21:14 -08:00