Skip to content

Commit d797159

Browse files
committed
fix: correct verification grep patterns in C++ CI
The lmp -h output lists style names without their category prefix, so grep for "fix.*backmap" fails. Check for the BACKMAP package name and specific style names instead.
1 parent 3f1b6f8 commit d797159

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/cpp-ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,14 @@ jobs:
7878
7979
- name: Verify backmap package is available
8080
run: |
81-
lammps/build/lmp -h | grep -i backmap
82-
echo "--- Checking fix backmap ---"
83-
lammps/build/lmp -h | grep -i "fix.*backmap"
84-
echo "--- Checking pair_style backmap ---"
85-
lammps/build/lmp -h | grep -i "pair.*backmap"
81+
lammps/build/lmp -h > lmp_help.txt
82+
echo "--- Full help output (backmap lines) ---"
83+
grep -i backmap lmp_help.txt
84+
echo "--- Checking BACKMAP package is listed ---"
85+
grep -q "^BACKMAP" lmp_help.txt
86+
echo "--- Checking backmap styles are registered ---"
87+
grep -q "backmap/harmonic" lmp_help.txt
88+
grep -q "backmap/table" lmp_help.txt
8689
8790
clang-format:
8891
name: C++ Format Check

0 commit comments

Comments
 (0)