File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import mcpp.toolchain.detect;
1818
1919export namespace mcpp ::toolchain {
2020
21- inline constexpr std::string_view MCPP_VERSION = " 0.0.35 " ;
21+ inline constexpr std::string_view MCPP_VERSION = " 0.0.36 " ;
2222
2323struct FingerprintInputs {
2424 Toolchain toolchain;
Original file line number Diff line number Diff line change 33# Verify --help and --version
44set -e
55
6+ ROOT=" $( cd " $( dirname " $0 " ) /../.." && pwd) "
7+
68out=$( " $MCPP " --version)
79# Version must match `mcpp <SemVer>` — don't pin a specific version here
810# so this test doesn't break on every release bump.
911[[ " $out " =~ ^mcpp\ [0-9]+\. [0-9]+\. [0-9]+ ]] \
1012 || { echo " Bad version output: $out " ; exit 1; }
13+ expected=" $( awk -F ' "' ' /^version[[:space:]]*=/{print $2; exit}' " $ROOT /mcpp.toml" ) "
14+ [[ -n " $expected " ]] || { echo " Failed to read mcpp.toml package version" ; exit 1; }
15+ [[ " $out " == " mcpp $expected " * ]] \
16+ || { echo " Version mismatch: mcpp.toml=$expected , --version='$out '" ; exit 1; }
1117
1218out=$( " $MCPP " --help)
1319[[ " $out " == * " Usage:" * ]] || { echo " --help missing 'Usage:' section" ; exit 1; }
You can’t perform that action at this time.
0 commit comments