summaryrefslogtreecommitdiff
path: root/scripts/submodule_set_dev.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/submodule_set_dev.sh')
-rwxr-xr-xscripts/submodule_set_dev.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/submodule_set_dev.sh b/scripts/submodule_set_dev.sh
new file mode 100755
index 00000000..22bb8948
--- /dev/null
+++ b/scripts/submodule_set_dev.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+# SPDX-License-Identifier: MIT
+# Copyright (c) 2026 Eclipse ThreadX Contributors
+# Some portions generated by Copilot (claude-sonnet-4.6).
+#
+# Update test submodules to the latest commit on their dev branch.
+# Run this script from the repository root.
+
+set -euo pipefail
+
+REPO_ROOT="$(dirname "$(realpath "$0")")/.."
+SUBMODULES=(
+ "test/cmake/filex"
+ "test/cmake/threadx"
+)
+
+cd "$REPO_ROOT"
+
+for sub in "${SUBMODULES[@]}"; do
+ echo "Updating $sub to origin/dev..."
+ git -C "$sub" fetch origin dev
+ git -C "$sub" checkout origin/dev
+done
+
+git add "${SUBMODULES[@]}"
+echo ""
+echo "Submodules updated. Review with 'git diff --cached', then commit:"
+echo " git commit -m \"chore: update submodules to latest dev commits\""