Files
mercury/tests/recompilation/two_module_test
Zoltan Somogyi 693d1f5512 Update the style of recompilation test scripts.
tests/recompilation/test_functions:
tests/recompilation/two_module_test:
    Update these shell scripts to our current coding style.
2015-07-11 13:39:06 +02:00

27 lines
519 B
Bash
Executable File

#!/bin/sh
# vim: ts=4 sw=4 expandtab ft=sh
# Run a test which compiles a two module test case,
# changes one of the modules, then tries to recompile.
#
. ./test_functions
if test "$#" != 3
then
echo "** usage: two_module_test test_should_fail module1 module2"
exit 1
fi
test_should_fail=$1
module1=$2
module2=$3
test_module "$module1" "$module2"
mmake_depend
mmake_test 1 false
update_module "$module2" 2
mmake_test 2 "$test_should_fail"
check_err_file "$module1" 2
check_err_file "$module2" 2
cleanup_test