# HG changeset patch # User Kim Alvefur # Date 1689525233 -7200 # Node ID 1a59a40c64432675a6ad7504b400ec5fcb15927f # Parent b8398218dd231bb00ac3678fdcd8e8334132f438 tools: Add mod2spec.sh, turns util.example into spec/util_example_spec.lua Useful for opening a module and its tests at the same, can be awkward to auto-complete sometimes. sensible-editor util/example.lua $(./tools/mod2spec.sh util.example) diff -r b8398218dd23 -r 1a59a40c6443 tools/mod2spec.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/mod2spec.lua Sun Jul 16 18:33:53 2023 +0200 @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +echo "spec/${1//./_}_spec.lua"