#!/usr/bin/env bash
# This script is intended as a FileCheck replacement to update the test
# expectations in a -ast-dump test.
#
# Usage (to generate normal AST dump tests):
#
# $ lit -DFileCheck=$PWD/utils/make-ast-dump-check.sh test/AST/ast-dump-openmp-*
#
# Usage (to generate serialization AST dump tests):
#
# $ lit -DFileCheck="generate_serialization_test=1 $PWD/utils/make-ast-dump-check.sh"
# test/AST/ast-dump-openmp-*
prefix=CHECK
if [;
then generate_serialization_test=0;
fi
while ; do
case "" in
--check-prefix)
prefix=""
;;
--implicit-check-not)
;;
-*)
;;
*)
file=""
;;
esac
done
testdir=""
{
|
}