libs/lua53/luaerror.test
raw| 1 | #! /bin/sh |
| 2 | # Copyright 2018 Karl Berry <[email protected]> |
| 3 | # Copyright 2014 Peter Breitenlohner <[email protected]> |
| 4 | # You may freely use, modify and/or distribute this file. |
| 5 | |
| 6 | LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 7 | |
| 8 | ./luatry -e "error('test')" 2>error.tmp && exit 1 |
| 9 | |
| 10 | sed -e 's/lt-luatry/luatry/;s,^.*/luatry\(\.exe\)*,./luatry,' error.tmp >error.out |
| 11 | |
| 12 | diff $srcdir/error.exp error.out || exit 2 |
| 13 |