<commit_before>                                                     -*- shell-script -*-
URBI_INIT

# The full path to the *.uob dir:
# ../../../../../sdk-remote/src/tests/uobjects/access-and-change/uaccess.uob
uob=$(absolute $1.uob)
require_dir "$uob"

# The ending part, for our builddir: access-and-change/uaccess.dir.
builddir=$(echo "$uob" |
           sed -e 's,.*/src/tests/uobjects/,uobjects/,;s/\.uob$//').dir

# For error messages.
me=$(basename "$uob" .uob)

# The directory we work in.
rm -rf $builddir
mkdir -p $builddir
cd $builddir

# The remote component: an executable.
umake_remote=$(xfind_prog "umake-remote")
xrun "umake-remote" $umake_remote --output=$me$EXEEXT $uob
test -x "$me$EXEEXT" ||
  fatal "$me is not executable"
xrun "$me --version" "./$me$EXEEXT" --version

# The shared component: a dlopen module.
umake_shared=$(xfind_prog "umake-shared")
xrun "umake-shared" $umake_shared --output=$me $uob
test -f "$me.la" ||
  fatal "$me.la does not exist"

# Find urbi-launch.
urbi_launch=$(xfind_prog urbi-launch$EXEEXT)

# If urbi-launch cannot work because there is no kernel libuobject,
# skip the test.  Do pass something that will fail to be loaded,
# otherwise if it works, a server is launched, and will run endlessly.
run "urbi-launch --start" $urbi_launch --start /dev/null ||
  case $? in
    (72) error 77 "urbi-launch cannot find libuobject";;
  esac
xrun "urbi-launch $me --version" "$urbi_launch" --start $me.la -- --version<commit_msg>Fix SKIP exit code.<commit_after>                                                     -*- shell-script -*-
URBI_INIT

# The full path to the *.uob dir:
# ../../../../../sdk-remote/src/tests/uobjects/access-and-change/uaccess.uob
uob=$(absolute $1.uob)
require_dir "$uob"

# The ending part, for our builddir: access-and-change/uaccess.dir.
builddir=$(echo "$uob" |
           sed -e 's,.*/src/tests/uobjects/,uobjects/,;s/\.uob$//').dir

# For error messages.
me=$(basename "$uob" .uob)

# The directory we work in.
rm -rf $builddir
mkdir -p $builddir
cd $builddir

# The remote component: an executable.
umake_remote=$(xfind_prog "umake-remote")
xrun "umake-remote" $umake_remote --output=$me$EXEEXT $uob
test -x "$me$EXEEXT" ||
  fatal "$me is not executable"
xrun "$me --version" "./$me$EXEEXT" --version

# The shared component: a dlopen module.
umake_shared=$(xfind_prog "umake-shared")
xrun "umake-shared" $umake_shared --output=$me $uob
test -f "$me.la" ||
  fatal "$me.la does not exist"

# Find urbi-launch.
urbi_launch=$(xfind_prog urbi-launch$EXEEXT)

# If urbi-launch cannot work because there is no kernel libuobject,
# skip the test.  Do pass something that will fail to be loaded,
# otherwise if it works, a server is launched, and will run endlessly.
run "urbi-launch --start" $urbi_launch --start /dev/null ||
  case $? in
    (72) error SKIP "urbi-launch cannot find libuobject";;
  esac
xrun "urbi-launch $me --version" "$urbi_launch" --start $me.la -- --version
{'fraction_non_alphanumeric': 0.15741367637102235, 'fraction_numerical': 0.002708192281651997, 'mean_word_length': 3.144460028050491, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7545962', 'n_tokens_mistral': 1060, 'n_tokens_neox': 1023, 'n_words': 314}