Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
llama90 committed Jan 2, 2024
1 parent 878206b commit ba883e5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions c_glib/test/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ for module in "${modules[@]}"; do
module_build_dir="${build_dir}/${module}"
if [ -d "${module_build_dir}" ]; then
LD_LIBRARY_PATH="${module_build_dir}:${LD_LIBRARY_PATH}"
DYLD_LIBRARY_PATH="${module_build_dir}:${DYLD_LIBRARY_PATH}"
fi
done
export LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH

if [ "${BUILD}" != "no" ]; then
if [ -f "Makefile" ]; then
make -j8 > /dev/null || exit $?
elif [ -f "build.ninja" ]; then
if [ -f "build.ninja" ]; then
ninja || exit $?
fi
fi
Expand All @@ -59,4 +59,9 @@ for module in "${modules[@]}"; do
done
export GI_TYPELIB_PATH

${GDB} ruby ${test_dir}/run-test.rb "$@"
if type rbenv > /dev/null 2>&1; then
RUBY="$(rbenv which ruby)"
else
RUBY=ruby
fi
${GDB} "${RUBY}" ${test_dir}/run-test.rb "$@"

0 comments on commit ba883e5

Please sign in to comment.