2 # Copyright 2018 by Denys Vlasenko
3 # Licensed under GPLv2 or later, see file LICENSE in this source tree.
7 # testing "test name" "command" "expected result" "file input" "stdin"
9 testing "bc comment 1" \
12 "" "1 /* comment */ + 2"
14 testing "bc comment 2: /*/ is not a closed comment" \
19 testing "bc backslash 1" \
24 testing "bc string 1" \
29 tar xJf bc_large.tar.xz
32 r="`basename "$f" .bc`_results.txt"
33 test -f "$r" || continue
34 # testing "test name" "command" "expected result" "file input" "stdin"
36 "{ { bc -lq $f 2>&1; echo E:\$? >&2; } | diff -u - $r; echo E:\$?; } 2>&1" \