Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/test_openhrp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ def test_compile_pkg_config(self):
global PID
cmd = "%s pkg-config openhrp3.1 --cflags --libs"%(self.PKG_CONFIG_PATH)
print "`"+cmd+"` =",check_output(cmd, shell=True, stderr=STDOUT)
ret = call("gcc -o openhrp3-sample-pkg-config /tmp/%d-openhrp3-sample.cpp `%s`"%(PID,cmd), shell=True)
ret = call("g++ -o openhrp3-sample-pkg-config /tmp/%d-openhrp3-sample.cpp `%s`"%(PID,cmd), shell=True)
self.assertTrue(ret==0)

def _test_compile_move_ankle(self):
cmd1 = "pkg-config openhrp3.1 --cflags --libs"
cmd2 = "pkg-config openhrp3.1 --variable=idl_dir"
print "`"+cmd1+"` =",check_output(cmd1, shell=True, stderr=STDOUT)
print "`"+cmd2+"` =",check_output(cmd2, shell=True, stderr=STDOUT)
ret = call("gcc -o move_ankle `%s`/../sample/example/move_ankle/move_ankle.cpp `%s`"%(cmd2,cmd1), shell=True)
ret = call("g++ -o move_ankle `%s`/../sample/example/move_ankle/move_ankle.cpp `%s`"%(cmd2,cmd1), shell=True)
self.assertTrue(ret==0)

def test_idl_dir(self):
Expand Down