-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 349922 b: refs/heads/master c: 54359d3 h: refs/heads/master v: v3
- Loading branch information
Arnaldo Carvalho de Melo
committed
Jan 24, 2013
1 parent
902cf48
commit 51a1ed0
Showing
5 changed files
with
33 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 56e52e85366717481cde16b3480f015c7eb32ba3 | ||
refs/heads/master: 54359d3340241b4cf53e42ecd5c429d7ba6fbef3 |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Just test if we can load the python binding. | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include "tests.h" | ||
|
||
extern int verbose; | ||
|
||
int test__python_use(void) | ||
{ | ||
char *cmd; | ||
int ret; | ||
|
||
if (asprintf(&cmd, "echo \"import sys ; sys.path.append('%s'); import perf\" | python %s", | ||
PYTHONPATH, verbose ? "" : "2> /dev/null") < 0) | ||
return -1; | ||
|
||
ret = system(cmd) ? -1 : 0; | ||
free(cmd); | ||
return ret; | ||
} |
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