| 1 | GMC: Generic Model Checker
|
|---|
| 2 |
|
|---|
| 3 | Provides general utilities for building model checkers, such
|
|---|
| 4 | as a generic depth-first search algorithm.
|
|---|
| 5 |
|
|---|
| 6 | ======================= Installation from source =======================
|
|---|
| 7 |
|
|---|
| 8 | 1. Install a Java 8 SDK if you have not already. Go to
|
|---|
| 9 | http://www.oracle.com/technetwork/java/javase/downloads/ for the
|
|---|
| 10 | latest from Oracle. On linux, you can optionally sudo apt-get install
|
|---|
| 11 | openjdk-8-jdk.
|
|---|
| 12 |
|
|---|
| 13 | 2. Install Apache ant, if you don't already have it
|
|---|
| 14 | (http://ant.apache.org).
|
|---|
| 15 |
|
|---|
| 16 | 3. Download the tgz archive of VSL dependencies from
|
|---|
| 17 | http://vsl.cis.udel.edu/tools/vsl_depend,
|
|---|
| 18 | choosing the right .tgz according to your platform:
|
|---|
| 19 |
|
|---|
| 20 | vsl_linux32-1.0.tgz - 32-bit linux
|
|---|
| 21 | vsl_linux64-1.0.tgz - 64-bit linux
|
|---|
| 22 | vsl_osx64-1.0.tgz - 64-bit osx
|
|---|
| 23 |
|
|---|
| 24 | Unzip the .tgz file and you will have the folder vsl.
|
|---|
| 25 | Move vsl to /opt (you might need to use “sudo” for this.
|
|---|
| 26 | Also, if you don't already have a directory called /opt,
|
|---|
| 27 | you will have to create it with mkdir /opt).
|
|---|
| 28 |
|
|---|
| 29 | Suppose that you put the .tgz file (or .tar file if your browser
|
|---|
| 30 | unzipped it automatically to a .tar file) in the directory $Download.
|
|---|
| 31 | You can use the following commands:
|
|---|
| 32 |
|
|---|
| 33 | $ cd $Download
|
|---|
| 34 | $ tar xzf YourTgzOrTarFile vsl
|
|---|
| 35 | $ sudo mv vsl /opt
|
|---|
| 36 |
|
|---|
| 37 | Now you can type "ls /opt/vsl", and the output should be
|
|---|
| 38 |
|
|---|
| 39 | README.txt lib licenses src
|
|---|
| 40 |
|
|---|
| 41 | 4. svn checkout svn://vsl.cis.udel.edu/gmc/trunk gmc
|
|---|
| 42 |
|
|---|
| 43 | 5. cd gmc
|
|---|
| 44 |
|
|---|
| 45 | 6. If your VSL dependencies path is not in /opt/vsl, then you need
|
|---|
| 46 | to create a build.properties file by copying the content from
|
|---|
| 47 | build_default.properties and modifying the value of entry "root"
|
|---|
| 48 | to be the path to your VSL dependencies folder. The newly created file
|
|---|
| 49 | build.properties will automatically be used by ant to to build the .jar file.
|
|---|
| 50 |
|
|---|
| 51 | 7. Type "ant" and everything should build without warnings or errors
|
|---|
| 52 | and produce gmc.jar. Type "ant test" to run a JUnit test suite. All
|
|---|
| 53 | tests should pass.
|
|---|
| 54 |
|
|---|
| 55 | If there are any problems, email siegel at udel dot edu.
|
|---|
| 56 |
|
|---|
| 57 | ============== Installation from source using Eclipse ==================
|
|---|
| 58 |
|
|---|
| 59 | 1. Start with Eclipse IDE for Java/EE developers, available at
|
|---|
| 60 | http://www.eclipse.org/downloads/
|
|---|
| 61 | You need at least version Kepler (which comes with JUnit 4.11)
|
|---|
| 62 |
|
|---|
| 63 | 2. Do steps 1-3 from above if you have not already.
|
|---|
| 64 |
|
|---|
| 65 | 3. Install an SVN plugin in Eclipse (such as Subversive) if you have
|
|---|
| 66 | not already.
|
|---|
| 67 |
|
|---|
| 68 | 4. From within Eclipse, select New Project...from SVN. The archive is
|
|---|
| 69 | svn://vsl.cis.udel.edu/gmc. After entering that, open it up
|
|---|
| 70 | (i.e., "Browse" the repository) and select the "trunk".
|
|---|
| 71 | You want to check out the trunk only---not the entire repository.
|
|---|
| 72 |
|
|---|
| 73 | 5. Check out the trunk, and create the project using the New Java
|
|---|
| 74 | Project Wizard as usual, naming it "GMC". The .project, .classpath,
|
|---|
| 75 | and other Eclipse meta-data are already in the SVN archive, saving you
|
|---|
| 76 | a bunch of work.
|
|---|
| 77 |
|
|---|
| 78 | 6. If your VSL dependencies path is not in /opt/vsl, then you need
|
|---|
| 79 | to create a build.properties file by copying the content from
|
|---|
| 80 | build_default.properties and modifying the value of entry "root"
|
|---|
| 81 | to be the path to your VSL dependencies folder. The newly created file
|
|---|
| 82 | build.properties will automatically be used by ant to to build the .jar file.
|
|---|
| 83 |
|
|---|
| 84 | 7. Do a clean build. Everything should compile. Generate the gmc.jar
|
|---|
| 85 | by right-clicking (or ctrl-click on OS X) the build.xml file and
|
|---|
| 86 | Run As->Ant Build.
|
|---|
| 87 |
|
|---|
| 88 | 8. Go to Run->Run Configurations.... Create a new JUnit configuration.
|
|---|
| 89 | Name it GMC Tests. Select "Run all tests in the selected project..."
|
|---|
| 90 | and navigate to the folder "test" in the SARL project.
|
|---|
| 91 | The Test runner should be JUnit 4. Under the Arguments tab, type
|
|---|
| 92 | "-ea" (without the quotes) in the VM arguments area (to enable assertion
|
|---|
| 93 | checking).
|
|---|