forked from gavin/bc
1
0
Fork 0
Browse Source

Start removing history tests

master
Gavin Howard 2 years ago
parent
commit
274f9f264d
Signed by untrusted user who does not match committer: gavin
GPG Key ID: C08038BDF280D33E
  1. 13
      Makefile.in
  2. 1
      codecov.yml
  3. 16
      configure.sh

13
Makefile.in

@ -208,10 +208,7 @@ help:
@printf ' and (if enabled) manpages from "%s%s"\n' "$(DESTDIR)" "$(MAN1DIR)"
@printf ' test runs the test suite\n'
@printf ' test_bc runs the bc test suite, if bc has been built\n'
@printf ' test_bc_history runs the bc history tests\n'
@printf ' test_dc runs the dc test suite, if dc has been built\n'
@printf ' test_dc_history runs the dc history tests\n'
@printf ' test_history runs the history tests for both executables\n'
@printf ' time_test runs the test suite, displaying times for some things\n'
@printf ' time_test_bc runs the bc test suite, displaying times for some things\n'
@printf ' time_test_dc runs the dc test suite, displaying times for some things\n'
@ -225,7 +222,7 @@ help:
check: test
test: test_bc timeconst test_dc test_history
test: test_bc timeconst test_dc
test_bc:
%%BC_TEST%%
@ -244,14 +241,6 @@ time_test_dc:
timeconst:
%%TIMECONST%%
test_history: test_bc_history test_dc_history
test_bc_history:
%%BC_HISTORY_TEST%%
test_dc_history:
%%DC_HISTORY_TEST%%
valgrind: valgrind_bc valgrind_dc
valgrind_bc:

1
codecov.yml

@ -1,2 +1,3 @@
ignore:
- "src/history/history.c"
- "gen/strgen.c"

16
configure.sh

@ -522,11 +522,9 @@ executable="BC_EXEC"
bc_test="@tests/all.sh bc $extra_math 1 $generate_tests 0 \$(BC_EXEC)"
bc_time_test="@tests/all.sh bc $extra_math 1 $generate_tests 1 \$(BC_EXEC)"
bc_history_test="@tests/history.sh bc \$(BC_EXEC)"
dc_test="@tests/all.sh dc $extra_math 1 $generate_tests 0 \$(DC_EXEC)"
dc_time_test="@tests/all.sh dc $extra_math 1 $generate_tests 1 \$(DC_EXEC)"
dc_history_test="@tests/history.sh dc \$(DC_EXEC)"
timeconst="@tests/bc/timeconst.sh tests/bc/scripts/timeconst.bc \$(BC_EXEC)"
@ -558,7 +556,6 @@ if [ "$bc_only" -eq 1 ]; then
dc_test="@printf 'No dc tests to run\\\\n'"
dc_time_test="@printf 'No dc tests to run\\\\n'"
dc_history_test="@printf 'No dc history tests to run\\\\n'"
vg_dc_test="@printf 'No dc tests to run\\\\n'"
install_prereqs=" install_bc_manpage"
@ -580,7 +577,6 @@ elif [ "$dc_only" -eq 1 ]; then
bc_test="@printf 'No bc tests to run\\\\n'"
bc_time_test="@printf 'No bc tests to run\\\\n'"
bc_history_test="@printf 'No bc history tests to run\\\\n'"
vg_bc_test="@printf 'No bc tests to run\\\\n'"
timeconst="@printf 'timeconst cannot be run because bc is not built\\\\n'"
@ -792,22 +788,12 @@ if [ "$hist" -eq 1 ]; then
fi
if [ "$hist" -eq 0 ]; then
bc_history_test="@printf 'No history tests to run\\\\n'"
dc_history_test="@printf 'No history tests to run\\\\n'"
fi
if [ "$extra_math" -eq 1 ] && [ "$bc" -ne 0 ]; then
BC_LIB2_O="\$(GEN_DIR)/lib2.o"
else
BC_LIB2_O=""
fi
if [ "$prompt" -eq 0 ]; then
bc_history_test="@printf 'Cannot run history tests without a prompt\\\\n'"
dc_history_test="@printf 'Cannot run history tests without a prompt\\\\n'"
fi
GEN="strgen"
GEN_EXEC_TARGET="\$(HOSTCC) \$(HOSTCFLAGS) -o \$(GEN_EXEC) \$(GEN_C)"
CLEAN_PREREQS=" clean_gen"
@ -914,11 +900,9 @@ contents=$(replace "$contents" "EXEC" "$executable")
contents=$(replace "$contents" "BC_TEST" "$bc_test")
contents=$(replace "$contents" "BC_TIME_TEST" "$bc_time_test")
contents=$(replace "$contents" "BC_HISTORY_TEST" "$bc_history_test")
contents=$(replace "$contents" "DC_TEST" "$dc_test")
contents=$(replace "$contents" "DC_TIME_TEST" "$dc_time_test")
contents=$(replace "$contents" "DC_HISTORY_TEST" "$dc_history_test")
contents=$(replace "$contents" "VG_BC_TEST" "$vg_bc_test")
contents=$(replace "$contents" "VG_DC_TEST" "$vg_dc_test")

Loading…
Cancel
Save