diff --git a/test/Basic/Testing.java b/test/Basic/Testing.java index 17c8634..317eabf 100644 --- a/test/Basic/Testing.java +++ b/test/Basic/Testing.java @@ -128,6 +128,7 @@ class Testing { System.out.println("cannot reset all own keys"); ex.printStackTrace(); } + System.out.println("Testing.java: e.StartSync()"); e.startSync(); @@ -138,17 +139,18 @@ class Testing { user2.me = true; user2.username = "Test User 2"; user2.address = "jniTestUser2@peptest.ch"; - user2 = e.myself(user2); +// user2 = e.myself(user2); System.out.print("Keys generated: "); System.out.println(user2.fpr); // it's not necessary - you can just shutdown Sync and that's it // but for this test give sync a chance to process all messages - try { - Thread.sleep(200); - } - catch (InterruptedException ex) { } + // try { + // Thread.sleep(200); + // } + // catch (InterruptedException ex) { } + System.out.println("STOP SYNC"); e.stopSync(); System.exit(0); diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..71b5ff8 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,15 @@ +.PHONY: all compile run clean + +all: compile + +run: compile + $(MAKE) -C Basic run + $(MAKE) -C JNI_85 run + +compile: + $(MAKE) -C Basic compile + $(MAKE) -C JNI_85 compile + +clean: + $(MAKE) -C Basic clean + $(MAKE) -C JNI_85 clean