Browse Source

Attempt to make the release script work for RNG

rand
Gavin Howard 2 years ago
parent
commit
deccfd00bc
Signed by: gavin GPG Key ID: C08038BDF280D33E
  1. 5
      release.sh
  2. 4
      tests/all.sh
  3. 18
      tests/script.sh

5
release.sh

@ -58,7 +58,7 @@ configure() {
_configure_CC="$1"
shift
_configure_configure_flags="-f $1"
_configure_configure_flags="$1"
shift
_configure_GEN_HOST="$1"
@ -225,6 +225,9 @@ runconfigseries() {
"$_runconfigseries_configure_flags" 0 64 "$_runconfigseries_run_tests"
fi
runconfigtests "$_runconfigseries_CFLAGS -DBC_RAND_BUILTIN=0" "$_runconfigseries_CC" \
"$_runconfigseries_configure_flags" 1 64 "$_runconfigseries_run_tests"
fi
runconfigtests "$_runconfigseries_CFLAGS" "$_runconfigseries_CC" \

4
tests/all.sh

@ -91,7 +91,7 @@ while read t; do
if [ "$extra" -eq 0 ]; then
if [ "$t" = "trunc" -o "$t" = "places" -o "$t" = "shift" -o "$t" = "lib2" \
-o "$t" = "scientific" -o "$t" = "engineering" ]
-o "$t" = "scientific" -o "$t" = "engineering" -o "$t" = "rand" ]
then
printf 'Skipping %s %s\n' "$d" "$t"
continue
@ -104,7 +104,7 @@ done < "$testdir/$d/all.txt"
sh "$testdir/stdin.sh" "$d" "$exe" "$@"
sh "$testdir/scripts.sh" "$d" "$run_stack_tests" "$generate_tests" "$time_tests" "$exe" "$@"
sh "$testdir/scripts.sh" "$d" "$extra" "$run_stack_tests" "$generate_tests" "$time_tests" "$exe" "$@"
sh "$testdir/read.sh" "$d" "$exe" "$@"
sh "$testdir/errors.sh" "$d" "$exe" "$@"

18
tests/script.sh

@ -34,7 +34,7 @@ script="$0"
testdir=$(dirname "${script}")
if [ "$#" -lt 2 ]; then
printf 'usage: %s dir script [run_stack_tests] [generate_tests] [time_tests] [exec args...]\n' "$script"
printf 'usage: %s dir script [run_extra_tests] [run_stack_tests] [generate_tests] [time_tests] [exec args...]\n' "$script"
exit 1
fi
@ -44,6 +44,13 @@ shift
f="$1"
shift
if [ "$#" -gt 0 ]; then
run_extra_tests="$1"
shift
else
run_extra_tests=1
fi
if [ "$#" -gt 0 ]; then
run_stack_tests="$1"
shift
@ -97,9 +104,16 @@ if [ "$f" = "timeconst.bc" ]; then
exit 0
fi
if [ "$run_extra_tests" -eq 0 ]; then
if [ "$f" = "rand.bc" ]; then
printf 'Skipping %s script: %s\n' "$d" "$f"
exit 0
fi
fi
if [ "$run_stack_tests" -eq 0 ]; then
if [ "$f" = "globals.bc" -o "$f" = "references.bc" ]; then
if [ "$f" = "globals.bc" -o "$f" = "references.bc" -o "$f" = "rand.bc" ]; then
printf 'Skipping %s script: %s\n' "$d" "$f"
exit 0
fi

Loading…
Cancel
Save