Commit Graph
10 Commits
Author SHA1 Message Date
xiaozhou233 08fe3a8815 CI: bundle MinGW runtime DLLs and print test output on failure
- ci: copy libstdc++-6/libgcc_s_seh-1/libwinpthread-1 next to the built binaries so the tests can load libagent.dll; without them every test failed with a load error on the runner

- tests: run-tests.ps1 now prints a failing test's captured output, so a failure is diagnosable even though the test program exits 0
2026-10-16 12:38:05 +08:00
xiaozhou233 9aebf29bb5 CI: add Windows workflow and a reusable integration-test runner
- ci: build with MinGW-w64 (MSYS2) + Ninja on windows-latest and run the integration tests

- tests: add run-tests.ps1, which compiles the modules, refreshes tests/resources, then runs every test and asserts on its output (the tests exit 0 even on failure, so exit codes are not enough)
2026-10-16 12:29:31 +08:00
xiaozhou233 af22f80b23 BugFix: fix integration test setup and GetClassBytesByName test
- tests: rewrite copy-bin.bat with native COPY /Y, cwd-independent paths and error handling so it no longer fails silently when a test JVM is locking resources\libagent.dll

- tests: load Target before calling getClassBytesByName, which only resolves classes that are already loaded
2026-10-14 21:46:22 +08:00
xiaozhou233 4833b512f5 Test: add bytecode API integration tests
- add Java tests for getClassBytes(ByName), redefineClass(ByName),
  retransformClass(ByName) and defineClass
- ignore tests/tmp/ directory for captured bytecode output
2026-08-17 19:42:12 +08:00
xiaozhou233 6bf2d31798 Feat: add IntelliJ integration tests for native API
- Add test JVM sources (Loop, Target) and API tests
  (AddToBootstrap/SystemClassLoaderSearch, AddToClassLoader,
  GetClassByName, GetLoadedClasses)
- Add injection module (Injection jar) for classloader tests
- Add copy-bin.bat to refresh resources/ from build output
- Remove obsolete java-loop/java-system-load tests
- Ignore IDE dirs and resources/ build artifacts
2026-08-17 00:16:24 +08:00
xiaozhou233 f2ce4e6a5a Fix: simplify DllMain attach logic and add pause to java-system-load test 2026-08-16 16:13:26 +08:00
xiaozhou233 757c5f70f0 Fix: Delete unuse config 2026-08-16 16:03:28 +08:00
xiaozhou233 78160a33a9 Feat: add java-system-load test with copy-and-build and run scripts 2026-08-16 16:02:43 +08:00
xiaozhou233 5023ecf90c Feat: add reflective DLL injection library, JVM headers and libinject JNI module 2026-08-15 11:37:15 +08:00
xiaozhou233 6479966472 Test: add java-loop demo with build and run scripts, ignore class artifacts 2026-08-15 11:31:21 +08:00