scripts: sync run_examples_dev with run_examples
The renaming of modules in also broke run_examples_dev as
well as run_examples (issue fix
@@ -12,8 +12,11 @@ source "$SCRIPTS_DIR/common"
SERVER_PID=$!
# TODO: Ensure that background processes are killed with something like `trap cleanup_fn EXIT`.
-# Run Rust-based Oak examples, each with their own Oak server instance.
-readonly RUST_EXAMPLES="$(find examples -mindepth 2 -maxdepth 4 -type d -regex '.*/module/rust$' | cut -d'/' -f2)"
+# Run Rust-based Oak examples against a common Oak server instance.
+# Note that the chat example cannot be run because the client is interactive.
+# TODO(#462): Re-enable chat example, even if it may be just loading the server-side code and not
+# interact with it.
+readonly RUST_EXAMPLES="$(find examples -mindepth 2 -maxdepth 4 -type d -regex '.*/module.*/rust$' | cut -d'/' -f2 | uniq | grep -v chat)"
for example in ${RUST_EXAMPLES}; do
"${SCRIPTS_DIR}/run_example" "${example}"
done
@@ -21,7 +24,7 @@ done
# Run C++-based Oak examples.
# TODO: Run TensorFlow example when Emscripten imports will be fixed.
# https://github.com/project-oak/oak/issues/439
-readonly CPP_EXAMPLES="$(find examples -mindepth 2 -maxdepth 4 -type d -regex '.*/module/cpp$' | cut -d'/' -f2 | grep -v tensorflow)"
+readonly CPP_EXAMPLES="$(find examples -mindepth 2 -maxdepth 4 -type d -regex '.*/module.*/cpp$' | cut -d'/' -f2 | grep -v tensorflow)"
for example in ${CPP_EXAMPLES}; do
"${SCRIPTS_DIR}/run_example" -c "${example}"
done
