-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test improvements (keep temp files, eclib location)
- Do not remove temporary files after running the tests. - Put test temporary files in deterministic locations, in a file hierarchy under compiler/tests/results. - Tell easycrypt to use eclib from this repo for extraction tests.
- Loading branch information
Showing
7 changed files
with
47 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
DIR=$(mktemp -d jasminXXXXXX) | ||
ROOT_DIR=tests/results/extraction | ||
DIR=$ROOT_DIR/${2%.jazz}/$1 | ||
ECLIB=$(dirname $0)/../../eclib | ||
EC=${DIR}/jasmin.ec | ||
CT=${DIR}/jasmin_ct.ec | ||
|
||
if [ "$1" = "arm" ] | ||
then | ||
shift | ||
if [ -d "${DIR}" ]; then rm -r ${DIR}; fi | ||
mkdir -p $DIR | ||
|
||
if [ "$1" = "arm" ]; then | ||
ARCH="-arch arm-m4" | ||
else | ||
ARCH="-arch x86-64" | ||
fi | ||
|
||
trap "rm -r ${DIR}" EXIT | ||
|
||
set -x | ||
set -o xtrace | ||
|
||
$(dirname $0)/../jasminc ${ARCH} -oecarray ${DIR} -oec ${EC} "$@" | ||
$(dirname $0)/../jasminc ${ARCH} -oecarray ${DIR} -CT -oec ${CT} "$@" | ||
$(dirname $0)/../jasminc ${ARCH} -oecarray ${DIR} -oec ${EC} "$2" | ||
$(dirname $0)/../jasminc ${ARCH} -oecarray ${DIR} -CT -oec ${CT} "$2" | ||
|
||
easycrypt ${ECARGS} ${EC} | ||
easycrypt ${ECARGS} ${CT} | ||
easycrypt -I Jasmin:${ECLIB} ${ECARGS} ${EC} | ||
easycrypt -I Jasmin:${ECLIB} ${ECARGS} ${CT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters