source: CIVL/mods/dev.civl.gmc/README.txt@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 3.6 KB
Line 
1GMC: Generic Model Checker
2
3Provides general utilities for building model checkers, such
4as a generic depth-first search algorithm.
5
6======================= Installation from source =======================
7
81. Install a Java 8 SDK if you have not already. Go to
9http://www.oracle.com/technetwork/java/javase/downloads/ for the
10latest from Oracle. On linux, you can optionally sudo apt-get install
11openjdk-8-jdk.
12
132. Install Apache ant, if you don't already have it
14(http://ant.apache.org).
15
163. 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
414. svn checkout svn://vsl.cis.udel.edu/gmc/trunk gmc
42
435. cd gmc
44
456. If your VSL dependencies path is not in /opt/vsl, then you need
46to create a build.properties file by copying the content from
47build_default.properties and modifying the value of entry "root"
48to be the path to your VSL dependencies folder. The newly created file
49build.properties will automatically be used by ant to to build the .jar file.
50
517. Type "ant" and everything should build without warnings or errors
52and produce gmc.jar. Type "ant test" to run a JUnit test suite. All
53tests should pass.
54
55If there are any problems, email siegel at udel dot edu.
56
57============== Installation from source using Eclipse ==================
58
591. Start with Eclipse IDE for Java/EE developers, available at
60http://www.eclipse.org/downloads/
61You need at least version Kepler (which comes with JUnit 4.11)
62
632. Do steps 1-3 from above if you have not already.
64
653. Install an SVN plugin in Eclipse (such as Subversive) if you have
66not already.
67
684. From within Eclipse, select New Project...from SVN. The archive is
69svn://vsl.cis.udel.edu/gmc. After entering that, open it up
70(i.e., "Browse" the repository) and select the "trunk".
71You want to check out the trunk only---not the entire repository.
72
735. Check out the trunk, and create the project using the New Java
74Project Wizard as usual, naming it "GMC". The .project, .classpath,
75and other Eclipse meta-data are already in the SVN archive, saving you
76a bunch of work.
77
786. If your VSL dependencies path is not in /opt/vsl, then you need
79to create a build.properties file by copying the content from
80build_default.properties and modifying the value of entry "root"
81to be the path to your VSL dependencies folder. The newly created file
82build.properties will automatically be used by ant to to build the .jar file.
83
847. Do a clean build. Everything should compile. Generate the gmc.jar
85by right-clicking (or ctrl-click on OS X) the build.xml file and
86Run As->Ant Build.
87
888. Go to Run->Run Configurations.... Create a new JUnit configuration.
89Name it GMC Tests. Select "Run all tests in the selected project..."
90and navigate to the folder "test" in the SARL project.
91The Test runner should be JUnit 4. Under the Arguments tab, type
92"-ea" (without the quotes) in the VM arguments area (to enable assertion
93checking).
Note: See TracBrowser for help on using the repository browser.