Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kristopher Ruzic
packer
Commits
0e1fd516
Commit
0e1fd516
authored
9 years ago
by
Mitchell Hashimoto
Browse files
Options
Download
Email Patches
Plain Diff
Add testacc to Makefile
parent
485825fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
Makefile
Makefile
+14
-1
No files found.
Makefile
View file @
0e1fd516
...
...
@@ -10,10 +10,23 @@ bin:
dev
:
@
TF_DEV
=
1 sh
-c
"
$(CURDIR)
/scripts/build.sh"
# generate runs `go generate` to build the dynamically generated
# source files.
generate
:
go generate ./...
test
:
go
test
$(TEST)
$(TESTARGS)
-timeout
=
10s
@
$(MAKE)
vet
# testacc runs acceptance tests
testacc
:
generate
@
if
[
"
$(TEST)
"
=
"./..."
]
;
then
\
echo
"ERROR: Set TEST to a specific package"
;
\
exit
1
;
\
fi
PACKER_ACC
=
1 go
test
$(TEST)
-v
$(TESTARGS)
-timeout
45m
testrace
:
go
test
-race
$(TEST)
$(TESTARGS)
...
...
@@ -30,4 +43,4 @@ vet:
echo
"and fix them if necessary before submitting the code for reviewal."
;
\
fi
.PHONY
:
bin default
test
updatedeps vet
.PHONY
:
bin default
generate test testacc
updatedeps vet
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment