From ffa71587c487de677dea2a618e9983da4907bed9 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Sun, 22 Aug 2004 03:08:23 +0000 Subject: better dependency tracking --- asn1c/tests/check-assembly.sh | 74 +++++++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 23 deletions(-) (limited to 'asn1c/tests/check-assembly.sh') diff --git a/asn1c/tests/check-assembly.sh b/asn1c/tests/check-assembly.sh index f3461d3b..11571fc5 100755 --- a/asn1c/tests/check-assembly.sh +++ b/asn1c/tests/check-assembly.sh @@ -5,6 +5,11 @@ # test-* directories, do lots of other magic stuff and exit cleanly. # +if [ "x$1" = "x" ]; then + echo "Usage: $0 " + exit +fi + # Compute the .asn1 spec name by the given file name. source=$(echo "$1" | sed -e 's/.*\///') testno=`echo "$source" | cut -f2 -d'-' | cut -f1 -d'.'` @@ -17,45 +22,68 @@ IFS="." set $args shift IFS=$OFS +AFLAGS="$@" + +touch ${testdir}-FAILED # Create this file to ease post mortem analysis if [ ! -d $testdir ]; then mkdir $testdir || exit $? fi cd $testdir || exit $? ln -fs ../$source || exit $? -# Compile the corresponding .asn1 spec. -set -x -../../asn1c \ - -S ../../../skeletons \ - -Wdebug-compiler "$@" \ - ../../../tests/${testno}-*.asn1 || exit $? -set +x + +asn_module=$(echo ../../../tests/${testno}-*.asn1) # Create a Makefile for the project. cat > Makefile <