1#!/bin/bash 2 3# Extract a flat list of tests from a CTSv2 generated host log for use when generating the CTSv1 4# required list of tests. 5ZIP=$1 6 7TMP_DIR=/tmp/update-test-list-$$ 8mkdir -p $TMP_DIR 9 10unzip $ZIP host_log.txt -d $TMP_DIR 11 12HOST_LOG=$TMP_DIR/host_log.txt 13 14ICU_DIR=$(dirname $0)/../ 15 16grep "ModuleListener.testStarted" $HOST_LOG \ 17 | sed 's%.*(\([^#]\+\)#\([^)]\+\))%\1#\2%' | sort > $ICU_DIR/test-list.txt 18