mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 03:43:51 +00:00
tests/recompilation/test_functions:
tests/recompilation/two_module_test:
Update these shell scripts to our current coding style.
27 lines
519 B
Bash
Executable File
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
|