<commit_before>
x3d_test ()
{
 name=$(basename $1)
 name=${name%.*}

 test_begin "$name"
 if [ $test_skip  = 1 ] ; then
  return
 fi

do_test "$GPAC -i $1 compositor:osize=192x192:vfr:ogl=on @ -o $TEMP_DIR/dump.rgb" "play"

myinspect=$TEMP_DIR/inspect.txt
do_test "$GPAC -i $TEMP_DIR/dump.rgb:size=192x192 inspect:all:deep:interleave=false:log=$myinspect -graph -stats"
do_hash_test $myinspect "inspect"

#commented for now, gpu dump differs among platforms
#do_hash_test "$TEMP_DIR/dump.rgb" "play"
do_play_test "play" "$TEMP_DIR/dump.rgb:size=192x192" ""<commit_msg>fixed bug in x3d tests<commit_after>
x3d_test ()
{
 name=$(basename $1)
 name=${name%.*}

 test_begin "$name"
 if [ $test_skip  = 1 ] ; then
  return
 fi

do_test "$GPAC -i $1 compositor:osize=192x192:vfr:ogl=on @ -o $TEMP_DIR/dump.rgb" "play"

myinspect=$TEMP_DIR/inspect.txt
do_test "$GPAC -i $TEMP_DIR/dump.rgb:size=192x192 inspect:all:interleave=false:fmt=%cts%-%size%%lf%:log=$myinspect -graph -stats"
do_hash_test $myinspect "inspect"

#commented for now, gpu dump differs among platforms
#do_hash_test "$TEMP_DIR/dump.rgb" "play"
do_play_test "play" "$TEMP_DIR/dump.rgb:size=192x192" ""
{'fraction_non_alphanumeric': 0.16020671834625322, 'fraction_numerical': 0.03875968992248062, 'mean_word_length': 5.916666666666667, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6160708', 'n_tokens_mistral': 509, 'n_tokens_neox': 485, 'n_words': 96}