script.sh (8c48f4c5377ddc3dc55388f181f23111145f7099) | script.sh (76238846ad3e9e271a3d1f792f72beab727fd153) |
---|---|
1#! /bin/sh 2# 3# SPDX-License-Identifier: BSD-2-Clause 4# 5# Copyright (c) 2018-2023 Gavin D. Howard and contributors. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions are met: --- 176 unchanged lines hidden (view full) --- 185 186 set -e 187 188 if [ "$err" -ne 0 ]; then 189 printf 'Could not find %s to generate results; skipping %s script %s\n' "$d" "$d" "$f" 190 exit 0 191 fi 192 | 1#! /bin/sh 2# 3# SPDX-License-Identifier: BSD-2-Clause 4# 5# Copyright (c) 2018-2023 Gavin D. Howard and contributors. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions are met: --- 176 unchanged lines hidden (view full) --- 185 186 set -e 187 188 if [ "$err" -ne 0 ]; then 189 printf 'Could not find %s to generate results; skipping %s script %s\n' "$d" "$d" "$f" 190 exit 0 191 fi 192 |
193 # This sed, and the script, are to remove an incompatibility with GNU bc, 194 # where GNU bc is wrong. See the development manual 195 # (manuals/development.md#script-tests) for more information. | |
196 printf 'Generating %s results...' "$f" | 193 printf 'Generating %s results...' "$f" |
197 printf '%s\n' "$halt" 2> /dev/null | "$d" "$s" | sed -n -f "$testdir/script.sed" > "$results" | 194 195 # This particular test needs to be generated straight. 196 if [ "$d" = "dc" ] && [ "$f" = "stream.dc" ]; then 197 printf '%s\n' "$halt" 2> /dev/null | "$d" "$s" > "$results" 198 else 199 # This sed, and the script, are to remove an incompatibility with GNU 200 # bc, where GNU bc is wrong. See the development manual 201 # (manuals/development.md#script-tests) for more information. 202 printf '%s\n' "$halt" 2> /dev/null | "$d" "$s" | sed -n -f "$testdir/script.sed" > "$results" 203 fi |
198 printf 'done\n' 199 res="$results" 200fi 201 202set +e 203 204printf 'Running %s script %s...' "$d" "$f" 205 --- 16 unchanged lines hidden --- | 204 printf 'done\n' 205 res="$results" 206fi 207 208set +e 209 210printf 'Running %s script %s...' "$d" "$f" 211 --- 16 unchanged lines hidden --- |