Initial commit, basic lexer structure
This commit is contained in:
18
validate.sh
Executable file
18
validate.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# Start with static analysis
|
||||
scan-build -o reports/ -plist-html --status-bugs make clean all
|
||||
|
||||
# Run the sanitizer builds and valgrind
|
||||
make clean sanitize all
|
||||
|
||||
ARGUMENTS=("-tokens" "-text")
|
||||
while IFS= read -r INPUT_FILE; do
|
||||
for ARGS in ${ARGUMENTS[@]}; do
|
||||
./oas-asan $ARGS $INPUT_FILE > /dev/null
|
||||
./oas-msan $ARGS $INPUT_FILE > /dev/null
|
||||
valgrind --leak-check=full --error-exitcode=1 ./oas $ARGS $INPUT_FILE >/dev/null
|
||||
done
|
||||
done < <(find tests/input/ -type f -name '*.asm')
|
Reference in New Issue
Block a user