Skip to content

Commit

Permalink
fix names for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniobianchi333 committed Apr 15, 2019
1 parent 11fc98b commit 795d81d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
8 changes: 6 additions & 2 deletions examples/ictf2017_javaisnotfun/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ def test_t2():
assert solve_given_numbers_angr([50, 87, 10, 7, 3]) == [52, 262, 51219]


def test():
test_t1()
test_t2()


if __name__ == "__main__":
import logging
logging.getLogger('cle.backends.soot').setLevel('DEBUG')
Expand All @@ -186,5 +191,4 @@ def test_t2():
logging.getLogger("angr.state_plugins").setLevel("INFO")
logging.getLogger('angr.state_plugins.jni_references').setLevel("DEBUG")
logging.getLogger('archinfo.arch_soot').setLevel("DEBUG")
test_t1()
test_t2()
test()
4 changes: 2 additions & 2 deletions examples/java_androidnative1/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def test_androidnative1():
assert int_result == 221


def main():
def test():
test_androidnative1()


if __name__ == "__main__":
import logging
logging.getLogger("angr.engines.soot.engine").setLevel("DEBUG")
main()
test()
6 changes: 4 additions & 2 deletions examples/java_simple3/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

self_dir = os.path.dirname(os.path.realpath(__file__))


def test_java_simple3():
binary_path = os.path.join(self_dir, "simple3.jar")
project = angr.Project(binary_path)
Expand All @@ -20,10 +21,11 @@ def test_java_simple3():
assert state.posix.stdin.concretize() == [b"b"]


def solve():
def test():
test_java_simple3()


if __name__ == "__main__":
logging.getLogger("angr.engines.soot.engine").setLevel("DEBUG")
logging.getLogger("angr.factory").setLevel("DEBUG")
solve()
test()
6 changes: 4 additions & 2 deletions examples/java_simple4/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

self_dir = os.path.dirname(os.path.realpath(__file__))


def test_java_simple4():
binary_path = os.path.join(self_dir, "simple4.jar")
project = angr.Project(binary_path)
Expand All @@ -24,10 +25,11 @@ def test_java_simple4():
assert flag == b"F"


def solve():
def test():
test_java_simple4()


if __name__ == "__main__":
logging.getLogger("angr.engines.soot.engine").setLevel("DEBUG")
logging.getLogger("angr.factory").setLevel("DEBUG")
solve()
test()

0 comments on commit 795d81d

Please sign in to comment.