radare2/libr/egg/t/t-fun.sh
pancake 1f7f9dc036 * Enhacements for rarun2
- add 'timeout' directive
  - directives can now be passed in arguments
  - support more than 3 args for launching
  - show default config file in help
* Added test suite for r_egg
  - Fix nested conditional and loops
  - Some situations can result in broken code
  - Code needs a huge cleanup
* Varioues fixes for x86.nz plugin to make r_egg happy
* Install python plugins into dist-packages only
  - site-packages is not the right place
* Add R2_LIBDIR and R2_PREFIX constants
* Honor LIBDIR in sdbpath for r_syscall
* Fix rabin2 -h for -C
2011-10-24 04:35:42 +02:00

23 lines
267 B
Bash
Executable File

#!/bin/sh
EXIT=0
OUTPUT="loop
loop
loop"
cat > t.r <<EOF
exit@syscall(1);
write@syscall(4);
main();
fun@global(128,128) {
write (1, "loop\n", 5);
}
main@global(128,128) {
.var0 = 0;
while (.var0<2) {
fun ("loop\n", 5);
.var0 += 1;
}
exit (0);
}
EOF
. ./t.sh