-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from ruflin/tests-renaming
Rename integration to system tests
- Loading branch information
Showing
6 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
package main | ||
|
||
// This file is mandatory as otherwise the packetbeat.test binary is not generated correctly. Reason??? | ||
// This file is mandatory as otherwise the packetbeat.test binary is not generated correctly. | ||
|
||
import ( | ||
"testing" | ||
"flag" | ||
) | ||
|
||
var integration *bool | ||
var systemTest *bool | ||
|
||
func init() { | ||
integration = flag.Bool("integration", false, "Set to true when running integration tests") | ||
systemTest = flag.Bool("systemTest", false, "Set to true when running system tests") | ||
} | ||
|
||
// Test started when the test binary is started. Only calls main. | ||
func TestIntegration(t *testing.T) { | ||
func TestSystem(t *testing.T) { | ||
|
||
if *integration { | ||
if *systemTest { | ||
main() | ||
} | ||
} |
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
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
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