20 Commits

Author SHA1 Message Date
Evan Downing b497098585 Re-enable tests (#877)
* Re-enable tests

* Fix tests
2025-06-21 16:07:26 +02:00
Riccardo Schirone 9853d133a2 common|program-model: always use the most accurate container view (#860) 2025-06-17 16:37:07 +02:00
Evan Downing 6d6bdba8cc program-model: fix tests (#799) 2025-06-05 16:26:00 +02:00
Riccardo Schirone 776732d017 program-model: use module scoped CodeQuery (#665)
* program-model: use module scoped CodeQuery

* fix also sqlite tests

* fix antlr4 test

* wip

* Fix macros test

* appease linting gods

* Fix cleanup routine

---------

Co-authored-by: Henrik Brodin <90325907+hbrodin@users.noreply.github.com>
Co-authored-by: Evan Downing <2077950+evandowning@users.noreply.github.com>
Co-authored-by: Michael D. Brown <michael.brown@trailofbits.com>
2025-05-21 16:40:55 -04:00
Evan Downing 36eee39bc6 Add commons-compress (#647)
Co-authored-by: Michael D Brown <michael.brown@trailofbits.com>
2025-05-20 14:28:49 -04:00
Boyan MILANOV bef12fa3f5 Program model: Java type resolution (#613)
* Add basic get_type case

* Add support for dotted expression

* Add tests for method return type resolution

* Add more callees tests

* Lint and format

* Remove residual debug prints

* Commit tree_sitter file too

* Fix test issues from merging main

---------

Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-05-19 16:07:34 -04:00
Evan Downing 7c71f0f11e Add additional tests for each existing challenge (#620) 2025-05-19 13:16:57 -04:00
Evan Downing 9c2efa307f Modify get_caller/get_callee arguments (#546)
* Modify get_caller/get_callee arguments

* Fix file_path filter

* Fix caller/callee checking

* Optimize get_caller/get_callee (#605)

* Uncomment log4j tests

* Move all logging to DEBUG

* Fix caller/callee logic
2025-05-14 13:01:20 -04:00
Evan Downing 5c1b2486fc Move challenge fixtures to conftest. (#569) 2025-05-09 16:14:06 -04:00
Evan Downing dd7c9c21e7 Locate functions in java stacktrace (#460)
* Uncomment skipped tests

* Codequery was already working for bouncycastle.

* Add support for copying src after build
2025-05-01 13:12:44 -04:00
Boyan MILANOV f55466101f Callee deduplication for C and Java (#495)
* Add basic imports resolver

* Fixes and more tests

* Doc

* Enable C callee dedup in codequery

* Add two libxml2 tests

* Add test to log4j

* Add java callee dedup

* Use container src dir, fix zookeeper tests

* Add test workaround for log4j2

* Lint

---------

Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-04-30 14:54:39 +03:00
Evan Downing 93f55a274b Add support for inner classes (#443)
* Change cscope call to compress database and improve lookup speed. Update tests.

* Fix log4j2 source paths

* Add private version of cscope
2025-04-25 07:37:39 -04:00
Evan Downing 73381dbe0e Add support for log4j2 (#406) 2025-04-17 16:28:10 -04:00
Evan Downing a038b48330 Add support for bouncy castle (#405) 2025-04-17 16:13:16 -04:00
Evan Downing bf45c6ac44 Adding regression tests for graphql (#403) 2025-04-17 16:08:42 -04:00
Evan Downing 184df8b506 Add regression tests for checkstyle (#404) 2025-04-17 15:46:45 -04:00
Evan Downing d975edf0a9 Add support for commons-codec (#390)
* Add support for commons-codec

* Uncomment passing test

* Move common file. Modify zookeeper and commons_codec tests.
2025-04-17 15:33:22 -04:00
Boyan MILANOV d2bf90e974 [Program-model] C tests for HDF5 (#407)
* Refactor get_functions test

* Add some tests

* Callees tests

* Add type defs test

* Remove residual debug code

* Fix tests

* Fix workflow file

* Fix workflow file again

* Add file_path tests for type defs, implement path rebasing for type defs in codequery

* Fix fixtures in pytest

* Fix module scoped fixtures in tests

---------

Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-04-17 19:37:43 +03:00
Riccardo Schirone 2475b8e507 Move to use in-container paths (e.g. /src/) (#395)
* disable kythe/graphdb in tests
* fix integration CI
2025-04-16 11:05:44 +02:00
Evan Downing a754c94c82 Add new regression tests for c/java (#378)
* Add zookeeper test file

* Update java function query.

* Add caller/callee queries

* Add example test for C with fixture

* Refactor challenge task creation in tests

---------

Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-04-10 10:09:35 +03:00