Sha256: e0ec39b7b9792dbf027c20ceb0896c7b287bdbed4e2be54f51d84f66f864a223

Contents?: true

Size: 758 Bytes

Versions: 3

Compression:

Stored size: 758 Bytes

Contents

#!/bin/bash

# This script must be run from the script's directory

# .xspec files directory
CASES_DIR=cases

# XSpec output directory (same as default)
export TEST_DIR=${CASES_DIR}/xspec

# Run test cases
for CASE_FILEPATH in ${CASES_DIR}/*.xspec
do
    # Generate the report HTML
    ../../bin/xspec.sh ${CASE_FILEPATH} > /dev/null 2>&1

    # Compare with the expected HTML
    CASE_FILENAME=${CASE_FILEPATH##*/}
    CASE_BASENAME=${CASE_FILENAME%.xspec}
    if java -classpath ${SAXON_CP} net.sf.saxon.Transform -s:${TEST_DIR}/${CASE_BASENAME}-result.html -xsl:processor/compare.xsl | grep '^OK: Compared '
        then
            # OK, nothing to do
            :
        else
            echo "FAILED: ${CASE_FILEPATH}"
            exit 1
    fi
done

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple-xspec-wrapper-0.3.0-java vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.sh
simple-xspec-wrapper-0.2.0-java vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.sh
simple-xspec-wrapper-0.1.0-java vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.sh