diff --git a/.gitignore b/.gitignore index 6175a4a..173d13f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.claude/ # Build build*/ out/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index da7a87a..51cdf0f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -31,10 +31,10 @@ Release builds use `-O2` by default and enable LTO. For size-optimized builds, a ## Running Tests ```bash -# Unit tests (149 GTest cases) +# Unit tests (331 GTest cases) ctest --test-dir build --output-on-failure -# Integration tests (17 shell scripts comparing against GNU coreutils) +# Integration tests (54 shell scripts comparing against GNU coreutils) bash tests/integration/run_all.sh ``` diff --git a/README.en.md b/README.en.md index 9f06942..c27fc9d 100644 --- a/README.en.md +++ b/README.en.md @@ -63,13 +63,13 @@ echo "Hello, World!" # now calls cfbox via symlink ## Supported Commands (109) -### Text Processing (28) +### Text Processing (31) -`echo`, `printf`, `cat`, `head`, `tail`, `wc`, `sort`, `uniq`, `grep`, `sed`, `fold`, `expand`, `cut`, `paste`, `nl`, `comm`, `tr`, `tac`, `rev`, `shuf`, `factor`, `od`, `split`, `seq`, `tsort`, `expr`, `awk`, `diff` + `patch` + `cmp` + `ed` +`echo`, `printf`, `cat`, `head`, `tail`, `wc`, `sort`, `uniq`, `grep`, `sed`, `fold`, `expand`, `cut`, `paste`, `nl`, `comm`, `tr`, `tac`, `rev`, `shuf`, `factor`, `od`, `split`, `seq`, `tsort`, `expr`, `awk`, `diff`, `patch`, `cmp`, `ed` -### File Operations (20) +### File Operations (19) -`mkdir`, `rm`, `cp`, `mv`, `ls`, `find`, `ln`, `touch`, `stat`, `install`, `mktemp`, `truncate`, `du`, `df`, `readlink`, `realpath`, `rmdir`, `link`, `unlink`, `chmod` +`mkdir`, `rm`, `cp`, `mv`, `ls`, `find`, `ln`, `touch`, `stat`, `install`, `mktemp`, `truncate`, `du`, `df`, `readlink`, `realpath`, `rmdir`, `link`, `unlink` ### Archive & Compression (6) @@ -87,9 +87,9 @@ echo "Hello, World!" # now calls cfbox via symlink `ps`, `top`, `kill`, `pgrep`/`pkill`, `pidof`, `pstree`, `pmap`, `fuser`, `pwdx`, `sysctl`, `iostat`, `watch`, `nice`, `renice`, `timeout` -### Other (18) +### Other (16) -`true`, `false`, `yes`, `sleep`, `usleep`, `sync`, `nohup`, `cksum`, `md5sum`, `sum`, `hexdump`, `more`, `tee`, `init` (PID 1 initramfs init system), `mkfifo`, `mknod`, `sleep`, `sh` +`true`, `false`, `yes`, `sleep`, `usleep`, `sync`, `nohup`, `cksum`, `md5sum`, `sum`, `hexdump`, `more`, `tee`, `init` (PID 1 initramfs init system), `mkfifo`, `mknod` > All applets support `--help` / `--version` diff --git a/README.md b/README.md index c50d7b3..320c54b 100644 --- a/README.md +++ b/README.md @@ -63,13 +63,13 @@ echo "Hello, World!" # 通过符号链接调用 cfbox ## 支持的命令(109 个) -### 文本处理(28 个) +### 文本处理(31 个) -`echo`, `printf`, `cat`, `head`, `tail`, `wc`, `sort`, `uniq`, `grep`, `sed`, `fold`, `expand`, `cut`, `paste`, `nl`, `comm`, `tr`, `tac`, `rev`, `shuf`, `factor`, `od`, `split`, `seq`, `tsort`, `expr`, `awk`, `diff` + `patch` + `cmp` + `ed` +`echo`, `printf`, `cat`, `head`, `tail`, `wc`, `sort`, `uniq`, `grep`, `sed`, `fold`, `expand`, `cut`, `paste`, `nl`, `comm`, `tr`, `tac`, `rev`, `shuf`, `factor`, `od`, `split`, `seq`, `tsort`, `expr`, `awk`, `diff`, `patch`, `cmp`, `ed` -### 文件操作(20 个) +### 文件操作(19 个) -`mkdir`, `rm`, `cp`, `mv`, `ls`, `find`, `ln`, `touch`, `stat`, `install`, `mktemp`, `truncate`, `du`, `df`, `readlink`, `realpath`, `rmdir`, `link`, `unlink`, `chmod` +`mkdir`, `rm`, `cp`, `mv`, `ls`, `find`, `ln`, `touch`, `stat`, `install`, `mktemp`, `truncate`, `du`, `df`, `readlink`, `realpath`, `rmdir`, `link`, `unlink` ### 归档与压缩(6 个) @@ -87,9 +87,9 @@ echo "Hello, World!" # 通过符号链接调用 cfbox `ps`, `top`, `kill`, `pgrep`/`pkill`, `pidof`, `pstree`, `pmap`, `fuser`, `pwdx`, `sysctl`, `iostat`, `watch`, `nice`, `renice`, `timeout` -### 其他(18 个) +### 其他(16 个) -`true`, `false`, `yes`, `sleep`, `usleep`, `sync`, `nohup`, `cksum`, `md5sum`, `sum`, `hexdump`, `more`, `tee`, `init`(PID 1 initramfs init 系统), `mkfifo`, `mknod`, `sleep`, `sh` +`true`, `false`, `yes`, `sleep`, `usleep`, `sync`, `nohup`, `cksum`, `md5sum`, `sum`, `hexdump`, `more`, `tee`, `init`(PID 1 initramfs init 系统), `mkfifo`, `mknod` > 所有 applet 均支持 `--help` / `--version` diff --git a/Roadmap.md b/Roadmap.md index ebdebea..1e6675d 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -47,7 +47,7 @@ CFBox 是一个 C++23 BusyBox 替代品,当前版本有 109 个 applet。项 - `cmake -DCFBOX_ENABLE_GREP=OFF` 编译成功且不包含 grep ✅ - `./cfbox echo --help` 输出格式化帮助 ✅ - 现有 17 个 applet 全部测试通过 ✅ -- 149 个单元测试 + 17 个集成测试脚本全部通过 ✅ +- 149 个单元测试 + 17 个集成测试脚本全部通过 ✅(当前:331 + 54) ---