Commit f8ac6209 authored by Lukáš Marek's avatar Lukáš Marek

getTarget test renamed to gettarget

added script for running all tests
parent b77a8b93
#!/bin/sh
TESTS=`ls src-test/ch/usi/dag/disl/test/`
for TEST in ${TESTS}
do
echo "*** Starting test ${TEST} ***" | tee -a run-all.log
./runTest.sh ${TEST} pkg 2>&1 | tee -a run-all.log
done
Manifest-Version: 1.0
DiSL-Classes: ch.usi.dag.disl.test.getTarget.DiSLClass
\ No newline at end of file
package ch.usi.dag.disl.test.getTarget;
package ch.usi.dag.disl.test.gettarget;
import ch.usi.dag.disl.annotation.Before;
import ch.usi.dag.disl.marker.BytecodeMarker;
import ch.usi.dag.disl.processorcontext.ArgumentProcessorContext;
import ch.usi.dag.disl.processorcontext.ArgumentProcessorMode;
import ch.usi.dag.disl.dynamiccontext.DynamicContext;
public class DiSLClass {
@Before(marker = BytecodeMarker.class, args = "invokestatic", scope = "*.foo")
public static void getTarget() {
Object target = null;
public static void getTarget(ArgumentProcessorContext apc) {
Object target = apc.getReceiver(ArgumentProcessorMode.CALLSITE_ARGS);
System.out.println(target);
}
......
package ch.usi.dag.disl.test.getTarget;
package ch.usi.dag.disl.test.gettarget;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
......
Manifest-Version: 1.0
DiSL-Classes: ch.usi.dag.disl.test.gettarget.DiSLClass
\ No newline at end of file
package ch.usi.dag.disl.test.getTarget;
package ch.usi.dag.disl.test.gettarget;
class A {
public void foo() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment