Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunAllGenPkgDemos ¶
func RunGenPkgDemo ¶
runSingleDemo tests a single LLCPPG conversion case in the given demo directory. The testing process includes: 1. Reading and validating the llcppg.cfg configuration file 2. Running LLCPPG to generate the converted package 3. Verifying the generated package can be built using llgo 4. Running example programs in the demo subdirectory that use the generated package
Directory structure (take _llcppgtest/lua as an example): _llcppgtest/lua/ - Demo root directory
├── llcppg.cfg - LLCPPG configuration file
├── out/ - Generated package output directory
└── demo/ - Example programs directory
├── example1/ - First example program
└── example2/ - Second example program
The function will panic if any step in the testing process fails.
Parameters:
- demoRoot: Path to the root directory of a single demo case
- confDir: Path to the configuration directory relative to demoRoot, defaults to "." if empty
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.