Created
November 8, 2018 22:34
-
-
Save YakDriver/143fd63908a1843bd3ef9dfaf378f678 to your computer and use it in GitHub Desktop.
Get names of Terraform tests from a test file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
awk '/^func Test/' aws/structure_test.go | sed "s/func \(Test[a-zA-Z0-9_]*\)(.*$/make testacc TESTARGS='-run=\1'/" > tests.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment