# FIXTURE_ONLY test table: want_rc|args|expected substring (shared by the bash and Pester tests)
0|--platform windows --version 7.4.8|PATCHED: input (windows, 7.4.8): at or above 7.4.8, Fortinet's fix for FortiClientWindows 7.4 (CVE-2026-121529).
0|--platform windows --version 7.2.15|PATCHED: input (windows, 7.2.15): at or above 7.2.15, Fortinet's fix for FortiClientWindows 7.2
0|--platform windows --version 7.2.15.1309|PATCHED: input (windows, 7.2.15.1309)
0|--platform windows-pam --version 7.4.8|PATCHED: input (windows-pam, 7.4.8)
0|--platform windows-pam --version 7.2.16|PATCHED: input (windows-pam, 7.2.16)
0|--platform mac --version 7.4.8|PATCHED: input (mac, 7.4.8): at or above 7.4.8, Fortinet's fix for FortiClientMac 7.4
0|--platform macos --version 7.4.10|PATCHED: input (mac, 7.4.10)
0|--platform Win64 --version 07.04.08|PATCHED: input (windows, 07.04.08)
0|--platform windows --version 8.0.1|NOT AFFECTED: input (windows, 8.0.1): Fortinet lists FortiClientWindows 8.0 as not affected by CVE-2026-121529.
0|--platform windows-pam --version 8.0.0|NOT AFFECTED: input (windows-pam, 8.0.0): Fortinet lists FortiClientWindowsPAM 8.0 as not affected
0|--platform mac --version 8.0.1|NOT AFFECTED: input (mac, 8.0.1): Fortinet lists FortiClientMac 8.0 as not affected
0|--platform mac --version 7.2.14|NOT AFFECTED: input (mac, 7.2.14): Fortinet lists FortiClientMac 7.2 as not affected by CVE-2026-121529.
0|--platform mac --version 7.2.0|RESULT: NOT AFFECTED (1 checked: 0 PATCHED, 1 NOT AFFECTED, 0 VULNERABLE, 0 OUT OF RANGE, 0 UNKNOWN)
0|--inventory tests/fixtures/inv_patched.csv|RESULT: PATCHED (6 checked: 4 PATCHED, 2 NOT AFFECTED, 0 VULNERABLE, 0 OUT OF RANGE, 0 UNKNOWN)
0|--inventory tests/fixtures/inv_notaffected.csv|RESULT: NOT AFFECTED (3 checked: 0 PATCHED, 3 NOT AFFECTED, 0 VULNERABLE, 0 OUT OF RANGE, 0 UNKNOWN)
1|--platform windows --version 7.4.7|VULNERABLE: input (windows, 7.4.7): in Fortinet's affected range FortiClientWindows 7.4.0 through 7.4.7 for CVE-2026-121529 (FG-IR-26-194). Upgrade to 7.4.8 or above.
1|--platform windows --version 7.4.0|VULNERABLE: input (windows, 7.4.0)
1|--platform windows --version 7.4.7.99999|VULNERABLE: input (windows, 7.4.7.99999)
1|--platform windows --version 7.2.14|VULNERABLE: input (windows, 7.2.14): in Fortinet's affected range FortiClientWindows 7.2.0 through 7.2.14 for CVE-2026-121529 (FG-IR-26-194). Upgrade to 7.2.15 or above.
1|--platform windows --version 7.2.0|VULNERABLE: input (windows, 7.2.0)
1|--platform windows-pam --version 7.4.3|The CVE record lists only FortiClientWindowsPAM 7.4.7 and 7.2.14; this pack follows the wider ranges in Fortinet's advisory.
1|--platform windows-pam --version 7.2.14|VULNERABLE: input (windows-pam, 7.2.14)
1|--platform mac --version 7.4.7|VULNERABLE: input (mac, 7.4.7): in Fortinet's affected range FortiClientMac 7.4.0 through 7.4.7
1|--platform darwin --version 7.4.0|VULNERABLE: input (mac, 7.4.0)
1|--platform windows --version 7.4.5 --name ws-fx-91|VULNERABLE: ws-fx-91 (windows, 7.4.5)
1|--inventory tests/fixtures/inv_mixed.csv|RESULT: VULNERABLE (8 checked: 1 PATCHED, 2 NOT AFFECTED, 3 VULNERABLE, 1 OUT OF RANGE, 1 UNKNOWN)
1|--inventory tests/fixtures/inv_mixed.csv|VULNERABLE: 198.51.100.21 (windows-pam, 7.2.14.1200)
1|--inventory tests/fixtures/inv_mixed.csv|NOT AFFECTED: ws-fx-07 (mac, 7.2.11)
1|--inventory tests/fixtures/inv_mixed.csv|UNKNOWN: ws-fx-08 (linux, 7.4.3)
1|--inventory tests/fixtures/inv_crlf.csv|RESULT: VULNERABLE (2 checked: 1 PATCHED, 0 NOT AFFECTED, 1 VULNERABLE, 0 OUT OF RANGE, 0 UNKNOWN)
1|--inventory tests/fixtures/inv_edges.csv|RESULT: VULNERABLE (10 checked: 2 PATCHED, 1 NOT AFFECTED, 5 VULNERABLE, 1 OUT OF RANGE, 1 UNKNOWN)
1|--inventory tests/fixtures/inv_edges.csv|VULNERABLE: name not given (windows-pam, 7.4.0)
1|--inventory tests/fixtures/inv_edges.csv|PATCHED: ws-fx-54 (windows, v7.2.15)
2|--platform windows --version 7.0.14|OUT OF RANGE: input (windows, 7.0.14): branch 7.0 is not listed in FG-IR-26-194, so Fortinet makes no statement about it for CVE-2026-121529.
2|--platform mac --version 6.4.10|Our advice, not Fortinet's: confirm with Fortinet that this branch is still supported and move to a listed fixed release (7.4.8 or above, or 8.0).
2|--platform windows --version 7.6.0|OUT OF RANGE: input (windows, 7.6.0): branch 7.6 is not listed
2|--inventory tests/fixtures/inv_outofrange.csv|RESULT: OUT OF RANGE (5 checked: 1 PATCHED, 0 NOT AFFECTED, 0 VULNERABLE, 3 OUT OF RANGE, 1 UNKNOWN)
3|--platform linux --version 7.4.3|UNKNOWN: input (linux, 7.4.3): FG-IR-26-194 lists only FortiClient Windows, Windows PAM and Mac.
3|--platform android --version 7.4.3|UNKNOWN: input (android, 7.4.3)
3|--platform ios --version 7.4.3|UNKNOWN: input (ios, 7.4.3)
3|--platform ems --version 7.4.5|UNKNOWN: input (ems, 7.4.5)
3|--platform windows --version 7.4|UNKNOWN: input (windows, 7.4): not a FortiClient version this pack can judge
3|--platform windows --version 7.4.x|UNKNOWN: input (windows, 7.4.x)
3|--inventory tests/fixtures/inv_unknown.csv|RESULT: UNKNOWN (8 checked: 1 PATCHED, 0 NOT AFFECTED, 0 VULNERABLE, 0 OUT OF RANGE, 7 UNKNOWN)
3|--inventory tests/fixtures/inv_unknown.csv|UNKNOWN: ws-fx-26 (no platform, 7.4.3): no platform given.
4||Usage: check-forticlient.sh
4|--version|Usage: check-forticlient.sh
4|--version 7.4.7|Usage: check-forticlient.sh
4|--platform windows|Usage: check-forticlient.sh
4|--inventory tests/fixtures/inv_mixed.csv --version 7.4.7|Usage: check-forticlient.sh
4|--inventory tests/fixtures/inv_mixed.csv --platform mac|Usage: check-forticlient.sh
4|--bogus 1|Usage: check-forticlient.sh
4|--inventory tests/fixtures/inv_bad_header.csv|ERROR: CSV header must be: name,platform,version
4|--inventory tests/fixtures/inv_header_only.csv|ERROR: inventory has no data rows
4|--inventory tests/fixtures/does_not_exist.csv|ERROR: cannot read inventory file
