mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-07-30 15:20:10 -07:00
23 lines
496 B
Bash
Executable File
23 lines
496 B
Bash
Executable File
#!/usr/bin/env bash
|
|
shopt -s nullglob globstar
|
|
|
|
proverif_repo=$1
|
|
|
|
# Prerequisites:
|
|
# * built ProVerif
|
|
# * ran ./test (and aborted it) such that the preparation scripts have been run
|
|
|
|
# Test pitype files
|
|
for f in $proverif_repo/examples/pitype/**/*.pv; do
|
|
[[ $f == *.m4.pv ]] && continue
|
|
echo "$f"
|
|
nix run .# -- parse "$f"
|
|
done
|
|
|
|
|
|
# Test cryptoverif files
|
|
for f in $proverif_repo/examples/cryptoverif/**/*.pcv; do
|
|
[[ $f == *.m4.pcv ]] && continue
|
|
echo "$f"
|
|
nix run .# -- parse "$f"
|
|
done |