source: examples/example_scripts/java/run_test @ 2e9455f

mei_rt2
Last change on this file since 2e9455f was 2e9455f, checked in by Mei <mei@…>, 11 years ago

1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#!/bin/sh
2
3if [ "$LD_LIBRARY_PATH" = "" ] ; then
4    export LD_LIBRARY_PATH=.:/usr/local/lib
5else
6    export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
7fi
8
9
10if [ "$JAVA_HOME" = "" ] ; then
11    if [ -d "/usr/lib/jvm/java-6-openjdk" ]; then
12        export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
13    elif [ -d "/usr/local/openjdk6" ]; then
14        export JAVA_HOME=/usr/local/openjdk6
15    fi
16fi
17
18make setup 1>/dev/null 2>&1
19
20using_java=`grep "^JAVA=" ../../../config.log|sed 's/JAVA=//'`
21if [ "$using_java" = "''" -o "$using_java" = "" ]; then
22## Could not test without java, but return pass to make check goes through
23   echo '---running (java) attr script'
24   echo "   PASSED"
25   echo '---running (java) prover script'
26   echo "   PASSED"
27   exit 0
28fi
29
30echo '---running (java) attr script'
31./run_attr >attr.log 2>&1
32#make run_attr 1>/dev/null 2>& 1
33result=`grep "prover success" attr.log 2>/dev/null`
34if [ "$result" = "" ]; then
35   echo "   ERROR"
36else   
37   echo "   PASSED"
38fi
39
40echo '---running (java) prover script'
41./run_prover 1> prover.log 2>&1
42#make run_prove 1>/dev/null 2>& 1
43result=`grep "prover success" prover.log 2>/dev/null`
44if [ "$result" = "" ]; then
45   echo "   ERROR"
46else   
47   echo "   PASSED"
48fi
49
Note: See TracBrowser for help on using the repository browser.