| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
tests/lua: skip popen-dependent check when io.popen not available Fixes: tests/lua/test_compare.sh test_times.lua:42: 'popen' not supported Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 5 个月前 | |
tests/applets: add RPM query compatibility testing Create new RPM conformance test suite (tests/applets/rpm/test_rpm_conformance.sh) - Compares epkg's busybox RPM implementation against system RPM - Tests query options: -i, --scripts, --triggers, --provides, --requires, etc. - Tests error conditions and abnormal cases - Downloads test RPM if not present locally Refactor test infrastructure: - Extract shared functions to tests/common.sh (set_epkg_bin, set_color_names) - Simplify tests/lua/common.sh to use the extracted common module - Centralize epkg binary location logic Test approach: - Compares outputs between epkg's busybox rpm and system rpm - Normalizes outputs for fair comparison - Provides detailed diffs on failures for debugging Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 5 个月前 | |
tests/lua: RPM Lua test suite This commit adds a complete test suite for epkg's Lua POSIX implementation, ensuring compatibility with RPM's rpmlua and real-world usage patterns: Key components: 1. 48 test files in tests/lua/lua/ covering all posix.* functions 2. test_all.lua - Auto-discovers and runs tests, supports individual test execution 3. test_lua.sh - Shell wrapper with epkg/system rpmlua selection 4. test_compare.sh - Direct comparison between epkg and system rpmlua outputs 5. common.sh - Shared setup and epkg binary detection Test coverage includes: - Basic POSIX functions (access, stat, chmod, symlink, unlink, etc.) - Real-world RPM script patterns (.rpmmoved, .rpmnew handling) - Directory replacement and hard link verification - File I/O operations and error handling patterns - Environment variable manipulation - Process and user/group ID operations - String manipulation patterns used in RPM scripts The tests verify both API correctness and behavioral compatibility with system rpmlua, using the same patterns found in production RPM spec files. Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 6 个月前 | |
tests: add open_max to known musl/glibc differences musl returns a static large value (524288) for sysconf(_SC_OPEN_MAX) while glibc queries the actual runtime limit via getrlimit(). Both are POSIX compliant behaviors - this is a design difference. Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 2 个月前 | |
tests: remove set -e from test scripts per tests/README.md principles Remove 'set -e' from the following test scripts: - busybox/busybox-runtest.sh - busybox/mk-epkg-bindir.sh - busybox/run-one.sh - in-windows/run-tests.sh - lua/test_compare.sh - lua/test_lua.sh Per tests/README.md principles: - Test scripts should not use 'set -e' to preserve context and error info - Debugging failed tests requires seeing the full context, not immediate exit Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 个月前 | ||
| 5 个月前 | ||
| 6 个月前 | ||
| 2 个月前 | ||
| 3 个月前 |