Browse Source

test script

Boyoung- 8 years ago
parent
commit
6b705bf485
4 changed files with 6 additions and 2 deletions
  1. 1 0
      .classpath
  2. 1 1
      build.xml
  3. 3 0
      scripts/run.sh
  4. 1 1
      test/ui/HelloWorld.java

+ 1 - 0
.classpath

@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="test"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry excluding="LookupTable/|Program/|YaoGC/AESComponents/|Test/|OT/|Utils/" kind="src" path="fastergc"/>
 	<classpathentry kind="lib" path="lib/bcprov-jdk15on-151.jar"/>

+ 1 - 1
build.xml

@@ -5,7 +5,7 @@
   </target>
 
   <target name="compile" depends="init" >
-    <javac srcdir="src" destdir="bin" debug="on" debuglevel="lines,vars,source" source="1.8" includeantruntime="false">
+    <javac srcdir="src:test" destdir="bin" debug="on" debuglevel="lines,vars,source" source="1.8" includeantruntime="false">
       <classpath>
         <pathelement location="lib/bcprov-jdk15on-151.jar"/>
         <pathelement location="lib/commons-cli-1.2.jar"/>

+ 3 - 0
scripts/run.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+java -cp "${DIR}/../bin" ui."$@"

+ 1 - 1
src/oram/HelloWorld.java → test/ui/HelloWorld.java

@@ -1,4 +1,4 @@
-package oram;
+package ui;
 
 public class HelloWorld {