Files
mesh-lab/asks/live_acceptance_test.go
T

18 lines
543 B
Go

package asks
import (
"os/exec"
"testing"
)
// live-acceptance.sh is run by a person at the terminal and by no test: its syntax is judged here, as the lab's script
// judged it with `sh -n` (novox/hq ADR 0529).
func TestTheLiveAcceptanceScriptIsValidShell(t *testing.T) {
if _, err := exec.LookPath("sh"); err != nil {
t.Skip("NOT TESTED HERE: no sh on the path")
}
if out, err := exec.Command("sh", "-n", "live-acceptance.sh").CombinedOutput(); err != nil {
t.Fatalf("live-acceptance.sh is not valid shell: %v\n%s", err, out)
}
}